-- DBMS: snowflake
create or replace TABLE SCRNASEQ_MSK_EPITHELIAL_CELLS_CURRENT (
	"iObs" NUMBER(38,0),
	"iVar" NUMBER(38,0),
	"X_value" FLOAT,
	"n_genes_by_counts" NUMBER(38,0),
	"log1p_n_genes_by_counts" FLOAT,
	"total_counts" FLOAT,
	"log1p_total_counts" FLOAT,
	"mito_frac" FLOAT,
	"RBP_frac" FLOAT,
	"batch" VARCHAR(16777216),
	"donor_id" VARCHAR(16777216),
	"treatment" VARCHAR(16777216),
	"procedure" VARCHAR(16777216),
	"author_cell_type" VARCHAR(16777216),
	"clusters" VARCHAR(16777216),
	"cell_type_ontology_term_id" VARCHAR(16777216),
	"tissue_ontology_term_id" VARCHAR(16777216),
	"disease_ontology_term_id" VARCHAR(16777216),
	"organism_ontology_term_id" VARCHAR(16777216),
	"is_primary_data" BOOLEAN,
	"development_stage_ontology_term_id" VARCHAR(16777216),
	"assay_ontology_term_id" VARCHAR(16777216),
	"sex_ontology_term_id" VARCHAR(16777216),
	"self_reported_ethnicity_ontology_term_id" VARCHAR(16777216),
	"suspension_type" VARCHAR(16777216),
	"HTAN_Biospecimen_ID" VARCHAR(16777216),
	"HTAN_Participant_ID" VARCHAR(16777216),
	"cell_type" VARCHAR(16777216),
	"assay" VARCHAR(16777216),
	"disease" VARCHAR(16777216),
	"organism" VARCHAR(16777216),
	"sex" VARCHAR(16777216),
	"tissue" VARCHAR(16777216),
	"self_reported_ethnicity" VARCHAR(16777216),
	"development_stage" VARCHAR(16777216),
	"feature_is_filtered" BOOLEAN,
	"feature_name" VARCHAR(16777216),
	"feature_reference" VARCHAR(16777216),
	"feature_biotype" VARCHAR(16777216)
);

INSERT INTO "HTAN_2"."HTAN"."SCRNASEQ_MSK_EPITHELIAL_CELLS_CURRENT" (disease_ontology_term_id, assay, feature_name, HTAN_Biospecimen_ID, procedure, self_reported_ethnicity, feature_reference, mito_frac, sex_ontology_term_id, self_reported_ethnicity_ontology_term_id, cell_type, n_genes_by_counts, tissue, iVar, HTAN_Participant_ID, RBP_frac, is_primary_data, sex, total_counts, X_value, feature_is_filtered, development_stage_ontology_term_id, feature_biotype, clusters, donor_id, author_cell_type, development_stage, batch, disease, assay_ontology_term_id, organism, iObs, organism_ontology_term_id, log1p_n_genes_by_counts, suspension_type, log1p_total_counts, cell_type_ontology_term_id, treatment, tissue_ontology_term_id) VALUES ('MONDO:0005061', '10x 3'' v2', 'GYPC', 'HTA8_1002_1', 'Resection', 'European', 'NCBITaxon:9606', 0.048686668276786804, 'PATO:0000383', 'HANCESTRO:0005', 'epithelial cell', 7892, 'lung', 7993, 'HTA8_1002', 0.3048549294471741, False, 'female', 72792.0, 0.2110166996717453, False, 'HsapDv:0000161', 'gene', '30', 'RU1057', 'NSCLC', '67-year-old human stage', 'RU1057_T', 'lung adenocarcinoma', 'EFO:0009899', 'Homo sapiens', 772, 'NCBITaxon:9606', 8.973731569708402, 'cell', 11.195375442504883, 'CL:0000066', 'Naive', 'UBERON:0002048'), ('MONDO:0005061', '10x 3'' v2', 'HTRA3', 'HTA8_1002_1', 'Resection', 'European', 'NCBITaxon:9606', 0.032236434519290924, 'PATO:0000383', 'HANCESTRO:0005', 'epithelial cell', 4918, 'lung', 8577, 'HTA8_1002', 0.48177647590637207, False, 'female', 37287.0, 0.3867887258529663, False, 'HsapDv:0000161', 'gene', '12', 'RU1057', 'NSCLC', '67-year-old human stage', 'RU1057_T', 'lung adenocarcinoma', 'EFO:0009899', 'Homo sapiens', 31656, 'NCBITaxon:9606', 8.50086053679534, 'cell', 10.526427268981934, 'CL:0000066', 'Naive', 'UBERON:0002048'), ('MONDO:0005061', '10x 3'' v2', 'HLF', 'HTA8_1002_1', 'Resection', 'European', 'NCBITaxon:9606', 0.031049435958266258, 'PATO:0000383', 'HANCESTRO:0005', 'basal cell', 2479, 'lung', 8320, 'HTA8_1002', 0.3862966299057007, False, 'female', 11530.0, 0.995927631855011, False, 'HsapDv:0000161', 'gene', '12', 'RU1057', 'Basal', '67-year-old human stage', 'RU1057_T', 'lung adenocarcinoma', 'EFO:0009899', 'Homo sapiens', 46382, 'NCBITaxon:9606', 7.8160138391590275, 'cell', 9.352794647216797, 'CL:0000646', 'Naive', 'UBERON:0002048'), ('MONDO:0005061', '10x 3'' v2', 'HLF', 'HTA8_1002_1', 'Resection', 'European', 'NCBITaxon:9606', 0.05010223388671875, 'PATO:0000383', 'HANCESTRO:0005', 'epithelial cell', 7746, 'lung', 8320, 'HTA8_1002', 0.3328789472579956, False, 'female', 68959.0, 0.2218872457742691, False, 'HsapDv:0000161', 'gene', '12', 'RU1057', 'NSCLC', '67-year-old human stage', 'RU1057_T', 'lung adenocarcinoma', 'EFO:0009899', 'Homo sapiens', 61103, 'NCBITaxon:9606', 8.955060950631902, 'cell', 11.141282081604004, 'CL:0000066', 'Naive', 'UBERON:0002048'), ('MONDO:0005061', '10x 3'' v2', 'GYPC', 'HTA8_1002_1', 'Resection', 'European', 'NCBITaxon:9606', 0.015336854383349419, 'PATO:0000383', 'HANCESTRO:0005', 'goblet cell', 2804, 'lung', 7993, 'HTA8_1002', 0.1285330355167389, False, 'female', 21582.0, 0.6146907806396484, False, 'HsapDv:0000161', 'gene', '30', 'RU1057', 'Mucinous', '67-year-old human stage', 'RU1057_T', 'lung adenocarcinoma', 'EFO:0009899', 'Homo sapiens', 49981, 'NCBITaxon:9606', 7.9391588179567965, 'cell', 9.979660987854004, 'CL:0000160', 'Naive', 'UBERON:0002048');