-- DBMS: snowflake
create or replace TABLE BULKMETHYLATIONSEQ_LEVEL2_METADATA_CURRENT (
	"Total_Unmapped_reads" VARCHAR(16777216),
	"Bulk_Methylation_Genomic_Reference" VARCHAR(16777216),
	"Proportion_of_Minimum_CpG_Coverage_10X" VARCHAR(16777216),
	"Library_Layout" 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),
	"Duplicate_Removal_Software" VARCHAR(16777216),
	"Total_Uniquely_Mapped" VARCHAR(16777216),
	"Short_Reads" VARCHAR(16777216),
	"HTAN_Parent_Data_File_ID" VARCHAR(16777216),
	"Proportion_Reads_Mapped" VARCHAR(16777216),
	"Genomic_Reference_URL" VARCHAR(16777216),
	"Trimmer" 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),
	"Index_File_Name" VARCHAR(16777216),
	"Proportion_Coverage_30X" VARCHAR(16777216),
	"Contamination_Error" VARCHAR(16777216),
	"Proportion_Targets_No_Coverage" 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"."BULKMETHYLATIONSEQ_LEVEL2_METADATA_CURRENT" (HTAN_Parent_Data_File_ID, Short_Reads, Manifest_Version, Data_Release, Component, Genomic_Reference_URL, Proportion_Reads_Mapped, Proportion_Base_Mismatch, Proportion_Targets_No_Coverage, Index_File_Name, Average_Base_Quality, Mean_Coverage, HTAN_Data_File_ID, Trimmer, Alignment_Workflow_Url, entityId, Total_Uniquely_Mapped, Total_Unmapped_reads, Alignment_Workflow_Type, Bulk_Methylation_Genomic_Reference, Id, Duplicate_Removal_Software, Contamination_Error, Custom_Alignment_Workflow, md5, File_Size, Total_Reads, Pairs_On_Diff_CHR, Average_Insert_Size, Proportion_Reads_Duplicated, Average_Read_Length, Filename, Manifest_Id, Contamination, Proportion_of_Minimum_CpG_Coverage_10X, Library_Layout, CDS_Release, Proportion_Coverage_30X, HTAN_Center, File_Format) VALUES ('HTA10_23_73500725065652930258424582522533', NULL, 2, 'Release 4.0', 'BulkMethylation-seqLevel2', 'https://hgdownload.soe.ucsc.edu/goldenPath/hg38/bigZips/hg38.fa.gz', NULL, NULL, NULL, NULL, NULL, NULL, 'HTA10_23_26824820354393044371560546051412', 'Trim Galore!', 'https://lucid.app/lucidchart/3921698e-01ad-4e02-805c-dfae9f70b9c4/view', 'syn45173291', NULL, NULL, 'BWA-meth', 'HG38', '68c6264a-cbe9-478c-85f9-efdfd0f778d9', 'picard MarkDuplicates', NULL, NULL, 'c682482ad5ed93a4437bf6af460f141c', 883949983, NULL, NULL, NULL, NULL, NULL, 'bulk_methyl_seq_level_2/A055_C012.sorted.rmdup.bam.mergeContext_CpG.bedGraph', 'syn51934273', NULL, NULL, 'Single Read', 'v23.10.1.seq', NULL, 'HTAN Stanford', 'bedgraph'), ('HTA10_02_01250920233374530563154458431200, HTA10_02_45424162770201539933364400521659, HTA10_02_69022978056740017052737846269153', NULL, 2, 'Release 4.0', 'BulkMethylation-seqLevel2', 'https://hgdownload.soe.ucsc.edu/goldenPath/hg38/bigZips/hg38.fa.gz', NULL, NULL, NULL, NULL, NULL, NULL, 'HTA10_02_22500118931221438395384907404412', 'Trim Galore!', 'https://lucid.app/lucidchart/3921698e-01ad-4e02-805c-dfae9f70b9c4/view', 'syn45173243', NULL, NULL, 'BWA-meth', 'HG38', '26d82669-1cb4-447d-9f52-4d09d7c1a57f', 'picard MarkDuplicates', NULL, NULL, '2cf0a1b89dbcc1e38d95d8e9074aeeb2', 881661367, NULL, NULL, NULL, NULL, NULL, 'bulk_methyl_seq_level_2/A002_C116.sorted.rmdup.bam.mergeContext_CpG.bedGraph', 'syn51934273', NULL, NULL, 'Single Read', 'v23.10.1.seq', NULL, 'HTAN Stanford', 'bedgraph'), ('HTA10_03_94130111292415430654512357361574', NULL, 2, 'Release 4.0', 'BulkMethylation-seqLevel2', 'https://hgdownload.soe.ucsc.edu/goldenPath/hg38/bigZips/hg38.fa.gz', NULL, NULL, NULL, NULL, NULL, NULL, 'HTA10_03_52007473528367509422508636220701', 'Trim Galore!', 'https://lucid.app/lucidchart/3921698e-01ad-4e02-805c-dfae9f70b9c4/view', 'syn45173260', NULL, NULL, 'BWA-meth', 'HG38', '47cc52e1-1677-4611-8b91-57e2de6937fd', 'picard MarkDuplicates', NULL, NULL, 'fc007e73fc8d67509ec25a86d62ca7a1', 877679017, NULL, NULL, NULL, NULL, NULL, 'bulk_methyl_seq_level_2/A014_C115.sorted.rmdup.bam.mergeContext_CpG.bedGraph', 'syn51934273', NULL, NULL, 'Single Read', 'v23.10.1.seq', NULL, 'HTAN Stanford', 'bedgraph'), ('HTA10_04_91255552466508247406950320542884', NULL, 2, 'Release 4.0', 'BulkMethylation-seqLevel2', 'https://hgdownload.soe.ucsc.edu/goldenPath/hg38/bigZips/hg38.fa.gz', NULL, NULL, NULL, NULL, NULL, NULL, 'HTA10_04_15115259184534220088403513322632', 'Trim Galore!', 'https://lucid.app/lucidchart/3921698e-01ad-4e02-805c-dfae9f70b9c4/view', 'syn45131903', NULL, NULL, 'BWA-meth', 'HG38', '6f77a5ee-8c73-4e2e-a641-6740373c40b8', 'picard MarkDuplicates', NULL, NULL, '1f11f25918e53ecca0884adfb332263c', 868986673, NULL, NULL, NULL, NULL, NULL, 'bulk_methyl_seq_level_2/A015_blood.sorted.rmdup.bam.mergeContext_CpG.bedGraph', 'syn51934273', NULL, NULL, 'Single Read', 'v23.10.1.seq', NULL, 'HTAN Stanford', 'bedgraph'), ('HTA10_24_71315353741929127505245511950210', NULL, 2, 'Release 4.0', 'BulkMethylation-seqLevel2', 'https://hgdownload.soe.ucsc.edu/goldenPath/hg38/bigZips/hg38.fa.gz', NULL, NULL, NULL, NULL, NULL, NULL, 'HTA10_24_71555885225513895017724930507362', 'Trim Galore!', 'https://lucid.app/lucidchart/3921698e-01ad-4e02-805c-dfae9f70b9c4/view', 'syn45173297', NULL, NULL, 'BWA-meth', 'HG38', 'e19b1e62-ea7b-4bb9-9800-492e891d3911', 'picard MarkDuplicates', NULL, NULL, '7bff58852c55bd89fa177c49305a736c', 876299092, NULL, NULL, NULL, NULL, NULL, 'bulk_methyl_seq_level_2/CRC1_FreshFrozen.sorted.rmdup.bam.mergeContext_CpG.bedGraph', 'syn51934273', NULL, NULL, 'Single Read', 'v23.10.1.seq', NULL, 'HTAN Stanford', 'bedgraph');