-- DBMS: snowflake
create or replace TABLE BULKWES_LEVEL1_METADATA_CURRENT (
	"Adapter_Name" VARCHAR(16777216),
	"Library_Layout" VARCHAR(16777216),
	"HTAN_Data_File_ID" VARCHAR(16777216),
	"Component" VARCHAR(16777216),
	"Target_Depth" VARCHAR(16777216),
	"Base_Caller_Name" VARCHAR(16777216),
	"Read_Length" VARCHAR(16777216),
	"Fragment_Maximum_Length" VARCHAR(16777216),
	"Multiplex_Barcode" VARCHAR(16777216),
	"Library_Preparation_Kit_Version" VARCHAR(16777216),
	"Fragment_Minimum_Length" VARCHAR(16777216),
	"Base_Caller_Version" VARCHAR(16777216),
	"Library_Preparation_Kit_Vendor" VARCHAR(16777216),
	"Library_Selection_Method" VARCHAR(16777216),
	"To_Trim_Adapter_Sequence" VARCHAR(16777216),
	"Sequencing_Platform" VARCHAR(16777216),
	"HTAN_Parent_Biospecimen_ID" VARCHAR(16777216),
	"Filename" VARCHAR(16777216),
	"Library_Preparation_Kit_Name" VARCHAR(16777216),
	"entityId" VARCHAR(16777216),
	"Adapter_Sequence" VARCHAR(16777216),
	"Library_Preparation_Days_from_Index" VARCHAR(16777216),
	"Fragment_Mean_Length" VARCHAR(16777216),
	"Flow_Cell_Barcode" VARCHAR(16777216),
	"Fragment_Standard_Deviation_Length" VARCHAR(16777216),
	"Target_Capture_Kit" VARCHAR(16777216),
	"Id" VARCHAR(16777216),
	"Lane_Number" VARCHAR(16777216),
	"Read_Indicator" VARCHAR(16777216),
	"Size_Selection_Range" VARCHAR(16777216),
	"File_Format" VARCHAR(16777216),
	"Sequencing_Batch_ID" 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"."BULKWES_LEVEL1_METADATA_CURRENT" (Target_Capture_Kit, Library_Preparation_Days_from_Index, Read_Length, Sequencing_Platform, Target_Depth, Read_Indicator, HTAN_Parent_Biospecimen_ID, Data_Release, Multiplex_Barcode, Library_Preparation_Kit_Name, Filename, Manifest_Version, entityId, Adapter_Name, Base_Caller_Name, Adapter_Sequence, Base_Caller_Version, Fragment_Minimum_Length, Library_Preparation_Kit_Version, Fragment_Standard_Deviation_Length, HTAN_Data_File_ID, Lane_Number, File_Format, Component, Fragment_Maximum_Length, CDS_Release, Library_Selection_Method, Flow_Cell_Barcode, Id, Library_Layout, HTAN_Center, Sequencing_Batch_ID, To_Trim_Adapter_Sequence, Size_Selection_Range, Manifest_Id, md5, File_Size, Library_Preparation_Kit_Vendor, Fragment_Mean_Length) VALUES ('unknown', NULL, '150', 'Illumina NovaSeq 6000', NULL, 'R1', 'HTA11_99999965104_69815', 'Release 2.0', NULL, 'Human Exome', 'whole_exome_seq_level_1/FASTQ_raw/5017-AS-1_S01_L005_R1_001.fastq.gz', 4, 'syn26953170', NULL, NULL, NULL, NULL, NULL, '1', NULL, 'HTA11_99999965104_6981521111', NULL, 'fastq', 'BulkWESLevel1', NULL, 'v22.6.1.seq', 'PCR', NULL, 'b99f225f-1659-4e71-97a5-9b6645f9d4dd', 'Paired End', 'HTAN Vanderbilt', '5017', NULL, NULL, 'syn39059762', 'e4bbffea6870fa3603fe7d1e1f27f28d', 4903374064, 'Twist Biosciences', NULL), ('unknown', NULL, '150', 'Illumina NovaSeq 6000', NULL, 'R1', 'HTA11_99999965104_69814', 'Release 2.0', NULL, 'Human Exome', 'whole_exome_seq_level_1/FASTQ_raw/5017-AS-2_S01_L005_R1_001.fastq.gz', 4, 'syn26953247', NULL, NULL, NULL, NULL, NULL, '1', NULL, 'HTA11_99999965104_6981421111', NULL, 'fastq', 'BulkWESLevel1', NULL, 'v22.6.1.seq', 'PCR', NULL, '0e41f968-8a8f-4e63-a957-671123512619', 'Paired End', 'HTAN Vanderbilt', '5017', NULL, NULL, 'syn39059762', '3169df1221a2c3fd97396626a0685eaa', 5196345593, 'Twist Biosciences', NULL), ('unknown', NULL, '150', 'Illumina NovaSeq 6000', NULL, 'R2', 'HTA11_99999965062_69756', 'Release 2.0', NULL, 'Human Exome', 'whole_exome_seq_level_1/FASTQ_raw/5173-AS-1_S72_R2_001.fastq.gz', 4, 'syn26953298', NULL, NULL, NULL, NULL, NULL, '1', NULL, 'HTA11_99999965062_6975621121', NULL, 'fastq', 'BulkWESLevel1', NULL, 'v22.6.1.seq', 'PCR', NULL, '40df59c3-d1b5-4b79-8bb4-8686b63da719', 'Paired End', 'HTAN Vanderbilt', '5173', NULL, NULL, 'syn39059762', '11532cc44a85bf02daaa91ace6198a1f', 27235226573, 'Twist Biosciences', NULL), ('unknown', NULL, '150', 'Illumina NovaSeq 6000', NULL, 'R1', 'HTA11_4255_2000009901', 'Release 2.0', NULL, 'Human Exome', 'whole_exome_seq_level_1/FASTQ_raw/5234-AS-42-GTCAGCTTAA-GAGCTTGGAC_S01_L005_R1_001.fastq.gz', 4, 'syn26953375', NULL, NULL, NULL, NULL, NULL, '1', NULL, 'HTA11_4255_200000990121111', NULL, 'fastq', 'BulkWESLevel1', NULL, 'v22.6.1.seq', 'PCR', NULL, '59efb493-2653-42b9-b741-68920afa1b1e', 'Paired End', 'HTAN Vanderbilt', '5234', NULL, NULL, 'syn39059762', 'bcae325e4161ca5db6a43677490ebf98', 4085958611, 'Twist Biosciences', NULL), ('unknown', NULL, '150', 'Illumina NovaSeq 6000', NULL, 'R1', 'HTA11_3331_2000009901', 'Release 2.0', NULL, 'Human Exome', 'whole_exome_seq_level_1/FASTQ_raw/5234-AS-56-GAGCTGTATA-CCAGGAGTAC_S01_L005_R1_001.fastq.gz', 4, 'syn26953545', NULL, NULL, NULL, NULL, NULL, '1', NULL, 'HTA11_3331_200000990121111', NULL, 'fastq', 'BulkWESLevel1', NULL, 'v22.6.1.seq', 'PCR', NULL, 'e62add7f-43da-4a0e-a217-9538d7d3c9fe', 'Paired End', 'HTAN Vanderbilt', '5234', NULL, NULL, 'syn39059762', '57dbff913fc8a0f26f71bcada9ed8adf', 4976818873, 'Twist Biosciences', NULL);