-- DBMS: snowflake
create or replace TABLE BULKRNASEQ_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),
	"MSI_Workflow_Link" VARCHAR(16777216),
	"Total_Reads" VARCHAR(16777216),
	"Pairs_On_Diff_CHR" VARCHAR(16777216),
	"MSI_Score" 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),
	"Genomic_Reference" VARCHAR(16777216),
	"HTAN_Parent_Biospecimen_ID" VARCHAR(16777216),
	"Alignment_Workflow_Type" VARCHAR(16777216),
	"Alignment_Workflow_Url" VARCHAR(16777216),
	"Average_Insert_Size" VARCHAR(16777216),
	"MSI_Status" VARCHAR(16777216),
	"Filename" VARCHAR(16777216),
	"entityId" VARCHAR(16777216),
	"Average_Base_Quality" VARCHAR(16777216),
	"Index_File_Name" VARCHAR(16777216),
	"Is_lowest_level" 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"."BULKRNASEQ_LEVEL2_METADATA_CURRENT" (MSI_Status, Filename, HTAN_Parent_Data_File_ID, Manifest_Id, Pairs_On_Diff_CHR, Manifest_Version, md5, Average_Base_Quality, File_Format, File_Size, Data_Release, HTAN_Data_File_ID, Is_lowest_level, Alignment_Workflow_Type, Custom_Alignment_Workflow, Id, Contamination, Index_File_Name, Average_Read_Length, Total_Reads, Alignment_Workflow_Url, Contamination_Error, Total_Uniquely_Mapped, MSI_Workflow_Link, Proportion_Reads_Duplicated, Total_Unmapped_reads, Component, Average_Insert_Size, Proportion_Reads_Mapped, entityId, Genomic_Reference_URL, HTAN_Center, MSI_Score, Genomic_Reference, Proportion_Targets_No_Coverage, CDS_Release, Proportion_Base_Mismatch, Short_Reads, Mean_Coverage, HTAN_Parent_Biospecimen_ID) VALUES (NULL, 'bulk_rnaseq_level_2/0000303188.bam', 'HTA9_14_9887;HTA9_14_9886', 'syn39142062', NULL, 5, 'a9c9da0d26436c90812af939bac5c40c', NULL, 'bam', 9074073191, 'Release 4.0', 'HTA9_14_9888', NULL, 'STAR 2-Pass', NULL, 'e843da3b-3d4c-4d00-8f15-fd7b71e3dac0', NULL, 'Not Available', NULL, NULL, 'Not Available', NULL, NULL, NULL, NULL, NULL, 'BulkRNA-seqLevel2', NULL, NULL, 'syn51535637', 'Not Available', 'HTAN OHSU', NULL, 'Not Available', NULL, 'v23.10.1.seq', NULL, NULL, NULL, NULL), (NULL, 'bulk_rnaseq_level_2/0000368060.bam', 'HTA9_14_9885;HTA9_14_9884', 'syn39142062', NULL, 5, '460c06111263978070951ad4a72b520a', NULL, 'bam', 8817838516, 'Release 4.0', 'HTA9_14_9889', NULL, 'STAR 2-Pass', NULL, '7cbcf1a7-3b68-4f39-bf81-1be7d218d0c2', NULL, 'Not Available', NULL, NULL, 'Not Available', NULL, NULL, NULL, NULL, NULL, 'BulkRNA-seqLevel2', NULL, NULL, 'syn51535939', 'Not Available', 'HTAN OHSU', NULL, 'Not Available', NULL, 'v23.10.1.seq', NULL, NULL, NULL, NULL), (NULL, 'bulk_rnaseq_level_2/0000303167.bam', 'HTA9_7_1002;HTA9_7_1004', 'syn39142062', NULL, 5, '2a01d6a62291de234e0afde76da627e4', NULL, 'bam', 10814545936, 'Release 4.0', 'HTA9_7_1006', NULL, 'STAR 2-Pass', NULL, '449c9945-505d-4991-9455-7c45d0ebae03', NULL, 'Not Available', NULL, NULL, 'Not Available', NULL, NULL, NULL, NULL, NULL, 'BulkRNA-seqLevel2', NULL, NULL, 'syn51535661', 'Not Available', 'HTAN OHSU', NULL, 'Not Available', NULL, 'v23.10.1.seq', NULL, NULL, NULL, NULL), (NULL, 'bulk_rnaseq_level_2/0000321940.bam', 'HTA9_12_1008;HTA9_12_1007', 'syn39142062', NULL, 5, 'a8b86b02178197cc79e8046f068fd04e', NULL, 'bam', 9686658026, 'Release 4.0', 'HTA9_12_1011', NULL, 'STAR 2-Pass', NULL, 'a137509d-1c53-413f-b4b2-a16406689ab1', NULL, 'Not Available', NULL, NULL, 'Not Available', NULL, NULL, NULL, NULL, NULL, 'BulkRNA-seqLevel2', NULL, NULL, 'syn51535922', 'Not Available', 'HTAN OHSU', NULL, 'Not Available', NULL, 'v23.10.1.seq', NULL, NULL, NULL, NULL), (NULL, 'bulk_rnaseq_level_2/0000272830.bam', 'HTA9_2_11931;HTA9_2_11932', 'syn39142062', NULL, 5, '1c8441edeab166c583d26b42f74eb244', NULL, 'bam', 7266636370, 'Release 4.0', 'HTA9_2_11935', NULL, 'STAR 2-Pass', NULL, '8d62ca84-0387-4539-92ca-e7dae35606f7', NULL, 'Not Available', NULL, NULL, 'Not Available', NULL, NULL, NULL, NULL, NULL, 'BulkRNA-seqLevel2', NULL, NULL, 'syn51535028', 'Not Available', 'HTAN OHSU', NULL, 'Not Available', NULL, 'v23.10.1.seq', NULL, NULL, NULL, NULL);