-- DBMS: snowflake
create or replace TABLE SCRNASEQ_MSK_IMMUNE_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),
	"histo" VARCHAR(16777216),
	"histology_subtype" VARCHAR(16777216),
	"author_cell_type" VARCHAR(16777216),
	"clusters" VARCHAR(16777216),
	"clusters_fine" VARCHAR(16777216),
	"tissue_ontology_term_id" VARCHAR(16777216),
	"disease_ontology_term_id" VARCHAR(16777216),
	"cell_type_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_IMMUNE_CELLS_CURRENT" (iObs, cell_type, organism_ontology_term_id, development_stage_ontology_term_id, feature_reference, suspension_type, HTAN_Participant_ID, tissue_ontology_term_id, histology_subtype, mito_frac, assay_ontology_term_id, tissue, clusters, batch, donor_id, histo, iVar, feature_is_filtered, disease_ontology_term_id, sex, X_value, feature_name, HTAN_Biospecimen_ID, assay, RBP_frac, feature_biotype, n_genes_by_counts, self_reported_ethnicity_ontology_term_id, log1p_total_counts, development_stage, organism, sex_ontology_term_id, disease, self_reported_ethnicity, clusters_fine, author_cell_type, cell_type_ontology_term_id, treatment, log1p_n_genes_by_counts, total_counts, is_primary_data, procedure) VALUES (67573, 'myeloid cell', 'NCBITaxon:9606', 'HsapDv:0000168', 'NCBITaxon:9606', 'cell', 'HTA8_3001', 'UBERON:0002048', 'normal', 0.07630057632923126, 'EFO:0009899', 'lung', '42', 'RU675_N', 'RU675', 'normal', 15027, False, 'PATO:0000461', 'female', 4.170470237731934, 'PTK2B', 'HTA8_3001_1', '10x 3'' v2', 0.07745664566755295, 'gene', 470, 'HANCESTRO:0008', 6.3784260749816895, '74-year-old human stage', 'Homo sapiens', 'PATO:0000383', 'normal', 'Asian', '5', 'Myeloid', 'CL:0000763', 'Naive', 6.154858094016418, 588.0, False, 'Resection'), (5401, 'myeloid cell', 'NCBITaxon:9606', 'HsapDv:0000168', 'NCBITaxon:9606', 'cell', 'HTA8_3001', 'UBERON:0002048', 'normal', 0.10555049777030945, 'EFO:0009899', 'lung', '42', 'RU675_N', 'RU675', 'normal', 15164, False, 'PATO:0000461', 'female', 5.489410400390625, 'RAB11FIP1', 'HTA8_3001_1', '10x 3'' v2', 0.03184713423252106, 'gene', 563, 'HANCESTRO:0008', 6.527957916259766, '74-year-old human stage', 'Homo sapiens', 'PATO:0000383', 'normal', 'Asian', '33', 'Myeloid', 'CL:0000763', 'Naive', 6.335054251498059, 683.0, False, 'Resection'), (49149, 'T cell', 'NCBITaxon:9606', 'HsapDv:0000168', 'NCBITaxon:9606', 'cell', 'HTA8_3001', 'UBERON:0002048', 'normal', 0.05988023802638054, 'EFO:0009899', 'lung', '42', 'RU675_N', 'RU675', 'normal', 15164, False, 'PATO:0000461', 'female', 4.619700908660889, 'RAB11FIP1', 'HTA8_3001_1', '10x 3'' v2', 0.026946106925606728, 'gene', 369, 'HANCESTRO:0008', 6.052089214324951, '74-year-old human stage', 'Homo sapiens', 'PATO:0000383', 'normal', 'Asian', '24', 'T cells', 'CL:0000084', 'Naive', 5.91350300563827, 424.0, False, 'Resection'), (30866, 'myeloid cell', 'NCBITaxon:9606', 'HsapDv:0000168', 'NCBITaxon:9606', 'cell', 'HTA8_3001', 'UBERON:0002048', 'normal', 0.1785714328289032, 'EFO:0009899', 'lung', '42', 'RU675_N', 'RU675', 'normal', 15035, False, 'PATO:0000461', 'female', 3.498080015182495, 'PTP4A2', 'HTA8_3001_1', '10x 3'' v2', 0.026477832347154617, 'gene', 769, 'HANCESTRO:0008', 6.8793559074401855, '74-year-old human stage', 'Homo sapiens', 'PATO:0000383', 'normal', 'Asian', '33', 'Myeloid', 'CL:0000763', 'Naive', 6.646390514847729, 971.0, False, 'Resection'), (42209, 'myeloid cell', 'NCBITaxon:9606', 'HsapDv:0000168', 'NCBITaxon:9606', 'cell', 'HTA8_3001', 'UBERON:0002048', 'normal', 0.1785714328289032, 'EFO:0009899', 'lung', '42', 'RU675_N', 'RU675', 'normal', 15059, False, 'PATO:0000461', 'female', 4.172789573669434, 'PTPRC', 'HTA8_3001_1', '10x 3'' v2', 0.027310924604535103, 'gene', 486, 'HANCESTRO:0008', 6.376727104187012, '74-year-old human stage', 'Homo sapiens', 'PATO:0000383', 'normal', 'Asian', '33', 'Myeloid', 'CL:0000763', 'Naive', 6.18826412308259, 587.0, False, 'Resection');