-- DBMS: snowflake
create or replace TABLE VARIANT_DISEASE_COLOC (
	"coloc_n_vars" NUMBER(38,0),
	"coloc_h0" FLOAT,
	"coloc_h1" FLOAT,
	"coloc_h2" FLOAT,
	"coloc_h3" FLOAT,
	"coloc_h4" FLOAT,
	"left_type" VARCHAR(16777216),
	"left_study" VARCHAR(16777216),
	"left_chrom" VARCHAR(16777216),
	"left_pos" NUMBER(38,0),
	"left_ref" VARCHAR(16777216),
	"left_alt" VARCHAR(16777216),
	"right_type" VARCHAR(16777216),
	"right_study" VARCHAR(16777216),
	"right_bio_feature" VARCHAR(16777216),
	"right_phenotype" VARCHAR(16777216),
	"right_chrom" VARCHAR(16777216),
	"right_pos" NUMBER(38,0),
	"right_ref" VARCHAR(16777216),
	"right_alt" VARCHAR(16777216),
	"coloc_h4_h3" FLOAT,
	"coloc_log2_h4_h3" FLOAT,
	"is_flipped" BOOLEAN,
	"right_gene_id" VARCHAR(16777216),
	"left_var_right_study_beta" FLOAT,
	"left_var_right_study_se" FLOAT,
	"left_var_right_study_pval" FLOAT,
	"left_var_right_isCC" BOOLEAN
);

INSERT INTO "OPEN_TARGETS_GENETICS_2"."OPEN_TARGETS_GENETICS"."VARIANT_DISEASE_COLOC" (left_type, coloc_n_vars, right_chrom, right_alt, left_pos, right_bio_feature, coloc_h2, coloc_h0, right_ref, is_flipped, left_var_right_study_beta, coloc_h3, left_ref, left_var_right_study_se, left_var_right_isCC, coloc_log2_h4_h3, left_var_right_study_pval, right_phenotype, left_chrom, right_study, right_gene_id, right_type, right_pos, coloc_h4_h3, coloc_h4, coloc_h1, left_alt, left_study) VALUES ('gwas', 2541, '2', 'G', 168850918, 'Vagina', 4.001278912083727e-07, 1.785935132002765e-16, 'A', True, 0.6359093189239502, 0.26311707355198927, 'C', 0.122081605153034, False, 1.4857297758441592, 1.0833125072276179e-06, 'chr2^168862049^168864834^clu_37840^ENSG00000163072', '2', 'GTEx-sQTL', 'ENSG00000163072', 'sqtl', 168864871, 2.8005880281909814, 0.7368825262023471, 1.177688584654438e-10, 'T', 'NEALE2_20153_raw'), ('gwas', 2590, '2', 'G', 168850918, 'Ovary', 4.597035767819259e-16, 2.4658841718397848e-24, 'A', True, 0.5891572833061218, 0.012891541078893246, 'C', 0.0815866344266889, False, 6.258711968373418, 6.193301480196858e-11, 'chr2^168862049^168864834^clu_38100^ENSG00000163072', '2', 'GTEx-sQTL', 'ENSG00000163072', 'sqtl', 168864871, 76.570245000639, 0.9871084588466579, 7.444610820998443e-11, 'T', 'NEALE2_23101_raw'), ('gwas', 2554, '2', 'G', 168888041, 'Ovary', 1.7821525301615779e-16, 3.746003861429232e-18, 'A', True, -0.7500088214874268, 0.0043926736730515135, 'A', 0.07228759360806572, False, 7.824169583924788, 3.683362769182143e-18, 'chr2^168862049^168864834^clu_38100^ENSG00000163072', '2', 'GTEx-sQTL', 'ENSG00000163072', 'sqtl', 168864871, 226.6260012870603, 0.9954940694826081, 0.00011325684433829755, 'G', 'NEALE2_30130_raw'), ('gwas', 2783, '2', 'G', 168887282, 'Heart_Left_Ventricle', 1.9331316443248536e-38, 9.184150769189179e-42, 'A', True, -0.8709172606468201, 0.008108831818191295, 'C', 0.06116593300438732, False, 6.9345376450211695, 1.498499324516224e-35, 'chr2^168862049^168864834^clu_38256^ENSG00000163072', '2', 'GTEx-sQTL', 'ENSG00000163072', 'sqtl', 168864871, 122.32179267541538, 0.9918868445046071, 4.323677207992877e-06, 'T', 'NEALE2_23114_raw'), ('gwas', 2671, '2', 'G', 168850752, 'Artery_Coronary', 7.053643680818491e-09, 5.886148680989228e-20, 'A', True, -0.6809600591659546, 0.00852222063275971, 'AAATTCTCTGG', 0.08638264645732746, False, 6.862207217081331, 6.065659953083562e-13, 'chr2^168862049^168864834^clu_39659^ENSG00000163072', '2', 'GTEx-sQTL', 'ENSG00000163072', 'sqtl', 168864871, 116.3403078890307, 0.9914777723135146, 7.939023553264202e-14, 'A', 'NEALE2_20015_raw');