From ef445ac96cc9adb49413e40983f909bb07b8c451 Mon Sep 17 00:00:00 2001 From: Judy Yao Date: Thu, 3 Aug 2023 09:25:44 -0400 Subject: [PATCH] update version --- client/LDlink.js | 11096 +++++++++++++++++++++++++-------------------- 1 file changed, 6112 insertions(+), 4984 deletions(-) diff --git a/client/LDlink.js b/client/LDlink.js index 3fabc802..3a939270 100644 --- a/client/LDlink.js +++ b/client/LDlink.js @@ -1,19 +1,543 @@ -var ldlink_version = "Version 5.6.4"; - +var ldlink_version = 'Version 5.6.5'; // var restService = {protocol:'http',hostname:document.location.hostname,fqn:"nih.gov",port:9090,route : "LDlinkRestWeb"} // var restServerUrl = restService.protocol + "://" + restService.hostname + "/"+ restService.route; -var restService = {protocol: window.location.protocol, hostname: window.location.host, pathname: window.location.pathname, route: 'LDlinkRestWeb'} -var restServerUrl = restService.protocol + "//" + restService.hostname + restService.pathname + restService.route; - -var dropdowns = ["assoc-chromosome", "assoc-position", "assoc-p-value"]; - -var populations={AFR:{fullName:"African",subPopulations:{YRI:"Yoruba in Ibadan, Nigera",LWK:" Luhya in Webuye, Kenya",GWD:" Gambian in Western Gambia",MSL:" Mende in Sierra Leone",ESN:" Esan in Nigera",ASW:" Americans of African Ancestry in SW USA",ACB:" African Carribbeans in Barbados"}},AMR:{fullName:"Ad Mixed American",subPopulations:{MXL:" Mexican Ancestry from Los Angeles, USA",PUR:" Puerto Ricans from Puerto Rico",CLM:" Colombians from Medellin, Colombia",PEL:" Peruvians from Lima, Peru"}},EAS:{fullName:"East Asian",subPopulations:{CHB:" Han Chinese in Bejing, China",JPT:" Japanese in Tokyo, Japan",CHS:" Southern Han Chinese",CDX:" Chinese Dai in Xishuangbanna, China",KHV:" Kinh in Ho Chi Minh City, Vietnam"}},EUR:{fullName:"European",subPopulations:{CEU:" Utah Residents from North and West Europe",TSI:" Toscani in Italia",FIN:" Finnish in Finland",GBR:" British in England and Scotland",IBS:" Iberian population in Spain"}},SAS:{fullName:"South Asian",subPopulations:{GIH:" Gujarati Indian from Houston, Texas",PJL:" Punjabi from Lahore, Pakistan",BEB:" Bengali from Bangladesh",STU:" Sri Lankan Tamil from the UK",ITU:" Indian Telugu from the UK"}}}; -var ldPairData={corr_alleles:["rs2720460(A) allele is correlated with rs11733615(C) allele","rs2720460(G) allele is correlated with rs11733615(T) allele"],haplotypes:{hap1:{alleles:"AC",count:"155",frequency:"0.686"},hap2:{alleles:"GC",count:"40",frequency:"0.177"},hap3:{alleles:"GT",count:"29",frequency:"0.128"},hap4:{alleles:"AT",count:"2",frequency:"0.009"}},snp1:{allele_1:{allele:"A",count:"157",frequency:"0.695"},allele_2:{allele:"G",count:"69",frequency:"0.305"},coord:"chr4:104054686",rsnum:"rs2720460"},snp2:{allele_1:{allele:"C",count:"195",frequency:"0.863"},allele_2:{allele:"T",count:"31",frequency:"0.137"},coord:"chr4:104157164",rsnum:"rs11733615"},statistics:{chisq:"67.271",d_prime:"0.9071",p:"0.0",r2:"0.2977"},two_by_two:{cells:{c11:"155",c12:"2",c21:"40",c22:"29"},total:"old - 227"}}; -var ldhapData={footer:[{Count:127,Frequency:.588,Haplotype:"GCATGGCGTTGGGG"},{Count:40,Frequency:.1852,Haplotype:"GGGGAGCGTTGGGG"},{Count:23,Frequency:.1065,Haplotype:"GCGGAGCGTTGGGG"},{Count:11,Frequency:.0509,Haplotype:"TGGGAGCGTTGGGG"},{Count:8,Frequency:.037,Haplotype:"GCATAGCGTTGGGG"},{Count:7,Frequency:.0324,Haplotype:"TGGGGATAGCAAAG"}],rows:[{Alleles:"G=0.917, T=0.083",Coord:"chr4:104050980",RS:"rs2720457",Haplotypes:["G","G","G","T","G","T"]},{Alleles:"C=0.732, G=0.269",Coord:"chr4:104052963",RS:"rs2720458",Haplotypes:["C","G","C","G","C","G"]},{Alleles:"A=0.625, G=0.375",Coord:"chr4:104055748",RS:"rs2720461",Haplotypes:["A","G","G","G","A","G"]},{Alleles:"T=0.625, G=0.375",Coord:"chr4:104056210",RS:"rs2720462",Haplotypes:["T","G","G","G","T","G"]},{Alleles:"G=0.62, A=0.38",Coord:"chr4:104052068",RS:"rs7661201",Haplotypes:["G","A","A","A","A","G"]},{Alleles:"G=0.968, A=0.032",Coord:"chr4:104055722",RS:"rs2623063",Haplotypes:["G","G","G","G","G","A"]},{Alleles:"C=0.968, T=0.032",Coord:"chr4:104057121",RS:"rs2623062",Haplotypes:["C","C","C","C","C","T"]},{Alleles:"G=0.968, A=0.032",Coord:"chr4:104057248",RS:"rs2720463",Haplotypes:["G","G","G","G","G","A"]},{Alleles:"T=0.968, G=0.032",Coord:"chr4:104057887",RS:"rs2711901",Haplotypes:["T","T","T","T","T","G"]},{Alleles:"T=0.968, C=0.032",Coord:"chr4:104051132",RS:"rs2623082",Haplotypes:["T","T","T","T","T","C"]},{Alleles:"G=0.968, A=0.032",Coord:"chr4:104058596",RS:"rs2711900",Haplotypes:["G","G","G","G","G","A"]},{Alleles:"G=0.968, A=0.032",Coord:"chr4:104050510",RS:"rs2720456",Haplotypes:["G","G","G","G","G","A"]},{Alleles:"G=0.968, A=0.032",Coord:"chr4:104050326",RS:"rs2720455",Haplotypes:["G","G","G","G","G","A"]},{Alleles:"G=1.0, A=0.0",Coord:"chr4:104059542",RS:"rs2243682",Haplotypes:["G","G","G","G","G","G"]}]}; -var ldassocData=[{RS_Number:"rs75563749",Coord:"chr3:171031233",Alleles:"(A/T)",MAF:.1983,Distance:348304,Dprime:.0512,R2:.0021,Correlated_Alleles:"= , =",FORGEdb:10,RegulomeDB:6,Functional_Class:"NA"},{RS_Number:"rs76189435",Coord:"chr3:170980080",Alleles:"(C/G)",MAF:.0527,Distance:-51153,Dprime:.622,R2:.0871,Correlated_Alleles:"= , =",FORGEdb:10,RegulomeDB:"2b",Functional_Class:"NA"},{RS_Number:"rs76140932",Coord:"chr3:170980434",Alleles:"(A/G)",MAF:.0539,Distance:-50799,Dprime:.6073,R2:.085,Correlated_Alleles:"= , =",FORGEdb:10,RegulomeDB:"2b",Functional_Class:"NA"},{RS_Number:"rs76735261",Coord:"chr3:170981252",Alleles:"(G/C)",MAF:.0539,Distance:-49981,Dprime:.6073,R2:.085,Correlated_Alleles:"= , =",FORGEdb:8,RegulomeDB:5,Functional_Class:"NA"},{RS_Number:"rs1158564",Coord:"chr3:171002654",Alleles:"(A/G)",MAF:.4439,Distance:-28579,Dprime:.866,R2:.2324,Correlated_Alleles:"A=A,G=T",FORGEdb:7,RegulomeDB:"2b",Functional_Class:"NA"},{RS_Number:"rs4894756",Coord:"chr3:171002036",Alleles:"(G/A)",MAF:.3806,Distance:-29197,Dprime:.8732,R2:.3069,Correlated_Alleles:"G=A,A=T",FORGEdb:7,RegulomeDB:4,Functional_Class:"NA"},{RS_Number:"rs200296423",Coord:"chr3:170969849",Alleles:"(TGCG/-)",MAF:.0475,Distance:-61384,Dprime:.5965,R2:.0718,Correlated_Alleles:"= , =",FORGEdb:"",RegulomeDB:".",Functional_Class:"NA"},{RS_Number:"rs377580557",Coord:"chr3:171001114",Alleles:"(TTTTCTC/-)",MAF:.0445,Distance:-30119,Dprime:.67,R2:.0846,Correlated_Alleles:"= , =",FORGEdb:"",RegulomeDB:".",Functional_Class:"NA"},{RS_Number:"rs377580557",Coord:"chr3:171001114",Alleles:"(TTTTCTC/-)",MAF:.0445,Distance:-30119,Dprime:.67,R2:.0846,Correlated_Alleles:"= , =",FORGEdb:"",RegulomeDB:".",Functional_Class:"NA"},{RS_Number:"rs6444976",Coord:"chr3:171002143",Alleles:"(G/C)",MAF:.3808,Distance:-29090,Dprime:.8731,R2:.3066,Correlated_Alleles:"G=A,C=T",FORGEdb:6,RegulomeDB:4,Functional_Class:"NA"},{RS_Number:"rs13090306",Coord:"chr3:170969666",Alleles:"(A/C)",MAF:.4163,Distance:-61567,Dprime:.5359,R2:.0996,Correlated_Alleles:"= , =",FORGEdb:9,RegulomeDB:5,Functional_Class:"NA"}]; -var snpclipData = {"warnings":[{"rs_number":"rs12980602","position":"chr19:39752820","alleles":"T=0.763, C=0.237","comment":"SNP kept","rs_number_link":"rs12980602","position_link":"chr19:39752820"},{"rs_number":"rs35963157","position":"chr19:39745695","alleles":"-=0.338, C=0.662","comment":"SNP in LD with rs11322783 (R2=0.1887), SNP removed","rs_number_link":"rs35963157","position_link":"chr19:39745695"}],"details":[{"rs_number":"rs12980602","position":"chr19:39752820","alleles":"T=0.763, C=0.237","comment":"SNP kept","rs_number_link":"rs12980602","position_link":"chr19:39752820"},{"rs_number":"rs35963157","position":"chr19:39745695","alleles":"-=0.338, C=0.662","comment":"SNP in LD with rs11322783 (R2=0.1887), SNP removed","rs_number_link":"rs35963157","position_link":"chr19:39745695"}]}; -var snpchipData = {"snpchip":[{"rs_number":"rs505066","chromosome":"1","position":"96882671","map":[" "," "," "," "," ","X"," "," "," "," "," ","X","X","X"," "," "," "," "," "," "," "," "," "]},{"rs_number":"rs4478775","chromosome":"1","position":"177770097","map":[" ","X"," ","X"," ","X"," "," "," "," ","X","X","X","X"," "," "," "," "," "," "," "," ","X"]},{"rs_number":"rs561634","chromosome":"1","position":"177895763","map":[" ","X"," ","X"," ","X"," "," "," "," ","X","X","X","X"," "," "," "," "," "," "," "," ","X"]},{"rs_number":"rs2820292","chromosome":"1","position":"201784287","map":["X","X","X","X","X","X","X","X","X","X","X","X","X","X","X","X","X","X","X","X","X","X","X"]}],"headers":[{"code":"A_AFR","platform":"Affymetrix Axiom GW AFR"},{"code":"A_ASI","platform":"Affymetrix Axiom GW ASI"},{"code":"A_EAS","platform":"Affymetrix Axiom GW EAS"},{"code":"A_EUR","platform":"Affymetrix Axiom GW EUR"},{"code":"A_Hu","platform":"Affymetrix Axiom GW Hu"},{"code":"A_Hu-CHB","platform":"Affymetrix Axiom GW Hu-CHB"},{"code":"A_LAT","platform":"Affymetrix Axiom GW LAT"},{"code":"A_Onco","platform":"Affymetrix OncoScan"},{"code":"A_OncoCNV","platform":"Affymetrix OncoScan CNV"},{"code":"A_SNP6.0","platform":"Affymetrix SNP 6.0"},{"code":"I_CardioMetab","platform":"Illumina Cardio-MetaboChip"},{"code":"I_1M-D","platform":"Illumina Human1M-Duov3"},{"code":"I_1M","platform":"Illumina Human1Mv1"},{"code":"I_Exon510S","platform":"Illumina HumanExon510Sv1"},{"code":"I_O1S-8","platform":"Illumina HumanOmni1S-8v1"},{"code":"I_O2.5-4","platform":"Illumina HumanOmni2.5-4v1"},{"code":"I_O2.5-8","platform":"Illumina HumanOmni2.5-8v1.2"},{"code":"I_O2.5E-8v1","platform":"Illumina HumanOmni2.5Exome-8v1"},{"code":"I_O2.5E-8v1.1","platform":"Illumina HumanOmni2.5Exome-8v1.1"},{"code":"I_O2.5E-8v1.2","platform":"Illumina HumanOmni2.5Exome-8v1.2"},{"code":"I_O5-4","platform":"Illumina HumanOmni5-4v1"},{"code":"I_O5E-4","platform":"Illumina HumanOmni5Exome-4v1"},{"code":"I_ME-Global-8","platform":"Illumina Infinium Multi-Ethnic Global-8"}]}; +var restService = { + protocol: window.location.protocol, + hostname: window.location.host, + pathname: window.location.pathname, + route: 'LDlinkRestWeb', +}; +var restServerUrl = + restService.protocol + + '//' + + restService.hostname + + restService.pathname + + restService.route; + +var dropdowns = ['assoc-chromosome', 'assoc-position', 'assoc-p-value']; + +var populations = { + AFR: { + fullName: 'African', + subPopulations: { + YRI: 'Yoruba in Ibadan, Nigera', + LWK: ' Luhya in Webuye, Kenya', + GWD: ' Gambian in Western Gambia', + MSL: ' Mende in Sierra Leone', + ESN: ' Esan in Nigera', + ASW: ' Americans of African Ancestry in SW USA', + ACB: ' African Carribbeans in Barbados', + }, + }, + AMR: { + fullName: 'Ad Mixed American', + subPopulations: { + MXL: ' Mexican Ancestry from Los Angeles, USA', + PUR: ' Puerto Ricans from Puerto Rico', + CLM: ' Colombians from Medellin, Colombia', + PEL: ' Peruvians from Lima, Peru', + }, + }, + EAS: { + fullName: 'East Asian', + subPopulations: { + CHB: ' Han Chinese in Bejing, China', + JPT: ' Japanese in Tokyo, Japan', + CHS: ' Southern Han Chinese', + CDX: ' Chinese Dai in Xishuangbanna, China', + KHV: ' Kinh in Ho Chi Minh City, Vietnam', + }, + }, + EUR: { + fullName: 'European', + subPopulations: { + CEU: ' Utah Residents from North and West Europe', + TSI: ' Toscani in Italia', + FIN: ' Finnish in Finland', + GBR: ' British in England and Scotland', + IBS: ' Iberian population in Spain', + }, + }, + SAS: { + fullName: 'South Asian', + subPopulations: { + GIH: ' Gujarati Indian from Houston, Texas', + PJL: ' Punjabi from Lahore, Pakistan', + BEB: ' Bengali from Bangladesh', + STU: ' Sri Lankan Tamil from the UK', + ITU: ' Indian Telugu from the UK', + }, + }, +}; +var ldPairData = { + corr_alleles: [ + 'rs2720460(A) allele is correlated with rs11733615(C) allele', + 'rs2720460(G) allele is correlated with rs11733615(T) allele', + ], + haplotypes: { + hap1: { alleles: 'AC', count: '155', frequency: '0.686' }, + hap2: { alleles: 'GC', count: '40', frequency: '0.177' }, + hap3: { alleles: 'GT', count: '29', frequency: '0.128' }, + hap4: { alleles: 'AT', count: '2', frequency: '0.009' }, + }, + snp1: { + allele_1: { allele: 'A', count: '157', frequency: '0.695' }, + allele_2: { allele: 'G', count: '69', frequency: '0.305' }, + coord: 'chr4:104054686', + rsnum: 'rs2720460', + }, + snp2: { + allele_1: { allele: 'C', count: '195', frequency: '0.863' }, + allele_2: { allele: 'T', count: '31', frequency: '0.137' }, + coord: 'chr4:104157164', + rsnum: 'rs11733615', + }, + statistics: { chisq: '67.271', d_prime: '0.9071', p: '0.0', r2: '0.2977' }, + two_by_two: { + cells: { c11: '155', c12: '2', c21: '40', c22: '29' }, + total: 'old - 227', + }, +}; +var ldhapData = { + footer: [ + { Count: 127, Frequency: 0.588, Haplotype: 'GCATGGCGTTGGGG' }, + { Count: 40, Frequency: 0.1852, Haplotype: 'GGGGAGCGTTGGGG' }, + { Count: 23, Frequency: 0.1065, Haplotype: 'GCGGAGCGTTGGGG' }, + { Count: 11, Frequency: 0.0509, Haplotype: 'TGGGAGCGTTGGGG' }, + { Count: 8, Frequency: 0.037, Haplotype: 'GCATAGCGTTGGGG' }, + { Count: 7, Frequency: 0.0324, Haplotype: 'TGGGGATAGCAAAG' }, + ], + rows: [ + { + Alleles: 'G=0.917, T=0.083', + Coord: 'chr4:104050980', + RS: 'rs2720457', + Haplotypes: ['G', 'G', 'G', 'T', 'G', 'T'], + }, + { + Alleles: 'C=0.732, G=0.269', + Coord: 'chr4:104052963', + RS: 'rs2720458', + Haplotypes: ['C', 'G', 'C', 'G', 'C', 'G'], + }, + { + Alleles: 'A=0.625, G=0.375', + Coord: 'chr4:104055748', + RS: 'rs2720461', + Haplotypes: ['A', 'G', 'G', 'G', 'A', 'G'], + }, + { + Alleles: 'T=0.625, G=0.375', + Coord: 'chr4:104056210', + RS: 'rs2720462', + Haplotypes: ['T', 'G', 'G', 'G', 'T', 'G'], + }, + { + Alleles: 'G=0.62, A=0.38', + Coord: 'chr4:104052068', + RS: 'rs7661201', + Haplotypes: ['G', 'A', 'A', 'A', 'A', 'G'], + }, + { + Alleles: 'G=0.968, A=0.032', + Coord: 'chr4:104055722', + RS: 'rs2623063', + Haplotypes: ['G', 'G', 'G', 'G', 'G', 'A'], + }, + { + Alleles: 'C=0.968, T=0.032', + Coord: 'chr4:104057121', + RS: 'rs2623062', + Haplotypes: ['C', 'C', 'C', 'C', 'C', 'T'], + }, + { + Alleles: 'G=0.968, A=0.032', + Coord: 'chr4:104057248', + RS: 'rs2720463', + Haplotypes: ['G', 'G', 'G', 'G', 'G', 'A'], + }, + { + Alleles: 'T=0.968, G=0.032', + Coord: 'chr4:104057887', + RS: 'rs2711901', + Haplotypes: ['T', 'T', 'T', 'T', 'T', 'G'], + }, + { + Alleles: 'T=0.968, C=0.032', + Coord: 'chr4:104051132', + RS: 'rs2623082', + Haplotypes: ['T', 'T', 'T', 'T', 'T', 'C'], + }, + { + Alleles: 'G=0.968, A=0.032', + Coord: 'chr4:104058596', + RS: 'rs2711900', + Haplotypes: ['G', 'G', 'G', 'G', 'G', 'A'], + }, + { + Alleles: 'G=0.968, A=0.032', + Coord: 'chr4:104050510', + RS: 'rs2720456', + Haplotypes: ['G', 'G', 'G', 'G', 'G', 'A'], + }, + { + Alleles: 'G=0.968, A=0.032', + Coord: 'chr4:104050326', + RS: 'rs2720455', + Haplotypes: ['G', 'G', 'G', 'G', 'G', 'A'], + }, + { + Alleles: 'G=1.0, A=0.0', + Coord: 'chr4:104059542', + RS: 'rs2243682', + Haplotypes: ['G', 'G', 'G', 'G', 'G', 'G'], + }, + ], +}; +var ldassocData = [ + { + RS_Number: 'rs75563749', + Coord: 'chr3:171031233', + Alleles: '(A/T)', + MAF: 0.1983, + Distance: 348304, + Dprime: 0.0512, + R2: 0.0021, + Correlated_Alleles: '= , =', + FORGEdb: 10, + RegulomeDB: 6, + Functional_Class: 'NA', + }, + { + RS_Number: 'rs76189435', + Coord: 'chr3:170980080', + Alleles: '(C/G)', + MAF: 0.0527, + Distance: -51153, + Dprime: 0.622, + R2: 0.0871, + Correlated_Alleles: '= , =', + FORGEdb: 10, + RegulomeDB: '2b', + Functional_Class: 'NA', + }, + { + RS_Number: 'rs76140932', + Coord: 'chr3:170980434', + Alleles: '(A/G)', + MAF: 0.0539, + Distance: -50799, + Dprime: 0.6073, + R2: 0.085, + Correlated_Alleles: '= , =', + FORGEdb: 10, + RegulomeDB: '2b', + Functional_Class: 'NA', + }, + { + RS_Number: 'rs76735261', + Coord: 'chr3:170981252', + Alleles: '(G/C)', + MAF: 0.0539, + Distance: -49981, + Dprime: 0.6073, + R2: 0.085, + Correlated_Alleles: '= , =', + FORGEdb: 8, + RegulomeDB: 5, + Functional_Class: 'NA', + }, + { + RS_Number: 'rs1158564', + Coord: 'chr3:171002654', + Alleles: '(A/G)', + MAF: 0.4439, + Distance: -28579, + Dprime: 0.866, + R2: 0.2324, + Correlated_Alleles: 'A=A,G=T', + FORGEdb: 7, + RegulomeDB: '2b', + Functional_Class: 'NA', + }, + { + RS_Number: 'rs4894756', + Coord: 'chr3:171002036', + Alleles: '(G/A)', + MAF: 0.3806, + Distance: -29197, + Dprime: 0.8732, + R2: 0.3069, + Correlated_Alleles: 'G=A,A=T', + FORGEdb: 7, + RegulomeDB: 4, + Functional_Class: 'NA', + }, + { + RS_Number: 'rs200296423', + Coord: 'chr3:170969849', + Alleles: '(TGCG/-)', + MAF: 0.0475, + Distance: -61384, + Dprime: 0.5965, + R2: 0.0718, + Correlated_Alleles: '= , =', + FORGEdb: '', + RegulomeDB: '.', + Functional_Class: 'NA', + }, + { + RS_Number: 'rs377580557', + Coord: 'chr3:171001114', + Alleles: '(TTTTCTC/-)', + MAF: 0.0445, + Distance: -30119, + Dprime: 0.67, + R2: 0.0846, + Correlated_Alleles: '= , =', + FORGEdb: '', + RegulomeDB: '.', + Functional_Class: 'NA', + }, + { + RS_Number: 'rs377580557', + Coord: 'chr3:171001114', + Alleles: '(TTTTCTC/-)', + MAF: 0.0445, + Distance: -30119, + Dprime: 0.67, + R2: 0.0846, + Correlated_Alleles: '= , =', + FORGEdb: '', + RegulomeDB: '.', + Functional_Class: 'NA', + }, + { + RS_Number: 'rs6444976', + Coord: 'chr3:171002143', + Alleles: '(G/C)', + MAF: 0.3808, + Distance: -29090, + Dprime: 0.8731, + R2: 0.3066, + Correlated_Alleles: 'G=A,C=T', + FORGEdb: 6, + RegulomeDB: 4, + Functional_Class: 'NA', + }, + { + RS_Number: 'rs13090306', + Coord: 'chr3:170969666', + Alleles: '(A/C)', + MAF: 0.4163, + Distance: -61567, + Dprime: 0.5359, + R2: 0.0996, + Correlated_Alleles: '= , =', + FORGEdb: 9, + RegulomeDB: 5, + Functional_Class: 'NA', + }, +]; +var snpclipData = { + warnings: [ + { + rs_number: 'rs12980602', + position: 'chr19:39752820', + alleles: 'T=0.763, C=0.237', + comment: 'SNP kept', + rs_number_link: 'rs12980602', + position_link: 'chr19:39752820', + }, + { + rs_number: 'rs35963157', + position: 'chr19:39745695', + alleles: '-=0.338, C=0.662', + comment: 'SNP in LD with rs11322783 (R2=0.1887), SNP removed', + rs_number_link: 'rs35963157', + position_link: 'chr19:39745695', + }, + ], + details: [ + { + rs_number: 'rs12980602', + position: 'chr19:39752820', + alleles: 'T=0.763, C=0.237', + comment: 'SNP kept', + rs_number_link: 'rs12980602', + position_link: 'chr19:39752820', + }, + { + rs_number: 'rs35963157', + position: 'chr19:39745695', + alleles: '-=0.338, C=0.662', + comment: 'SNP in LD with rs11322783 (R2=0.1887), SNP removed', + rs_number_link: 'rs35963157', + position_link: 'chr19:39745695', + }, + ], +}; +var snpchipData = { + snpchip: [ + { + rs_number: + 'rs505066', + chromosome: '1', + position: + '96882671', + map: [ + ' ', + ' ', + ' ', + ' ', + ' ', + 'X', + ' ', + ' ', + ' ', + ' ', + ' ', + 'X', + 'X', + 'X', + ' ', + ' ', + ' ', + ' ', + ' ', + ' ', + ' ', + ' ', + ' ', + ], + }, + { + rs_number: + 'rs4478775', + chromosome: '1', + position: + '177770097', + map: [ + ' ', + 'X', + ' ', + 'X', + ' ', + 'X', + ' ', + ' ', + ' ', + ' ', + 'X', + 'X', + 'X', + 'X', + ' ', + ' ', + ' ', + ' ', + ' ', + ' ', + ' ', + ' ', + 'X', + ], + }, + { + rs_number: + 'rs561634', + chromosome: '1', + position: + '177895763', + map: [ + ' ', + 'X', + ' ', + 'X', + ' ', + 'X', + ' ', + ' ', + ' ', + ' ', + 'X', + 'X', + 'X', + 'X', + ' ', + ' ', + ' ', + ' ', + ' ', + ' ', + ' ', + ' ', + 'X', + ], + }, + { + rs_number: + 'rs2820292', + chromosome: '1', + position: + '201784287', + map: [ + 'X', + 'X', + 'X', + 'X', + 'X', + 'X', + 'X', + 'X', + 'X', + 'X', + 'X', + 'X', + 'X', + 'X', + 'X', + 'X', + 'X', + 'X', + 'X', + 'X', + 'X', + 'X', + 'X', + ], + }, + ], + headers: [ + { code: 'A_AFR', platform: 'Affymetrix Axiom GW AFR' }, + { code: 'A_ASI', platform: 'Affymetrix Axiom GW ASI' }, + { code: 'A_EAS', platform: 'Affymetrix Axiom GW EAS' }, + { code: 'A_EUR', platform: 'Affymetrix Axiom GW EUR' }, + { code: 'A_Hu', platform: 'Affymetrix Axiom GW Hu' }, + { code: 'A_Hu-CHB', platform: 'Affymetrix Axiom GW Hu-CHB' }, + { code: 'A_LAT', platform: 'Affymetrix Axiom GW LAT' }, + { code: 'A_Onco', platform: 'Affymetrix OncoScan' }, + { code: 'A_OncoCNV', platform: 'Affymetrix OncoScan CNV' }, + { code: 'A_SNP6.0', platform: 'Affymetrix SNP 6.0' }, + { code: 'I_CardioMetab', platform: 'Illumina Cardio-MetaboChip' }, + { code: 'I_1M-D', platform: 'Illumina Human1M-Duov3' }, + { code: 'I_1M', platform: 'Illumina Human1Mv1' }, + { code: 'I_Exon510S', platform: 'Illumina HumanExon510Sv1' }, + { code: 'I_O1S-8', platform: 'Illumina HumanOmni1S-8v1' }, + { code: 'I_O2.5-4', platform: 'Illumina HumanOmni2.5-4v1' }, + { code: 'I_O2.5-8', platform: 'Illumina HumanOmni2.5-8v1.2' }, + { code: 'I_O2.5E-8v1', platform: 'Illumina HumanOmni2.5Exome-8v1' }, + { code: 'I_O2.5E-8v1.1', platform: 'Illumina HumanOmni2.5Exome-8v1.1' }, + { code: 'I_O2.5E-8v1.2', platform: 'Illumina HumanOmni2.5Exome-8v1.2' }, + { code: 'I_O5-4', platform: 'Illumina HumanOmni5-4v1' }, + { code: 'I_O5E-4', platform: 'Illumina HumanOmni5Exome-4v1' }, + { + code: 'I_ME-Global-8', + platform: 'Illumina Infinium Multi-Ethnic Global-8', + }, + ], +}; var snpchipReverseLookup = []; var ldExpressRaw; var ldExpressSort; @@ -21,1391 +545,1615 @@ var ldTraitRaw; var ldTraitSort; var ldClipRaw; var tissueJSON; -var modules = [ "ldassoc", "ldexpress", "ldhap", "ldmatrix", "ldpair", "ldpop", "ldproxy", "ldtrait", "snpclip", "snpchip", "apiaccess" ]; -var headerModules = [ "ldassoc", "ldexpress", "ldhap", "ldmatrix", "ldpair", "ldpop", "ldproxy", "ldtrait", "snpclip", "snpchip" ]; +var modules = [ + 'ldassoc', + 'ldexpress', + 'ldhap', + 'ldmatrix', + 'ldpair', + 'ldpop', + 'ldproxy', + 'ldtrait', + 'snpclip', + 'snpchip', + 'apiaccess', +]; +var headerModules = [ + 'ldassoc', + 'ldexpress', + 'ldhap', + 'ldmatrix', + 'ldpair', + 'ldpop', + 'ldproxy', + 'ldtrait', + 'snpclip', + 'snpchip', +]; var homeStartBox = 0; var newsList = []; var moduleTitleDescription = { - "ldassoc": ["LDassoc Tool", "#LDassoc", "Interactively visualize association p-value results and linkage disequilibrium patterns for a genomic region of interest."], - "ldexpress": ["LDexpress Tool", "#LDexpress", "Search if a list of variants (or variants in LD with those variants) is associated with gene expression in multiple tissue types."], - "ldhap": ["LDhap Tool", "#LDhap", "Calculate population specific haplotype frequencies of all haplotypes observed for a list of query variants."], - "ldmatrix": ["LDmatrix Tool", "#LDmatrix", "Create an interactive heatmap matrix of pairwise linkage disequilibrium statistics."], - "ldpair": ["LDpair Tool", "#LDpair", "Investigate correlated alleles for a pair of variants in high LD."], - "ldpop": ["LDpop Tool", "#LDpop", "Investigate allele frequencies and linkage disequilibrium patterns across 1000G populations."], - "ldproxy": ["LDproxy Tool", "#LDproxy", "Interactively explore proxy and putatively functional variants for a query variant."], - "ldtrait": ["LDtrait Tool", "#LDtrait", "Search if a list of variants (or variants in LD with those variants) have previously been associated with a trait or disease."], - "snpclip": ["SNPclip Tool", "#SNPclip", "Prune a list of variants by linkage disequilibrium."], - "snpchip": ["SNPchip Tool", "#SNPchip", "Find commercial genotyping platforms for variants."], - "apiaccess": ["API Access", "#APIaccess", "LDlink modules are also accessible via command line from a terminal. This programmatic access facilitates researchers who are \ + ldassoc: [ + 'LDassoc Tool', + '#LDassoc', + 'Interactively visualize association p-value results and linkage disequilibrium patterns for a genomic region of interest.', + ], + ldexpress: [ + 'LDexpress Tool', + '#LDexpress', + 'Search if a list of variants (or variants in LD with those variants) is associated with gene expression in multiple tissue types.', + ], + ldhap: [ + 'LDhap Tool', + '#LDhap', + 'Calculate population specific haplotype frequencies of all haplotypes observed for a list of query variants.', + ], + ldmatrix: [ + 'LDmatrix Tool', + '#LDmatrix', + 'Create an interactive heatmap matrix of pairwise linkage disequilibrium statistics.', + ], + ldpair: [ + 'LDpair Tool', + '#LDpair', + 'Investigate correlated alleles for a pair of variants in high LD.', + ], + ldpop: [ + 'LDpop Tool', + '#LDpop', + 'Investigate allele frequencies and linkage disequilibrium patterns across 1000G populations.', + ], + ldproxy: [ + 'LDproxy Tool', + '#LDproxy', + 'Interactively explore proxy and putatively functional variants for a query variant.', + ], + ldtrait: [ + 'LDtrait Tool', + '#LDtrait', + 'Search if a list of variants (or variants in LD with those variants) have previously been associated with a trait or disease.', + ], + snpclip: [ + 'SNPclip Tool', + '#SNPclip', + 'Prune a list of variants by linkage disequilibrium.', + ], + snpchip: [ + 'SNPchip Tool', + '#SNPchip', + 'Find commercial genotyping platforms for variants.', + ], + apiaccess: [ + 'API Access', + '#APIaccess', + 'LDlink modules are also accessible via command line from a terminal. This programmatic access facilitates researchers who are \ interested in performing batch queries. The syntax is similar to the web address link created for queries on the webpage. Generally text output \ is returned that is the same as the file a user would download from the online site. Please register below for an access token required for your \ API call. Once registered, your access token will be emailed to you.Interactively visualize association p-value results and linkage disequilibrium \ - patterns for a genomic region of interest."] + patterns for a genomic region of interest.', + ], }; try { - const urlParams = new URLSearchParams(window.location.search); - var genomeBuild = urlParams.get('genome_build') ? urlParams.get('genome_build') : 'grch37'; + const urlParams = new URLSearchParams(window.location.search); + var genomeBuild = urlParams.get('genome_build') + ? urlParams.get('genome_build') + : 'grch37'; } catch { - var genomeBuild = "grch37"; + var genomeBuild = 'grch37'; } - -Object.size = function(obj) { - var size = 0, key; - for (key in obj) { - if (obj.hasOwnProperty(key)) size++; - } - return size; +Object.size = function (obj) { + var size = 0, + key; + for (key in obj) { + if (obj.hasOwnProperty(key)) size++; + } + return size; }; - -$(document).ready(function() { - - // Close URL change alert banner after 5 seconds - $("#url-alert").delay(5000).slideUp(600, function() { - $(this).alert('close'); - }); - - // Load news text from news.html to news-container div - $.get("news.html?v=5.6.0", function (data) { - let tmpData = data.split("

") - let i = 0; - var newsHTMLList = []; - - for (i = 1; i < tmpData.length; i++){ - let toPush = "

" + tmpData[i]; - newsHTMLList.push(toPush); - } - - let lastNews = ""; - let versionNews=newsHTMLList[0].replace("
",""); - let numFound = 0; - for(let i = 0; i < 1; i++){ - if(versionNews.indexOf("") != -1){ - lastNews += versionNews.substring(0, versionNews.indexOf("") + 5); - versionNews = versionNews.substring(versionNews.indexOf("") + 6); - numFound += 1; - } - else{ - i = 1; - } - } - if(versionNews.indexOf("") != -1){ - lastNews += " Show more..." - } - lastNews = lastNews.substring(0, lastNews.indexOf("