-- DBMS: snowflake
create or replace TABLE SCATACSEQ_LEVEL2_METADATA_CURRENT (
	"Total_Unmapped_reads" VARCHAR(16777216),
	"Proportion_Base_Mismatch" VARCHAR(16777216),
	"Custom_Alignment_Workflow" VARCHAR(16777216),
	"HTAN_Data_File_ID" VARCHAR(16777216),
	"Average_Read_Length" VARCHAR(16777216),
	"Contamination" VARCHAR(16777216),
	"Component" VARCHAR(16777216),
	"Proportion_Reads_Duplicated" VARCHAR(16777216),
	"Total_Reads" VARCHAR(16777216),
	"Pairs_On_Diff_CHR" VARCHAR(16777216),
	"MapQ30" VARCHAR(16777216),
	"Total_Uniquely_Mapped" VARCHAR(16777216),
	"Short_Reads" VARCHAR(16777216),
	"Proportion_Coverage_10x" VARCHAR(16777216),
	"HTAN_Parent_Data_File_ID" VARCHAR(16777216),
	"Proportion_Reads_Mapped" VARCHAR(16777216),
	"Genomic_Reference_URL" VARCHAR(16777216),
	"Genomic_Reference" VARCHAR(16777216),
	"Alignment_Workflow_Type" VARCHAR(16777216),
	"Alignment_Workflow_Url" VARCHAR(16777216),
	"Average_Insert_Size" VARCHAR(16777216),
	"Filename" VARCHAR(16777216),
	"entityId" VARCHAR(16777216),
	"Average_Base_Quality" VARCHAR(16777216),
	"Median_Percentage_of_Mitochondrial_Reads_per_Nucleus" VARCHAR(16777216),
	"Index_File_Name" VARCHAR(16777216),
	"Proportion_Coverage_30X" VARCHAR(16777216),
	"Proportion_Targets_No_Coverage" VARCHAR(16777216),
	"Contamination_Error" VARCHAR(16777216),
	"Id" VARCHAR(16777216),
	"Mean_Coverage" VARCHAR(16777216),
	"File_Format" 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_LEVEL2_METADATA_CURRENT" (Total_Reads, Total_Uniquely_Mapped, Alignment_Workflow_Url, Average_Read_Length, HTAN_Data_File_ID, Median_Percentage_of_Mitochondrial_Reads_per_Nucleus, File_Size, Data_Release, Custom_Alignment_Workflow, Average_Insert_Size, HTAN_Center, Filename, Proportion_Reads_Duplicated, entityId, Genomic_Reference, Id, Index_File_Name, MapQ30, Alignment_Workflow_Type, md5, Manifest_Version, Pairs_On_Diff_CHR, Proportion_Base_Mismatch, Average_Base_Quality, File_Format, Contamination_Error, Manifest_Id, Mean_Coverage, Total_Unmapped_reads, Genomic_Reference_URL, Proportion_Coverage_10x, HTAN_Parent_Data_File_ID, Component, CDS_Release, Contamination, Proportion_Coverage_30X, Proportion_Targets_No_Coverage, Short_Reads, Proportion_Reads_Mapped) VALUES (NULL, NULL, 'Not reported', NULL, 'HTA10_01_39764031532103604433024454006407', 'Not reported', 24586637679, 'Release 2.0', NULL, NULL, 'HTAN Stanford', 'scatacseq_level_2/A001-C-108-D_20200811_possorted_bam.bam', NULL, 'syn26531211', 'GRCh38', 'e4c6eeb5-fb03-437d-adb0-124481cd4bd1', 'scatacseq_level_2/A001-C-108-D_20200811_possorted_bam.bam.bai', NULL, 'BWA-mem', '3976403bfdcbad6a44dda2ee5e0a6407', 4, NULL, NULL, NULL, 'bam', NULL, 'syn52177151', NULL, NULL, 'https://www.ncbi.nlm.nih.gov/datasets/genome/GCF_000001405.26/', NULL, 'HTA10_01_06734183029551602085190304211442,HTA10_01_58008844131655552053142070155939,HTA10_01_01003063708087541492932022453368,HTA10_01_03712053403613734307532941871015,HTA10_01_02828217036874535029842523441786,HTA10_01_57500381040024899150585632430415,HTA10_01_09624435121352374749732941938951,HTA10_01_51040357035712031557992412294173', 'ScATAC-seqLevel2', 'v23.10.1.seq', NULL, NULL, NULL, NULL, NULL), (NULL, NULL, 'Not reported', NULL, 'HTA10_01_50804062430232390005309493285051', 'Not reported', 17981082340, 'Release 2.0', NULL, NULL, 'HTAN Stanford', 'scatacseq_level_2/A001-C-123-D_20200214_possorted_bam.bam', NULL, 'syn26530901', 'GRCh38', 'd7464030-ebb3-497f-b7b0-58df95d8183f', 'scatacseq_level_2/A001-C-123-D_20200214_possorted_bam.bam.bai', NULL, 'BWA-mem', 'fa8a4a6c4d02dcd90a0530949328fa5b', 4, NULL, NULL, NULL, 'bam', NULL, 'syn52177151', NULL, NULL, 'https://www.ncbi.nlm.nih.gov/datasets/genome/GCF_000001405.26/', NULL, 'HTA10_01_24608010716414185850842942356482,HTA10_01_74749604575502843273404111215212,HTA10_01_62535428780027128003792724511654,HTA10_01_26120217045965070591342234155923,HTA10_01_41378016954252014144004348770457,HTA10_01_38734829452232492504055561033453,HTA10_01_22584523854392092624502402320400,HTA10_01_47123423370254204214303245143071', 'ScATAC-seqLevel2', 'v23.10.1.seq', NULL, NULL, NULL, NULL, NULL), (NULL, NULL, 'Not reported', NULL, 'HTA10_01_90243443196521389339723491376359', 'Not reported', 15965134099, 'Release 2.0', NULL, NULL, 'HTAN Stanford', 'scatacseq_level_2/A001-C-014-D_20200715_possorted_bam.bam', NULL, 'syn26530850', 'GRCh38', 'b7013a6c-79a7-4c50-92be-8fed7394a52d', 'scatacseq_level_2/A001-C-014-D_20200715_possorted_bam.bam.bai', NULL, 'BWA-mem', '9ac43e4d196fcb38933972d491d763f9', 4, NULL, NULL, NULL, 'bam', NULL, 'syn52177151', NULL, NULL, 'https://www.ncbi.nlm.nih.gov/datasets/genome/GCF_000001405.26/', NULL, 'HTA10_01_33253333750574440076452810821390,HTA10_01_20057521453251487004544271164445,HTA10_01_83545322541359818128525069997962,HTA10_01_43412224032523872813732542860092,HTA10_01_90359517408641145156954015701828,HTA10_01_31155711423673949363592025453792,HTA10_01_40204520365205293425355682553504,HTA10_01_31537928431461348241305756948145', 'ScATAC-seqLevel2', 'v23.10.1.seq', NULL, NULL, NULL, NULL, NULL), (NULL, NULL, 'Not reported', NULL, 'HTA10_02_30113806049916443334222229308641', 'Not reported', 16946145201, 'Release 2.0', NULL, NULL, 'HTAN Stanford', 'scatacseq_level_2/A002-C-121-S2_20200310_possorted_bam.bam', NULL, 'syn26530874', 'GRCh38', '0e7a077f-f390-45d2-9616-78e233e54ce4', 'scatacseq_level_2/A002-C-121-S2_20200310_possorted_bam.bam.bai', NULL, 'BWA-mem', 'dab138a6ae991644ddd4c2cc293086e1', 4, NULL, NULL, NULL, 'bam', NULL, 'syn52177151', NULL, NULL, 'https://www.ncbi.nlm.nih.gov/datasets/genome/GCF_000001405.26/', NULL, 'HTA10_02_04201553015573117934512439261094,HTA10_02_59231322059584147212385938438331,HTA10_02_58747266502149482344321335597463,HTA10_02_03831322008543402365320885756145,HTA10_02_70838670626138313417595507376670,HTA10_02_02065696803355441600555052125857,HTA10_02_01644066007107281263188140201854,HTA10_02_18022783136502584912531035407171', 'ScATAC-seqLevel2', 'v23.10.1.seq', NULL, NULL, NULL, NULL, NULL), (NULL, NULL, 'Not reported', NULL, 'HTA10_02_08632528445263190500914034437621', 'Not reported', 16446321157, 'Release 2.0', NULL, NULL, 'HTAN Stanford', 'scatacseq_level_2/A002-C-010_S2_20200310_possorted_bam.bam', NULL, 'syn26530862', 'GRCh38', 'f98d9d34-1dcc-4e3c-936e-794d73acff56', 'scatacseq_level_2/A002-C-010_S2_20200310_possorted_bam.bam.bai', NULL, 'BWA-mem', '08632fc8eefc6319a50a9bead4e376c1', 4, NULL, NULL, NULL, 'bam', NULL, 'syn52177151', NULL, NULL, 'https://www.ncbi.nlm.nih.gov/datasets/genome/GCF_000001405.26/', NULL, 'HTA10_02_67226088775023544666405005303961,HTA10_02_44231122557426443431852183995464,HTA10_02_46413072230123180759025133445338,HTA10_02_96313885316021249026559431123503,HTA10_02_24254771419094302544834532262321,HTA10_02_32637566091343112829039835125223,HTA10_02_30639591721236204946612352323751,HTA10_02_94311728373568402708158225101249', 'ScATAC-seqLevel2', 'v23.10.1.seq', NULL, NULL, NULL, NULL, NULL);