-- DBMS: snowflake
create or replace TABLE IMAGING_LEVEL4_DUKE_MIBI_CURRENT (
	"Point_Num" NUMBER(38,0),
	"HTAN_Parent_Data_File_ID" VARCHAR(16777216),
	"event" NUMBER(38,0),
	"CohortNumber" NUMBER(38,0),
	"cell_size" FLOAT,
	COLI FLOAT,
	CD14 FLOAT,
	P63 FLOAT,
	"Background" FLOAT,
	"pS6" FLOAT,
	"Ta" FLOAT,
	CD4 FLOAT,
	"Au" FLOAT,
	HLADRDPDQ FLOAT,
	ECADKRTCD45 FLOAT,
	"Nuc" FLOAT,
	GZMB FLOAT,
	ECADKRTCD45GLUT1CD44 FLOAT,
	"Tryptase" FLOAT,
	ECAD FLOAT,
	ECADKRTCD45GLUT1 FLOAT,
	AR FLOAT,
	GLUT1 FLOAT,
	MPO FLOAT,
	VIM FLOAT,
	CD3 FLOAT,
	SMA FLOAT,
	CD56 FLOAT,
	"PanKRT" FLOAT,
	"CD11c" FLOAT,
	HER2 FLOAT,
	CD68 FLOAT,
	P FLOAT,
	CK7 FLOAT,
	CD8 FLOAT,
	"Na" FLOAT,
	C FLOAT,
	PD1 FLOAT,
	CD44 FLOAT,
	"HIF1a" FLOAT,
	CD45 FLOAT,
	"X140empty" FLOAT,
	FAP FLOAT,
	PDL1 FLOAT,
	MMP9 FLOAT,
	"Ki67" FLOAT,
	CK5 FLOAT,
	COX2 FLOAT,
	CD20 FLOAT,
	FOXP3 FLOAT,
	IDO1 FLOAT,
	CD36 FLOAT,
	ECADKRT FLOAT,
	HH3 FLOAT,
	ER FLOAT,
	"Ca40" FLOAT,
	CD31 FLOAT,
	"CK5norm" FLOAT,
	"label" NUMBER(38,0),
	"area" NUMBER(38,0),
	"eccentricity" FLOAT,
	"major_axis_length" FLOAT,
	"minor_axis_length" FLOAT,
	"perimeter" FLOAT,
	"Tissue_Type" VARCHAR(16777216),
	"Status" VARCHAR(16777216),
	"Tissue" VARCHAR(16777216),
	"sublineage" VARCHAR(16777216),
	"phenotype" VARCHAR(16777216),
	"compartment" VARCHAR(16777216),
	"celllineage" VARCHAR(16777216),
	"sublineage_code" NUMBER(38,0),
	"phenotype_code" NUMBER(38,0),
	"compartment_code" NUMBER(38,0),
	"celllineage_code" NUMBER(38,0),
	"manual_gating_cellineage" VARCHAR(16777216),
	"manual_gating_subineage" VARCHAR(16777216),
	"manual_gating_phenotype" VARCHAR(16777216),
	"innerduct_mask" NUMBER(38,0),
	"distal_mask" NUMBER(38,0),
	"stroma_mask" NUMBER(38,0),
	"periph_mask" NUMBER(38,0),
	"epi_mask" NUMBER(38,0),
	"duct_mask" NUMBER(38,0),
	"myoep_mask" NUMBER(38,0),
	"ERstatus" NUMBER(38,0),
	"HER2status" NUMBER(38,0),
	"ARstatus" NUMBER(38,0),
	"Ki67status" NUMBER(38,0),
	"pS6status" NUMBER(38,0),
	"GLUT1status" NUMBER(38,0),
	"HIF1astatus" NUMBER(38,0),
	"COX2status" NUMBER(38,0),
	"CD36status" NUMBER(38,0),
	"CD44status" NUMBER(38,0),
	"PD1status" NUMBER(38,0),
	"PDL1status" NUMBER(38,0),
	"IDO1status" NUMBER(38,0),
	"GZMBstatus" NUMBER(38,0),
	"ECADstatus" NUMBER(38,0),
	"MMP9status" NUMBER(38,0),
	"VIMstatus" NUMBER(38,0),
	"FAPstatus" NUMBER(38,0),
	"HLADRstatus" NUMBER(38,0),
	"CD3status" NUMBER(38,0),
	"SMAstatus" NUMBER(38,0),
	"COLIstatus" NUMBER(38,0),
	"CK5status" NUMBER(38,0),
	"CK7status" NUMBER(38,0),
	"P63status" NUMBER(38,0),
	"myoep_dist_label" NUMBER(38,0),
	"myoep_dist_MinDist" FLOAT,
	"myoep_dist_MaxDist" FLOAT,
	"myoep_dist_MedDist" FLOAT,
	"myoep_dist_MeanDist" FLOAT,
	"celltype_code" NUMBER(38,0),
	"myoep_dist_MinDist1" FLOAT,
	"Neighbor_dist_TUMOR" FLOAT,
	"Neighbor_dist_MYOEP" FLOAT,
	"Neighbor_dist_FIBROBLAST" FLOAT,
	"Neighbor_dist_ENDO" FLOAT,
	"Neighbor_dist_MONODC" FLOAT,
	"Neighbor_dist_MONO" FLOAT,
	"Neighbor_dist_MACS" FLOAT,
	"Neighbor_dist_DC" FLOAT,
	"Neighbor_dist_APC" FLOAT,
	"Neighbor_dist_MAST" FLOAT,
	"Neighbor_dist_CD8T" FLOAT,
	"Neighbor_dist_CD4T" FLOAT,
	"Neighbor_dist_BCELL" FLOAT,
	"Neighbor_dist_TCELL" FLOAT,
	"Neighbor_dist_NEUT" FLOAT,
	"Neighbor_dist_IMMUNEOTHER" FLOAT,
	"K10_cluster" NUMBER(38,0),
	"duct_edge_mask" NUMBER(38,0),
	"duct_mid_mask" NUMBER(38,0),
	"duct_core_mask" NUMBER(38,0),
	"Source_filename" VARCHAR(16777216),
	"Source_entityId" VARCHAR(16777216),
	"HTAN_Center" VARCHAR(16777216),
	"HTAN_Biospecimen_ID" VARCHAR(16777216)
);

INSERT INTO "HTAN_2"."HTAN"."IMAGING_LEVEL4_DUKE_MIBI_CURRENT" (Status, Ca40, Neighbor_dist_MACS, Na, CD11c, PDL1status, CD3status, manual_gating_subineage, PD1status, Source_filename, VIM, SMAstatus, Neighbor_dist_IMMUNEOTHER, Au, P, CK5status, ERstatus, duct_mask, CD8, myoep_dist_MeanDist, IDO1, pS6status, COX2, CD20, Source_entityId, CD31, phenotype_code, HTAN_Biospecimen_ID, epi_mask, CD36status, ECADKRTCD45, FAPstatus, Neighbor_dist_CD8T, event, FOXP3, duct_core_mask, ER, minor_axis_length, X140empty, PDL1, CK7status, CK7, Neighbor_dist_MYOEP, myoep_mask, ECADKRTCD45GLUT1, innerduct_mask, Neighbor_dist_TUMOR, CD44status, MMP9, HER2, GZMB, Neighbor_dist_MAST, HER2status, HLADRstatus, IDO1status, CD3, MPO, phenotype, celltype_code, Nuc, duct_edge_mask, pS6, GLUT1status, Point_Num, GZMBstatus, Tissue, manual_gating_phenotype, label, myoep_dist_MinDist, CD4, HIF1a, CohortNumber, CD44, ARstatus, AR, periph_mask, Neighbor_dist_FIBROBLAST, myoep_dist_MinDist1, P63, celllineage, Neighbor_dist_BCELL, HTAN_Center, area, myoep_dist_label, C, HLADRDPDQ, Background, Neighbor_dist_MONODC, ECADstatus, ECAD, manual_gating_cellineage, COX2status, major_axis_length, SMA, CK5, myoep_dist_MedDist, HTAN_Parent_Data_File_ID, distal_mask, Ki67status, Neighbor_dist_TCELL, Neighbor_dist_NEUT, CD45, sublineage_code, CD14, COLIstatus, HH3, eccentricity, GLUT1, VIMstatus, celllineage_code, myoep_dist_MaxDist, Neighbor_dist_ENDO, ECADKRTCD45GLUT1CD44, PD1, Neighbor_dist_DC, CK5norm, Ta, perimeter, PanKRT, Tissue_Type, ECADKRT, Ki67, P63status, Neighbor_dist_MONO, stroma_mask, cell_size, sublineage, CD36, MMP9status, compartment, COLI, FAP, Neighbor_dist_CD4T, K10_cluster, HIF1astatus, Neighbor_dist_APC, duct_mid_mask, compartment_code, CD56, Tryptase, CD68) VALUES ('ipsinv', 0.9027115, 0.0, 0.8979889, 0.0, 0, 0, 'APC', 0, 'Single_cell_data.csv', 0.982842, 0, 0.0, 0.8990476, 0.7319504, 0, 0, 0, 0.0, 654.89, 0.0, 0, 0.0, 0.0, 'syn52126197', 0.0, 28, 'HTA6_1159_191', 0, 0, 0.3928185, 0, 0.0, 46039, 0.0, 0, 0.0, 14.12384, 0.0, 0.0, 0, 0.0, 0.0, 0, 0.470515, 0, 0.5, 0, 0.0, 0.0, 0.0, 0.0, 0, 1, 0, 0.0, 0.0, 'APC', 7, 0.8589232, 0, 0.0, 1, 4120, 0, 'NewInv', 'APC', 360, 40.439, 0.0, 0.0, 86, 0.0, 0, 0.0, 1, 0.0, 40.44, 0.0, 'immune', 0.0, 'HTAN Duke', 189, 360, 0.8984276, 0.7289431, 0.7477373, 0.0, 0, 0.0, 'immune', 0, 17.04136, 0.0, 0.0, 662.51, 'HTA6_1159_413', 0, 0, 0.0, 0.0, 0.4627043, 9, 0.0, 1, 0.8558333, 0.5595487, 0.4337554, 1, 5, 1127.6, 0.0, 0.4685619, 0.0, 0.0, 0.0, 0.9082445, 48.38478, 0.0, 'IBC', 0.0, 0.0, 0, 0.0, 1, 0.6379632, 'APC', 0.0, 0, 'stroma', 0.752641, 0.05925296, 0.0, 6, 0, 0.5, 0, 2, 0.0, 0.0, 0.1959312), ('ipsinv', 0.6854673, 0.15385, 0.7054081, 0.0, 0, 0, 'MAST', 0, 'Single_cell_data.csv', 0.8076719, 0, 0.0, 0.6337504, 0.9015904, 0, 0, 0, 0.0, 590.37, 0.6617079, 1, 0.0, 0.0, 'syn52126197', 0.06778513, 28, 'HTA6_1159_191', 1, 0, 0.6346632, 0, 0.0, 45984, 0.0, 0, 0.0, 11.26385, 0.0, 0.0, 0, 0.0, 0.0, 1, 0.7019282, 0, 0.61538, 1, 0.4674769, 0.0, 0.2926043, 0.0, 0, 1, 1, 0.0, 0.0, 'APC', 7, 0.8874543, 0, 0.2071119, 1, 4120, 1, 'NewInv', 'MAST', 281, 4.5691, 0.0, 0.2418419, 86, 0.6044588, 0, 0.0, 0, 0.0, 4.57, 0.0, 'immune', 0.0, 'HTAN Duke', 164, 281, 0.9567627, 0.9459161, 0.7860004, 0.0, 1, 0.6001246, 'immune', 0, 19.07037, 0.0, 0.0, 609.75, 'HTA6_1159_413', 0, 0, 0.0, 0.0, 0.6705538, 9, 0.3311816, 1, 0.8649554, 0.8069305, 0.6918638, 1, 1, 1070.2, 0.0, 0.7218084, 0.0, 0.076923, 0.0, 0.5156112, 49.1066, 0.3811185, 'IBC', 0.5110145, 0.0, 0, 0.076923, 0, 0.6170465, 'APC', 0.0, 1, 'stroma', 0.7498248, 0.0, 0.0, 7, 0, 0.076923, 0, 1, 0.0, 0.6528424, 0.0), ('ipsinv', 0.8590725, 0.0, 0.8429062, 0.0, 0, 0, 'FIBROBLAST', 0, 'Single_cell_data.csv', 0.8428989, 0, 0.0, 0.837722, 0.8290842, 0, 0, 0, 0.0, 512.94, 0.0, 1, 0.0, 0.0, 'syn52126197', 0.0, 28, 'HTA6_1159_191', 0, 0, 0.0, 0, 0.0, 46177, 0.0, 0, 0.0, 15.06545, 0.0, 0.0, 0, 0.0, 0.0, 0, 0.0, 0, 0.5, 0, 0.0, 0.0, 0.0, 0.0, 0, 1, 0, 0.0, 0.0, 'APC', 7, 0.8553912, 0, 0.4341858, 0, 4120, 0, 'NewInv', 'FIBRO_VIMonly', 528, 20.047, 0.0, 0.0, 86, 0.0, 0, 0.0, 1, 0.0, 20.05, 0.0, 'immune', 0.0, 'HTAN Duke', 192, 528, 0.9271562, 0.7357519, 0.599765, 0.0, 0, 0.0, 'fibroblast', 0, 16.36335, 0.0, 0.0, 505.36, 'HTA6_1159_413', 0, 1, 0.0, 0.0, 0.0, 9, 0.0, 1, 0.838236, 0.3903113, 0.0, 1, 5, 958.81, 0.3, 0.0, 0.0, 0.0, 0.0, 0.8061572, 48.72792, 0.0, 'IBC', 0.0, 0.8187508, 0, 0.1, 1, 0.640285, 'APC', 0.0, 0, 'stroma', 0.6424107, 0.0, 0.0, 6, 0, 0.1, 0, 2, 0.0, 0.0, 0.1084607), ('ipsinv', 0.9918372, 0.0, 0.9863673, 0.0, 0, 0, 'OTHER', 0, 'Single_cell_data.csv', 0.0, 0, 0.0, 0.9890751, 0.0, 0, 0, 0, 0.0, 537.49, 0.0, 0, 0.0, 0.0, 'syn52126197', 0.0, 30, 'HTA6_1159_191', 0, 0, 0.0, 0, 0.0, 46300, 0.0, 0, 0.0, 7.383961, 0.0, 0.0, 0, 0.0, 0.0, 0, 0.0, 0, 0.93333, 0, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0.0, 0.0, 'OTHER', 15, 0.8083214, 0, 0.0, 0, 4120, 0, 'NewInv', 'OTHER', 1005, 3.3218, 0.0, 0.0, 86, 0.0, 0, 0.0, 1, 0.0, 3.32, 0.0, 'other', 0.0, 'HTAN Duke', 50, 1005, 0.6466108, 0.0, 0.0, 0.0, 0, 0.0, 'other', 0, 8.577104, 0.0, 0.0, 544.82, 'HTA6_1159_413', 0, 0, 0.0, 0.0, 0.0, 17, 0.0, 0, 0.8244561, 0.5087877, 0.0, 0, 6, 1026.3, 0.0, 0.0, 0.0, 0.0, 0.0, 1.004633, 23.07107, 0.0, 'IBC', 0.0, 0.0, 0, 0.0, 1, 0.4421911, 'OTHER', 0.0, 0, 'other', 0.0, 0.0, 0.0, 2, 0, 0.0, 0, 3, 0.0, 0.0, 0.0), ('ipsinv', 0.6223614, 0.0, 0.6209114, 0.0, 0, 0, 'TUMOR', 0, 'Single_cell_data.csv', 0.0, 0, 0.0, 0.5778248, 0.790088, 0, 0, 0, 0.0, 587.33, 0.0, 1, 0.0, 0.0, 'syn52126197', 0.0, 1, 'HTA6_1032_2', 1, 0, 0.4623715, 0, 0.0, 54920, 0.0, 0, 0.0, 14.19434, 0.0, 0.0, 0, 0.0, 0.0, 1, 0.4596392, 0, 0.75, 0, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0.0, 0.0, 'TUMOR_ECADCK', 15, 0.8571834, 0, 0.5721384, 0, 4127, 0, 'NewInv', 'TUMOR_ECADCK', 249, 3.284, 0.0, 0.0, 93, 0.0, 0, 0.0, 0, 0.125, 3.28, 0.0, 'tumor', 0.0, 'HTAN Duke', 181, 249, 0.946609, 0.0, 0.0, 0.0, 0, 0.0, 'tumor', 0, 16.34643, 0.0, 0.0, 581.11, 'HTA6_1032_415', 0, 0, 0.0, 0.0, 0.0, 1, 0.0, 0, 0.8489529, 0.4959604, 0.0, 0, 1, 1100.2, 0.0, 0.4577312, 0.0, 0.0, 0.0, 0.5043181, 47.55635, 0.464901, 'lobular', 0.4626327, 0.0, 0, 0.0, 0, 0.6315868, 'TUMOR', 0.0, 0, 'epithelial', 0.0, 0.0, 0.0, 7, 0, 0.125, 0, 1, 0.0, 0.0, 0.0);