Skip to content

Commit

Permalink
adjust pmid position;add release news
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyao00 committed Aug 3, 2023
1 parent 2903559 commit 28d128d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
6 changes: 3 additions & 3 deletions client/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<link rel="stylesheet" href="lib/[email protected]/jquery.dataTables.min.css">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/social.css">
<link rel="stylesheet" href="LDlink.css?v=5.6.4">
<link rel="stylesheet" href="LDlink.css?v=5.6.5">
</head>

<!-- <body class="d-flex flex-column vh-100" role="document"> -->
Expand Down Expand Up @@ -2112,8 +2112,8 @@ <h3>Proxy Variants</h3>
<thead title="Shift-click column headers to sort by multiple levels">
<tr>
<!-- <th class="dt-head-left dt-body-left">Query RS Number</th> -->
<th class="dt-head-left dt-body-left">PMID</th>
<th class="dt-head-left dt-body-left">GWAS Trait</th>
<th class="dt-head-left dt-body-left">PMID</th>
<th class="dt-head-left dt-body-left">RS Number</th>
<th class="dt-head-left dt-body-left">Position (<span class="ldtrait-position-genome-build-header">GRCh37</span>)</th>
<th class="dt-head-left dt-body-left">Alleles</th>
Expand Down Expand Up @@ -2911,7 +2911,7 @@ <h4 class="modal-title">Modal title</h4>
<script src="lib/[email protected]/jquery.dataTables.js"></script>
<script src="lib/[email protected]/html2canvas.min.js"></script>
<script src="https://maps.googleapis.com/maps/api/js?key=@gmap_key@"></script>
<script src="LDlink.js?v=5.6.4"></script>
<script src="LDlink.js?v=5.6.5"></script>
<script>_satellite.pageBottom();</script>
</body>

Expand Down
6 changes: 6 additions & 0 deletions client/news.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<p><b>LDlink 5.6.5 Release (8/6/2023)</b></p>
<ul>
<li>Added more citations for LDtrait and LDexpress</li>
<li>Added PUBMEDID(PMID) for LDtrait outputs</li>
</ul>
<br>
<p><b>LDlink 5.6.4 Release (7/6/2023)</b></p>
<ul>
<li>Replaced CDN-hosted assets</li>
Expand Down
2 changes: 1 addition & 1 deletion server/LDlink.py
Original file line number Diff line number Diff line change
Expand Up @@ -1406,7 +1406,7 @@ def ldtrait():
trait["error"] = json_dict["error"]
else:
with open(tmp_dir + 'trait_variants_annotated' + reference + '.txt', 'w') as f:
f.write("Query\tPMID\tGWAS Trait\tRS Number\tPosition (" + genome_build_vars[genome_build]['title'] + ")\tAlleles\tR2\tD'\tRisk Allele\tEffect Size (95% CI)\tBeta or OR\tP-value\n")
f.write("Query\tGWAS Trait\tPMID\tRS Number\tPosition (" + genome_build_vars[genome_build]['title'] + ")\tAlleles\tR2\tD'\tRisk Allele\tEffect Size (95% CI)\tBeta or OR\tP-value\n")
for snp in thinned_snps:
for matched_gwas in details[snp]["aaData"]:
f.write(snp + "\t")
Expand Down
4 changes: 2 additions & 2 deletions server/LDtrait.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@ def get_gwas_fields(query_snp, query_snp_chr, query_snp_pos, found, pops, pop_id
matched_record = []
# Query SNP
# matched_record.append(query_snp)
# GWAS Trait
matched_record.append(record["DISEASE/TRAIT"])
# GWAS Trait
# add PMID on Jul 19 2023
matched_record.append(record["PUBMEDID"])
matched_record.append(record["DISEASE/TRAIT"])
# RS Number
matched_record.append("rs" + record["SNP_ID_CURRENT"])
# Position
Expand Down

0 comments on commit 28d128d

Please sign in to comment.