-- DBMS: snowflake
create or replace TABLE SCATACSEQ_LEVEL4_METADATA_CURRENT (
	"Workflow_Link" VARCHAR(16777216),
	"Filename" VARCHAR(16777216),
	"HTAN_Parent_Data_File_ID" VARCHAR(16777216),
	"scATACseq_Workflow_Parameters_Description" VARCHAR(16777216),
	"entityId" VARCHAR(16777216),
	"Id" VARCHAR(16777216),
	"HTAN_Data_File_ID" VARCHAR(16777216),
	"Component" VARCHAR(16777216),
	"scATACseq_Workflow_Type" VARCHAR(16777216),
	"File_Format" VARCHAR(16777216),
	"Workflow_Version" VARCHAR(16777216),
	"HTAN_Center" VARCHAR(16777216),
	"Manifest_Id" VARCHAR(16777216),
	"Manifest_Version" NUMBER(38,0),
	"File_Size" NUMBER(38,0),
	"md5" VARCHAR(16777216),
	"Data_Release" VARCHAR(16777216),
	"CDS_Release" VARCHAR(16777216)
);

INSERT INTO "HTAN_2"."HTAN"."SCATACSEQ_LEVEL4_METADATA_CURRENT" (HTAN_Data_File_ID, scATACseq_Workflow_Parameters_Description, Manifest_Version, scATACseq_Workflow_Type, entityId, md5, Id, Data_Release, Workflow_Version, File_Size, HTAN_Center, Manifest_Id, File_Format, Workflow_Link, CDS_Release, Component, HTAN_Parent_Data_File_ID, Filename) VALUES ('HTA4_000_86667', 'See paper methods', 6, 'Seurat', 'syn51406625', 'c3747c691de5915c96a36308830fd379', '6df980a2-cbf5-48e2-952b-4a518285c16f', 'Release 5.0', 'Seurat v4', 11108268668, 'HTAN CHOP', 'syn53253226', 'RData', 'https://satijalab.org/seurat/', NULL, 'ScATAC-seqLevel4', 'HTA4_2010_76721,HTA4_2010_76722,HTA4_2010_76723,HTA4_2007_76700,HTA4_2007_76701,HTA4_2007_76702,HTA4_2005_76682,HTA4_2005_76683,HTA4_2005_76684,HTA4_2010_76724,HTA4_2010_76725,HTA4_2010_76726,HTA4_2001_76667,HTA4_2001_76668,HTA4_2001_76669,HTA4_2003_76673,HTA4_2003_76674,HTA4_2003_76675,HTA4_2002_76670,HTA4_2002_76671,HTA4_2002_76672,HTA4_2003_76676,HTA4_2003_76677,HTA4_2003_76678,HTA4_2012_76733,HTA4_2012_76734,HTA4_2012_76735,HTA4_2007_76703,HTA4_2007_76704,HTA4_2007_76705,HTA4_2007_76706,HTA4_2007_76707,HTA4_2007_76708,HTA4_2009_76715,HTA4_2009_76716,HTA4_2009_76717,HTA4_2009_76718,HTA4_2009_76719,HTA4_2009_76720,HTA4_2013_76739,HTA4_2013_76740,HTA4_2013_76741,HTA4_2008_76709,HTA4_2008_76710,HTA4_2008_76711,HTA4_2013_76742,HTA4_2013_76743,HTA4_2013_76744,HTA4_2005_76685,HTA4_2005_76686,HTA4_2005_76687,HTA4_2006_76694,HTA4_2006_76695,HTA4_2006_76696,HTA4_2014_76745,HTA4_2014_76746,HTA4_2014_76747,HTA4_2016_76760,HTA4_2016_76761,HTA4_2016_76762,HTA4_2016_76763,HTA4_2016_76764,HTA4_2016_76765,HTA4_2008_76712,HTA4_2008_76713,HTA4_2008_76714,HTA4_2015_76748,HTA4_2015_76749,HTA4_2015_76750,HTA4_2015_76751,HTA4_2015_76752,HTA4_2015_76753,HTA4_2005_76688,HTA4_2005_76689,HTA4_2005_76690,HTA4_2005_76691,HTA4_2005_76692,HTA4_2005_76693,HTA4_2015_76754,HTA4_2015_76755,HTA4_2015_76756,HTA4_2015_76757,HTA4_2015_76758,HTA4_2015_76759,HTA4_2011_76727,HTA4_2011_76728,HTA4_2011_76729,HTA4_2006_76697,HTA4_2006_76698,HTA4_2006_76699,HTA4_2012_76736,HTA4_2012_76737,HTA4_2012_76738,HTA4_2011_76730,HTA4_2011_76731,HTA4_2011_76732,HTA4_2016_76766,HTA4_2016_76767,HTA4_2016_76768,HTA4_2004_76679,HTA4_2004_76680,HTA4_2004_76681', 'single_cell_ATACseq_level_4_ped_glioma/seurat_atac_Neuroglia_signacIntegrated_bySample_withReference_None.rds'), ('HTA4_000_83338', 'See paper Methods', 2, 'Seurat', 'syn51690871', 'f1630f81e8865bb578a04f34d303db0c', '9e4c89a0-d0a8-4bec-ac6e-eb83f1d7afcb', 'Release 5.0', 'Seurat v4', 33737403285, 'HTAN CHOP', 'syn53398038', 'RData', 'https://satijalab.org/seurat/', NULL, 'ScATAC-seqLevel4', 'HTA4_1004_73337', 'single_cell_ATACseq_level_4_NBL/seurat_atac_non_binary_vap20000.rds'), ('HTA4_000_83337', 'See paper Methods', 2, 'Seurat', 'syn53335811', '5b54e841c49410dca26cae14b6a7af4e', '1a2c7f25-924e-406d-982e-c2bd535fcb13', 'Release 5.0', 'Seurat v4', 4581882685, 'HTAN CHOP', 'syn53398038', 'RData', 'https://satijalab.org/seurat/', NULL, 'ScATAC-seqLevel4', 'HTA4_1004_73337', 'single_cell_ATACseq_level_4_NBL/seurat_atac_malignant_withTransferLabels.rds'), ('HTA4_0_80004', 'Similar to integrating data from 18 patients, we first merged the peaks from all healthy donors using the mergePeaks module in scATAC-pro and reconstructed the peak-by-cell count matrix using combined peaks and the reConstMtx module in scATAC-pro. The 21 (7 healthy donors each with 3 sorted samples) peak-by-cell count matrices were then combined into a bigger peak-by-cell count matrix and converted to a Seurat object. We next applied the same procedure as integrating patient scATAC-Seq data, except using the first 30 PCs.', 2, 'Other', 'syn51301153', 'c673923b2f72e7b4027a118904fda907', '8de923b2-cc77-4cff-a251-82c8671941a4', 'Release 3.0', 'Other', 4349730506, 'HTAN CHOP', 'syn51425726', 'RData', 'https://doi.org/10.1182/blood.2021013442', NULL, 'ScATAC-seqLevel4', 'HTA4_29_50001,HTA4_29_50002,HTA4_29_50003,HTA4_29_50004,HTA4_29_50005,HTA4_29_50006,HTA4_29_50007,HTA4_29_50008,HTA4_29_50009,HTA4_29_50010,HTA4_29_50011,HTA4_29_50012,HTA4_29_50013,HTA4_29_50014,HTA4_29_50015,HTA4_29_50016,HTA4_29_50017,HTA4_29_50018,HTA4_28_50019,HTA4_28_50020,HTA4_28_50021,HTA4_28_50022,HTA4_28_50023,HTA4_28_50024,HTA4_28_50025,HTA4_28_50026,HTA4_28_50027,HTA4_28_50028,HTA4_28_50029,HTA4_28_50030,HTA4_28_50031,HTA4_28_50032,HTA4_28_50033,HTA4_28_50034,HTA4_28_50035,HTA4_28_50036,HTA4_30_50037,HTA4_30_50038,HTA4_30_50039,HTA4_30_50040,HTA4_30_50041,HTA4_30_50042,HTA4_30_50043,HTA4_30_50044,HTA4_30_50045,HTA4_30_50046,HTA4_30_50047,HTA4_30_50048,HTA4_30_50049,HTA4_30_50050,HTA4_30_50051,HTA4_30_50052,HTA4_30_50053,HTA4_30_50054', 'single_cell_ATACseq_level_4_clean/seurat_9HDsamplesPlusThreeHD_TFIDF_usingDAPs1_clean.rds'), ('HTA4_0_80001', 'Similar to integrating data from 18 patients, we first merged the peaks from all healthy donors using the mergePeaks module in scATAC-pro and reconstructed the peak-by-cell count matrix using combined peaks and the reConstMtx module in scATAC-pro. The 21 (7 healthy donors each with 3 sorted samples) peak-by-cell count matrices were then combined into a bigger peak-by-cell count matrix and converted to a Seurat object. We next applied the same procedure as integrating patient scATAC-Seq data, except using the first 30 PCs.', 2, 'Other', 'syn51301056', '66d09b8cc3808bfd8f84ce0a463e2e47', '351796ae-36c9-4806-9a77-ab1e4af389ab', 'Release 3.0', 'Other', 2537112, 'HTAN CHOP', 'syn51425726', 'tsv', 'https://doi.org/10.1182/blood.2021013442', NULL, 'ScATAC-seqLevel4', 'HTA4_29_50001,HTA4_29_50002,HTA4_29_50003,HTA4_29_50004,HTA4_29_50005,HTA4_29_50006,HTA4_29_50007,HTA4_29_50008,HTA4_29_50009,HTA4_29_50010,HTA4_29_50011,HTA4_29_50012,HTA4_29_50013,HTA4_29_50014,HTA4_29_50015,HTA4_29_50016,HTA4_29_50017,HTA4_29_50018,HTA4_28_50019,HTA4_28_50020,HTA4_28_50021,HTA4_28_50022,HTA4_28_50023,HTA4_28_50024,HTA4_28_50025,HTA4_28_50026,HTA4_28_50027,HTA4_28_50028,HTA4_28_50029,HTA4_28_50030,HTA4_28_50031,HTA4_28_50032,HTA4_28_50033,HTA4_28_50034,HTA4_28_50035,HTA4_28_50036,HTA4_30_50037,HTA4_30_50038,HTA4_30_50039,HTA4_30_50040,HTA4_30_50041,HTA4_30_50042,HTA4_30_50043,HTA4_30_50044,HTA4_30_50045,HTA4_30_50046,HTA4_30_50047,HTA4_30_50048,HTA4_30_50049,HTA4_30_50050,HTA4_30_50051,HTA4_30_50052,HTA4_30_50053,HTA4_30_50054', 'single_cell_ATACseq_level_4_clean/metadata_scATAC_healthydonor.tsv');