-- DBMS: snowflake
create or replace TABLE SCRNASEQ_LEVEL2_METADATA_CURRENT (
	"Workflow_Link" VARCHAR(16777216),
	"UMI_Tag" VARCHAR(16777216),
	"HTAN_Data_File_ID" VARCHAR(16777216),
	"Component" VARCHAR(16777216),
	"scRNAseq_Workflow_Type" VARCHAR(16777216),
	"Aligned_Read_Length" VARCHAR(16777216),
	"Cell_Barcode_Tag" VARCHAR(16777216),
	"HTAN_Parent_Data_File_ID" VARCHAR(16777216),
	"Genomic_Reference_URL" VARCHAR(16777216),
	"Checksum" VARCHAR(16777216),
	"Genomic_Reference" VARCHAR(16777216),
	"Workflow_Version" VARCHAR(16777216),
	"Genome_Annotation_URL" VARCHAR(16777216),
	"Filename" VARCHAR(16777216),
	"entityId" VARCHAR(16777216),
	"Applied_Hard_Trimming" VARCHAR(16777216),
	"scRNAseq_Workflow_Parameters_Description" VARCHAR(16777216),
	"Id" VARCHAR(16777216),
	"Whitelist_Cell_Barcode_File_Link" 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"."SCRNASEQ_LEVEL2_METADATA_CURRENT" (Genomic_Reference_URL, File_Format, Manifest_Version, md5, Genome_Annotation_URL, File_Size, Aligned_Read_Length, Data_Release, Filename, Workflow_Link, Workflow_Version, HTAN_Data_File_ID, Applied_Hard_Trimming, Checksum, scRNAseq_Workflow_Parameters_Description, entityId, UMI_Tag, Cell_Barcode_Tag, Id, HTAN_Center, Component, CDS_Release, Manifest_Id, scRNAseq_Workflow_Type, HTAN_Parent_Data_File_ID, Whitelist_Cell_Barcode_File_Link, Genomic_Reference) VALUES ('ftp://ftp.ensembl.org/pub/release-85/fasta/homo_sapiens/dna/Homo_sapiens.GRCh38.dna.primary_assembly.fa.gz', 'bam', 10, '569b3781f870746444570acd1334e06d', 'ftp://ftp.ensembl.org/pub/release-85/gtf/homo_sapiens/Homo_sapiens.GRCh38.85.gtf.gz', 4112356774, NULL, 'Release 2.0', 'single_cell_RNAseq_level_2/Aligned_BAM/3882-AS-1-CCGCGGTT-AGCGCTAG_S150Aligned.sortedByCoord.out.filtered.bam', 'https://hub.docker.com/repository/docker/ramiremars/star_dropest', 'dropEst 0.8.6, STAR 2.7.5c', 'HTA11_83_200000101112111', 'No', '569b3781f870746444570acd1334e06d', 'droptag and dropEst used default parameters for indrops libraries v1 and v2. STAR alignment used basic mapping options', 'syn23630438', 'UB', 'CB', 'fe3d16f8-62f3-4bcb-a791-2cdfe93cfff3', 'HTAN Vanderbilt', 'ScRNA-seqLevel2', 'v22.12.1.seq', 'syn39050879', 'dropEST', 'HTA11_83_200000101111111, HTA11_83_200000101111121', 'https://github.com/indrops/indrops/tree/master/ref/barcode_lists', 'GRCh38'), ('ftp://ftp.ensembl.org/pub/release-85/fasta/homo_sapiens/dna/Homo_sapiens.GRCh38.dna.primary_assembly.fa.gz', 'bam', 10, 'a2fce1210929c6937efa7626d9a3102e', 'ftp://ftp.ensembl.org/pub/release-85/gtf/homo_sapiens/Homo_sapiens.GRCh38.85.gtf.gz', 2878311979, NULL, 'Release 2.0', 'single_cell_RNAseq_level_2/Aligned_BAM/5109-YX-6_S01_L005Aligned.sortedByCoord.out.filtered.bam', 'https://hub.docker.com/repository/docker/ramiremars/star_dropest', 'dropEst 0.8.6, STAR 2.7.5c', 'HTA11_83_200000101112211', 'No', 'a2fce1210929c6937efa7626d9a3102e', 'droptag and dropEst used default parameters for indrops libraries v1 and v2. STAR alignment used basic mapping options', 'syn23630698', 'UB', 'CB', 'c2d67975-232b-42c0-9cd5-9ebd89317b5b', 'HTAN Vanderbilt', 'ScRNA-seqLevel2', 'v22.12.1.seq', 'syn39050879', 'dropEST', 'HTA11_83_200000101111211, HTA11_83_200000101111221', 'https://github.com/indrops/indrops/tree/master/ref/barcode_lists', 'GRCh38'), ('ftp://ftp.ensembl.org/pub/release-85/fasta/homo_sapiens/dna/Homo_sapiens.GRCh38.dna.primary_assembly.fa.gz', 'bam', 10, 'f83e0457b88a072d642956ba686ec31d', 'ftp://ftp.ensembl.org/pub/release-85/gtf/homo_sapiens/Homo_sapiens.GRCh38.85.gtf.gz', 5434899285, NULL, 'Release 2.0', 'single_cell_RNAseq_level_2/Aligned_BAM/3882-AS-3-CCGCGGTT-AGCGCTAG_S356Aligned.sortedByCoord.out.filtered.bam', 'https://hub.docker.com/repository/docker/ramiremars/star_dropest', 'dropEst 0.8.6, STAR 2.7.5c', 'HTA11_83_200000202112111', 'No', 'f83e0457b88a072d642956ba686ec31d', 'droptag and dropEst used default parameters for indrops libraries v1 and v2. STAR alignment used basic mapping options', 'syn23630441', 'UB', 'CB', '2fd0a0ab-81e8-475a-807c-cf62af6b66a1', 'HTAN Vanderbilt', 'ScRNA-seqLevel2', 'v22.12.1.seq', 'syn39050879', 'dropEST', 'HTA11_83_200000202111111, HTA11_83_200000202111121', 'https://github.com/indrops/indrops/tree/master/ref/barcode_lists', 'GRCh38'), ('ftp://ftp.ensembl.org/pub/release-85/fasta/homo_sapiens/dna/Homo_sapiens.GRCh38.dna.primary_assembly.fa.gz', 'bam', 10, 'd2026208856f779bd9d50a2ae3e75ad6', 'ftp://ftp.ensembl.org/pub/release-85/gtf/homo_sapiens/Homo_sapiens.GRCh38.85.gtf.gz', 3411958546, NULL, 'Release 2.0', 'single_cell_RNAseq_level_2/Aligned_BAM/3906-AS-4-TTATAACC-GATATCGA_S2Aligned.sortedByCoord.out.filtered.bam', 'https://hub.docker.com/repository/docker/ramiremars/star_dropest', 'dropEst 0.8.6, STAR 2.7.5c', 'HTA11_104_200000202112111', 'No', 'd2026208856f779bd9d50a2ae3e75ad6', 'droptag and dropEst used default parameters for indrops libraries v1 and v2. STAR alignment used basic mapping options', 'syn23630529', 'UB', 'CB', 'f261bee2-aa74-448e-a85d-b825d3deccdb', 'HTAN Vanderbilt', 'ScRNA-seqLevel2', 'v22.12.1.seq', 'syn39050879', 'dropEST', 'HTA11_104_200000202111111, HTA11_104_200000202111121', 'https://github.com/indrops/indrops/tree/master/ref/barcode_lists', 'GRCh38'), ('ftp://ftp.ensembl.org/pub/release-85/fasta/homo_sapiens/dna/Homo_sapiens.GRCh38.dna.primary_assembly.fa.gz', 'bam', 10, 'e93620bedc49341aaf405ba5e42238af', 'ftp://ftp.ensembl.org/pub/release-85/gtf/homo_sapiens/Homo_sapiens.GRCh38.85.gtf.gz', 5021598867, NULL, 'Release 2.0', 'single_cell_RNAseq_level_2/Aligned_BAM/3927-AS-1-CCGCGGTT-AGCGCTAG_S9Aligned.sortedByCoord.out.filtered.bam', 'https://hub.docker.com/repository/docker/ramiremars/star_dropest', 'dropEst 0.8.6, STAR 2.7.5c', 'HTA11_392_300001101112111', 'No', 'e93620bedc49341aaf405ba5e42238af', 'droptag and dropEst used default parameters for indrops libraries v1 and v2. STAR alignment used basic mapping options', 'syn23630542', 'UB', 'CB', '4659ca58-2262-43c7-9f4a-3f4ac0e837d2', 'HTAN Vanderbilt', 'ScRNA-seqLevel2', 'v22.12.1.seq', 'syn39050879', 'dropEST', 'HTA11_392_300001101111111, HTA11_392_300001101111121', 'https://github.com/indrops/indrops/tree/master/ref/barcode_lists', 'GRCh38');