-- DBMS: snowflake
create or replace TABLE SOMATIC_MUTATION_HG38_GDC_R6 (
	"project_short_name" VARCHAR(16777216),
	"case_barcode" VARCHAR(16777216),
	"sample_barcode_tumor" VARCHAR(16777216),
	"sample_barcode_normal" VARCHAR(16777216),
	"aliquot_barcode_tumor" VARCHAR(16777216),
	"aliquot_barcode_normal" VARCHAR(16777216),
	"NCBI_Build" VARCHAR(16777216),
	"Hugo_Symbol" VARCHAR(16777216),
	HGNC_ID VARCHAR(16777216),
	"Entrez_Gene_Id" NUMBER(38,0),
	SYMBOL VARCHAR(16777216),
	SYMBOL_SOURCE VARCHAR(16777216),
	"Variant_Classification" VARCHAR(16777216),
	VARIANT_CLASS VARCHAR(16777216),
	"Variant_Type" VARCHAR(16777216),
	"Chromosome" VARCHAR(16777216),
	"Start_Position" NUMBER(38,0),
	"End_Position" NUMBER(38,0),
	"Strand" VARCHAR(16777216),
	TRANSCRIPT_STRAND NUMBER(38,0),
	"Mutation_Status" VARCHAR(16777216),
	"HGVSc" VARCHAR(16777216),
	"HGVSp" VARCHAR(16777216),
	"HGVSp_Short" VARCHAR(16777216),
	"cDNA_position" VARCHAR(16777216),
	"CDS_position" VARCHAR(16777216),
	"Protein_position" VARCHAR(16777216),
	"Amino_acids" VARCHAR(16777216),
	"Codons" VARCHAR(16777216),
	"Gene" VARCHAR(16777216),
	"Feature" VARCHAR(16777216),
	"Feature_type" VARCHAR(16777216),
	BIOTYPE VARCHAR(16777216),
	"Transcript_ID" VARCHAR(16777216),
	"Exon_Number" VARCHAR(16777216),
	"callerName" VARCHAR(16777216),
	FILTER VARCHAR(16777216),
	GDC_FILTER VARCHAR(16777216),
	"GDC_Validation_Status" VARCHAR(16777216),
	"MC3_Overlap" VARCHAR(16777216),
	"Center" VARCHAR(16777216),
	"Sequencer" VARCHAR(16777216),
	COSMIC VARCHAR(16777216),
	"dbSNP_RS" VARCHAR(16777216),
	"dbSNP_Val_Status" VARCHAR(16777216),
	"Consequence" VARCHAR(16777216),
	IMPACT VARCHAR(16777216),
	MINIMISED VARCHAR(16777216),
	"Reference_Allele" VARCHAR(16777216),
	"Allele" VARCHAR(16777216),
	ALLELE_NUM VARCHAR(16777216),
	"Tumor_Seq_Allele1" VARCHAR(16777216),
	"Tumor_Seq_Allele2" VARCHAR(16777216),
	"Match_Norm_Seq_Allele1" VARCHAR(16777216),
	"Match_Norm_Seq_Allele2" VARCHAR(16777216),
	"Tumor_Validation_Allele1" VARCHAR(16777216),
	"Tumor_Validation_Allele2" VARCHAR(16777216),
	"Match_Norm_Validation_Allele1" VARCHAR(16777216),
	"Match_Norm_Validation_Allele2" VARCHAR(16777216),
	"gdc_case_uuid" VARCHAR(16777216),
	"gdc_tumor_sample_uuid" VARCHAR(16777216),
	"gdc_normal_sample_uuid" VARCHAR(16777216),
	"gdc_maf_uuid" VARCHAR(16777216),
	"gdc_maf_file_name" VARCHAR(16777216),
	"gdc_vcf_uuid" VARCHAR(16777216),
	"gdc_tumor_bam_uuid" VARCHAR(16777216),
	"gdc_normal_bam_uuid" VARCHAR(16777216),
	"t_depth" VARCHAR(16777216),
	"t_ref_count" VARCHAR(16777216),
	"t_alt_count" VARCHAR(16777216),
	"n_depth" VARCHAR(16777216),
	"n_ref_count" VARCHAR(16777216),
	"n_alt_count" VARCHAR(16777216),
	"Verification_Status" VARCHAR(16777216),
	"Validation_Status" VARCHAR(16777216),
	"Sequencing_Phase" VARCHAR(16777216),
	"Sequence_Source" VARCHAR(16777216),
	"Validation_Method" VARCHAR(16777216),
	"Score" VARCHAR(16777216),
	"BAM_File" VARCHAR(16777216),
	"all_effects" VARCHAR(16777216),
	"Existing_variation" VARCHAR(16777216),
	DISTANCE NUMBER(38,0),
	CANONICAL VARCHAR(16777216),
	CCDS VARCHAR(16777216),
	ENSP VARCHAR(16777216),
	SWISSPROT VARCHAR(16777216),
	TREMBL VARCHAR(16777216),
	UNIPARC VARCHAR(16777216),
	"RefSeq" VARCHAR(16777216),
	SIFT VARCHAR(16777216),
	"PolyPhen" VARCHAR(16777216),
	EXON VARCHAR(16777216),
	INTRON VARCHAR(16777216),
	DOMAINS VARCHAR(16777216),
	CLIN_SIG VARCHAR(16777216),
	SOMATIC VARCHAR(16777216),
	PUBMED VARCHAR(16777216),
	MOTIF_NAME VARCHAR(16777216),
	MOTIF_POS VARCHAR(16777216),
	HIGH_INF_POS VARCHAR(16777216),
	MOTIF_SCORE_CHANGE VARCHAR(16777216),
	PICK VARCHAR(16777216),
	TSL NUMBER(38,0),
	HGVS_OFFSET NUMBER(38,0),
	PHENO VARCHAR(16777216),
	GENE_PHENO VARCHAR(16777216),
	CONTEXT VARCHAR(16777216),
	GMAF FLOAT,
	AFR_MAF FLOAT,
	AMR_MAF FLOAT,
	ASN_MAF VARCHAR(16777216),
	EAS_MAF FLOAT,
	EUR_MAF FLOAT,
	SAS_MAF FLOAT,
	AA_MAF VARCHAR(16777216),
	EA_MAF VARCHAR(16777216),
	"ExAC_AF" VARCHAR(16777216),
	"ExAC_AF_Adj" VARCHAR(16777216),
	"ExAC_AF_AFR" VARCHAR(16777216),
	"ExAC_AF_AMR" VARCHAR(16777216),
	"ExAC_AF_EAS" VARCHAR(16777216),
	"ExAC_AF_FIN" VARCHAR(16777216),
	"ExAC_AF_NFE" VARCHAR(16777216),
	"ExAC_AF_OTH" VARCHAR(16777216),
	"ExAC_AF_SAS" VARCHAR(16777216)
);

INSERT INTO "TCGA_MITELMAN"."TCGA_VERSIONED"."SOMATIC_MUTATION_HG38_GDC_R6" (GDC_FILTER, ExAC_AF_AMR, PHENO, Exon_Number, sample_barcode_normal, MC3_Overlap, CDS_position, t_alt_count, AMR_MAF, Score, CLIN_SIG, ExAC_AF, INTRON, gdc_vcf_uuid, UNIPARC, Mutation_Status, NCBI_Build, Sequence_Source, GENE_PHENO, MINIMISED, Tumor_Validation_Allele2, gdc_tumor_sample_uuid, gdc_normal_bam_uuid, BAM_File, COSMIC, Validation_Method, DOMAINS, EAS_MAF, PICK, DISTANCE, SYMBOL_SOURCE, ENSP, SOMATIC, gdc_normal_sample_uuid, MOTIF_POS, Center, MOTIF_NAME, Validation_Status, n_alt_count, Strand, n_ref_count, ExAC_AF_NFE, MOTIF_SCORE_CHANGE, AA_MAF, SWISSPROT, aliquot_barcode_normal, Protein_position, SIFT, Hugo_Symbol, ExAC_AF_FIN, t_depth, TRANSCRIPT_STRAND, ALLELE_NUM, SAS_MAF, Tumor_Validation_Allele1, AFR_MAF, Codons, SYMBOL, EXON, ExAC_AF_SAS, n_depth, project_short_name, Amino_acids, case_barcode, IMPACT, cDNA_position, Verification_Status, Gene, ExAC_AF_Adj, HGVSp, Existing_variation, GDC_Validation_Status, PUBMED, Match_Norm_Validation_Allele2, FILTER, Reference_Allele, Sequencing_Phase, EUR_MAF, ExAC_AF_OTH, sample_barcode_tumor, HGVSc, Consequence, ExAC_AF_AFR, BIOTYPE, Variant_Type, Match_Norm_Seq_Allele1, Entrez_Gene_Id, EA_MAF, ASN_MAF, Allele, End_Position, Tumor_Seq_Allele2, dbSNP_Val_Status, HGNC_ID, aliquot_barcode_tumor, GMAF, Chromosome, ExAC_AF_EAS, HGVS_OFFSET, VARIANT_CLASS, HGVSp_Short, CONTEXT, Match_Norm_Seq_Allele2, all_effects, Start_Position, PolyPhen, RefSeq, callerName, Tumor_Seq_Allele1, CCDS, TSL, gdc_case_uuid, gdc_tumor_bam_uuid, Feature, Feature_type, CANONICAL, gdc_maf_uuid, TREMBL, Match_Norm_Validation_Allele1, Variant_Classification, gdc_maf_file_name, dbSNP_RS, Sequencer, t_ref_count, HIGH_INF_POS, Transcript_ID) VALUES (NULL, NULL, NULL, '12/15', 'TCGA-BQ-7049-11A', 'True', '1418/2796', '3', NULL, NULL, NULL, NULL, NULL, 'f75bf287-88c3-4803-aa15-ca17e4545bfc', 'UPI000007311D', 'Somatic', 'GRCh38', NULL, NULL, '1', NULL, '91478a08-9bea-426b-bd0c-ca7cc87297b1', 'be7bf29a-5da8-4a5b-9576-2dd36c223f1f', NULL, NULL, NULL, NULL, NULL, '1', NULL, 'HGNC', 'ENSP00000347847', NULL, 'fd0fcf99-b8da-43e8-9ccb-9c792ac32047', NULL, 'BI', NULL, NULL, NULL, '+', NULL, NULL, NULL, NULL, 'Q969V6', 'TCGA-BQ-7049-11A-01D-1961-08', '473/931', 'tolerated(0.1)', 'MKL1', NULL, '23', -1, '1', NULL, NULL, NULL, 'gGg/gTg', 'MKL1', '12/15', NULL, '45', 'TCGA-KIRP', 'G/V', 'TCGA-BQ-7049', 'MODERATE', '2009/4496', NULL, 'ENSG00000196588', NULL, 'p.Gly473Val', NULL, 'Unknown', NULL, NULL, 'PASS', 'C', NULL, NULL, NULL, 'TCGA-BQ-7049-01A', 'c.1418G>T', 'missense_variant', NULL, 'protein_coding', 'SNP', NULL, 57591, NULL, NULL, 'A', 40419020, 'A', NULL, 'HGNC:14334', 'TCGA-BQ-7049-01A-11D-1961-08', NULL, 'chr22', NULL, NULL, 'SNV', 'p.G473V', 'TGTCCCCGGGG', NULL, 'MKL1,missense_variant,p.G473V,ENST00000396617,NM_001282662.1;MKL1,missense_variant,p.G473V,ENST00000355630,NM_020831.4;MKL1,missense_variant,p.G423V,ENST00000402042,NM_001282661.1;MKL1,missense_variant,p.G508V,ENST00000618196,;MKL1,missense_variant,p.G473V,ENST00000407029,NM_001282660.1;MKL1,missense_variant,p.G474V,ENST00000614754,;MKL1,missense_variant,p.G424V,ENST00000620651,;MKL1,intron_variant,,ENST00000618417,;RP5-1042K10.13,downstream_gene_variant,,ENST00000609279,;MKL1,upstream_gene_variant,,ENST00000477468,', 40419020, 'probably_damaging(0.997)', 'NM_020831.4', 'varscan', 'C', 'CCDS14003.1', 1, '93b05e07-fd17-44ce-8735-dcc28264b229', '5fc30718-de91-4da1-9d62-80b360717838', 'ENST00000355630', 'Transcript', 'YES', '910e05df-8e69-4812-bb44-d337ffe4437a', NULL, NULL, 'Missense_Mutation', 'TCGA.KIRP.varscan.910e05df-8e69-4812-bb44-d337ffe4437a.DR-6.0.somatic.maf', 'novel', 'Illumina HiSeq 2000', '20', NULL, 'ENST00000355630'), (NULL, NULL, NULL, '13/28', 'TCGA-BQ-7049-11A', 'False', '3178/7149', '9', NULL, NULL, NULL, NULL, NULL, 'df5e5edc-7b16-4e42-9903-337ab41380a4', 'UPI000013CD65', 'Somatic', 'GRCh38', NULL, NULL, '1', NULL, '91478a08-9bea-426b-bd0c-ca7cc87297b1', 'be7bf29a-5da8-4a5b-9576-2dd36c223f1f', NULL, NULL, NULL, 'Low_complexity_(Seg):Seg', NULL, NULL, NULL, 'HGNC', 'ENSP00000313059', NULL, 'fd0fcf99-b8da-43e8-9ccb-9c792ac32047', NULL, 'BI', NULL, NULL, NULL, '+', NULL, NULL, NULL, NULL, 'Q9H4A3', 'TCGA-BQ-7049-11A-01D-1961-08', '1060/2382', 'deleterious(0.03)', 'WNK1', NULL, '190', 1, '1', NULL, NULL, NULL, 'Cag/Aag', 'WNK1', '13/28', NULL, '176', 'TCGA-KIRP', 'Q/K', 'TCGA-BQ-7049', 'MODERATE', '3821/10452', NULL, 'ENSG00000060237', NULL, 'p.Gln1060Lys', NULL, 'Unknown', NULL, NULL, 'PASS', 'C', NULL, NULL, NULL, 'TCGA-BQ-7049-01A', 'c.3178C>A', 'missense_variant', NULL, 'protein_coding', 'SNP', NULL, 65125, NULL, NULL, 'A', 881758, 'A', NULL, 'HGNC:14540', 'TCGA-BQ-7049-01A-11D-1961-08', NULL, 'chr12', NULL, NULL, 'SNV', 'p.Q1060K', 'CTACCCAGCCG', NULL, 'WNK1,missense_variant,p.Q1473K,ENST00000530271,;WNK1,missense_variant,p.Q1320K,ENST00000537687,NM_001184985.1;WNK1,missense_variant,p.Q1312K,ENST00000340908,NM_213655.4;WNK1,missense_variant,p.Q1060K,ENST00000315939,NM_018979.3;WNK1,missense_variant,p.Q813K,ENST00000535572,NM_014823.2;WNK1,missense_variant,p.Q137K,ENST00000544965,;WNK1,downstream_gene_variant,,ENST00000535698,;WNK1,downstream_gene_variant,,ENST00000574679,;WNK1,upstream_gene_variant,,ENST00000534872,;WNK1,downstream_gene_variant,,ENST00000545285,;WNK1,non_coding_transcript_exon_variant,,ENST00000545055,;WNK1,non_coding_transcript_exon_variant,,ENST00000542543,', 881758, 'probably_damaging(0.932)', 'NM_018979.3', 'mutect', 'C', 'CCDS8506.1', 1, '93b05e07-fd17-44ce-8735-dcc28264b229', '5fc30718-de91-4da1-9d62-80b360717838', 'ENST00000315939', 'Transcript', NULL, 'b286dd57-b803-4081-90ed-90549f2cd7a7', NULL, NULL, 'Missense_Mutation', 'TCGA.KIRP.mutect.b286dd57-b803-4081-90ed-90549f2cd7a7.DR-6.0.somatic.maf', 'novel', 'Illumina HiSeq 2000', '181', NULL, 'ENST00000315939'), (NULL, NULL, NULL, '1/2', 'TCGA-BQ-7049-11A', 'False', '2485/3210', '4', NULL, NULL, NULL, NULL, NULL, 'df5e5edc-7b16-4e42-9903-337ab41380a4', 'UPI000013EA2E', 'Somatic', 'GRCh38', NULL, NULL, '1', NULL, '91478a08-9bea-426b-bd0c-ca7cc87297b1', 'be7bf29a-5da8-4a5b-9576-2dd36c223f1f', NULL, NULL, NULL, 'PROSITE_profiles:PS50268;Pfam_domain:PF00028;SMART_domains:SM00112;Superfamily_domains:SSF49313', NULL, NULL, NULL, 'HGNC', 'ENSP00000355243', NULL, 'fd0fcf99-b8da-43e8-9ccb-9c792ac32047', NULL, 'BI', NULL, NULL, NULL, '+', NULL, NULL, NULL, NULL, 'O60245', 'TCGA-BQ-7049-11A-01D-1961-08', '829/1069', 'tolerated(1)', 'PCDH7', NULL, '44', 1, '1', NULL, NULL, NULL, 'Cag/Aag', 'PCDH7', '1/2', NULL, '46', 'TCGA-KIRP', 'Q/K', 'TCGA-BQ-7049', 'MODERATE', '3493/6403', NULL, 'ENSG00000169851', NULL, 'p.Gln829Lys', NULL, 'Unknown', NULL, NULL, 'PASS', 'C', NULL, NULL, NULL, 'TCGA-BQ-7049-01A', 'c.2485C>A', 'missense_variant', NULL, 'protein_coding', 'SNP', NULL, 5099, NULL, NULL, 'A', 30723907, 'A', NULL, 'HGNC:8659', 'TCGA-BQ-7049-01A-11D-1961-08', NULL, 'chr4', NULL, NULL, 'SNV', 'p.Q829K', 'CTTCCCAGTCC', NULL, 'PCDH7,missense_variant,p.Q519K,ENST00000511884,NM_032457.3&NM_001173523.1;PCDH7,missense_variant,p.Q829K,ENST00000361762,NM_002589.2;PCDH7,missense_variant,p.Q829K,ENST00000543491,NM_032456.2;PCDH7,missense_variant,p.Q144K,ENST00000621961,;PCDH7,upstream_gene_variant,,ENST00000509759,;PCDH7,intron_variant,,ENST00000507864,', 30723907, 'possibly_damaging(0.734)', 'NM_002589.2', 'mutect', 'C', 'CCDS33971.1', 1, '93b05e07-fd17-44ce-8735-dcc28264b229', '5fc30718-de91-4da1-9d62-80b360717838', 'ENST00000361762', 'Transcript', NULL, 'b286dd57-b803-4081-90ed-90549f2cd7a7', NULL, NULL, 'Missense_Mutation', 'TCGA.KIRP.mutect.b286dd57-b803-4081-90ed-90549f2cd7a7.DR-6.0.somatic.maf', 'novel', 'Illumina HiSeq 2000', '40', NULL, 'ENST00000361762'), (NULL, NULL, NULL, '13/18', 'TCGA-BQ-7049-11A', 'True', '1890/2871', '7', NULL, NULL, NULL, NULL, NULL, 'df5e5edc-7b16-4e42-9903-337ab41380a4', 'UPI0000049E7C', 'Somatic', 'GRCh38', NULL, NULL, '1', NULL, '91478a08-9bea-426b-bd0c-ca7cc87297b1', 'be7bf29a-5da8-4a5b-9576-2dd36c223f1f', NULL, NULL, NULL, NULL, NULL, '1', NULL, 'HGNC', 'ENSP00000266546', NULL, 'fd0fcf99-b8da-43e8-9ccb-9c792ac32047', NULL, 'BI', NULL, NULL, NULL, '+', NULL, NULL, NULL, NULL, 'Q9BQT9', 'TCGA-BQ-7049-11A-01D-1961-08', '630/956', 'tolerated(0.5)', 'CLSTN3', NULL, '63', 1, '1', NULL, NULL, NULL, 'gaG/gaT', 'CLSTN3', '13/18', NULL, '57', 'TCGA-KIRP', 'E/D', 'TCGA-BQ-7049', 'MODERATE', '2340/4185', NULL, 'ENSG00000139182', NULL, 'p.Glu630Asp', NULL, 'Unknown', NULL, NULL, 'PASS', 'G', NULL, NULL, NULL, 'TCGA-BQ-7049-01A', 'c.1890G>T', 'missense_variant', NULL, 'protein_coding', 'SNP', NULL, 9746, NULL, NULL, 'T', 7149014, 'T', NULL, 'HGNC:18371', 'TCGA-BQ-7049-01A-11D-1961-08', NULL, 'chr12', NULL, NULL, 'SNV', 'p.E630D', 'GTGGAGGGCTA', NULL, 'CLSTN3,missense_variant,p.E642D,ENST00000537408,;CLSTN3,missense_variant,p.E630D,ENST00000266546,NM_014718.3;CLSTN3,non_coding_transcript_exon_variant,,ENST00000541770,;CLSTN3,upstream_gene_variant,,ENST00000542663,', 7149014, 'benign(0.062)', 'NM_014718.3', 'mutect', 'G', 'CCDS8575.1', 1, '93b05e07-fd17-44ce-8735-dcc28264b229', '5fc30718-de91-4da1-9d62-80b360717838', 'ENST00000266546', 'Transcript', 'YES', 'b286dd57-b803-4081-90ed-90549f2cd7a7', NULL, NULL, 'Missense_Mutation', 'TCGA.KIRP.mutect.b286dd57-b803-4081-90ed-90549f2cd7a7.DR-6.0.somatic.maf', 'novel', 'Illumina HiSeq 2000', '56', NULL, 'ENST00000266546'), (NULL, NULL, NULL, '18/43', 'TCGA-BQ-7049-11A', 'False', '3974/9111', '7', NULL, NULL, NULL, NULL, NULL, 'df5e5edc-7b16-4e42-9903-337ab41380a4', 'UPI000013CCDD', 'Somatic', 'GRCh38', NULL, NULL, '1', NULL, '91478a08-9bea-426b-bd0c-ca7cc87297b1', 'be7bf29a-5da8-4a5b-9576-2dd36c223f1f', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'HGNC', 'ENSP00000251076', NULL, 'fd0fcf99-b8da-43e8-9ccb-9c792ac32047', NULL, 'BI', NULL, NULL, NULL, '+', NULL, NULL, NULL, NULL, 'Q8TDJ6', 'TCGA-BQ-7049-11A-01D-1961-08', '1325/3036', 'tolerated(0.05)', 'DMXL2', NULL, '100', -1, '1', NULL, NULL, NULL, 'cCa/cAa', 'DMXL2', '18/43', NULL, '78', 'TCGA-KIRP', 'P/Q', 'TCGA-BQ-7049', 'MODERATE', '4262/10672', NULL, 'ENSG00000104093', NULL, 'p.Pro1325Gln', NULL, 'Unknown', NULL, NULL, 'PASS', 'G', NULL, NULL, NULL, 'TCGA-BQ-7049-01A', 'c.3974C>A', 'missense_variant', NULL, 'protein_coding', 'SNP', NULL, 23312, NULL, NULL, 'T', 51499250, 'T', NULL, 'HGNC:2938', 'TCGA-BQ-7049-01A-11D-1961-08', NULL, 'chr15', NULL, NULL, 'SNV', 'p.P1325Q', 'CAGTTGGTGAA', NULL, 'DMXL2,missense_variant,p.P1325Q,ENST00000251076,NM_015263.3;DMXL2,missense_variant,p.P1325Q,ENST00000543779,NM_001174116.1;DMXL2,intron_variant,,ENST00000449909,NM_001174117.1;RP11-707P17.1,downstream_gene_variant,,ENST00000561007,', 51499250, 'probably_damaging(0.999)', 'NM_015263.3', 'mutect', 'G', 'CCDS10141.1', 1, '93b05e07-fd17-44ce-8735-dcc28264b229', '5fc30718-de91-4da1-9d62-80b360717838', 'ENST00000251076', 'Transcript', NULL, 'b286dd57-b803-4081-90ed-90549f2cd7a7', 'A0A024R5V2', NULL, 'Missense_Mutation', 'TCGA.KIRP.mutect.b286dd57-b803-4081-90ed-90549f2cd7a7.DR-6.0.somatic.maf', 'novel', 'Illumina HiSeq 2000', '93', NULL, 'ENST00000251076');