Skip to content

Commit

Permalink
Merge branch 'release/0.1.7'
Browse files Browse the repository at this point in the history
  • Loading branch information
abought committed Dec 19, 2019
2 parents c5ecc68 + c69cc51 commit 0514797
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion locuszoom_plotting_service/taskapp/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def summarize_gwas(self, instance: models.AnalysisFileset):
gwas=instance.metadata,
label='Top hit',
chrom=best_row.chrom,
start=best_row.pos - 250_000,
start=max(best_row.pos - 250_000, 1),
end=best_row.pos + 250_000
)
instance.metadata.top_hit_view = top_hit
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ <h3>QQ Plot:</h3>
// Required as hardcoded global reference in PheWeb pheno.js
window.model = {
urlprefix: '{% filter add_token:token %}{% url 'gwas:region' gwas.slug %}{% endfilter %}',
tooltip_underscoretemplate: '<b><%- d.chrom %>:<%- d.pos.toLocaleString() %> <%- d.ref %> / <%- d.alt %></b><br>-log<sub>10</sub>(p): <%- d.neg_log_pvalue && d.neg_log_pvalue.toFixed(3) %><br>Nearest gene(s): <%- d.nearest_genes && d.nearest_genes.length && d.nearest_genes.map(function(gene) { return gene.symbol; }).join(", ") %>'
tooltip_underscoretemplate: '<b><%- d.chrom %>:<%- d.pos.toLocaleString() %> <%- d.ref %> / <%- d.alt %></b><br>-log<sub>10</sub>(p): <%- d.neg_log_pvalue && (+d.neg_log_pvalue).toFixed(3) %><br>Nearest gene(s): <%- d.nearest_genes && d.nearest_genes.length && d.nearest_genes.map(function(gene) { return gene.symbol; }).join(", ") %>'
};
window.pheno = '';
</script>
Expand Down

0 comments on commit 0514797

Please sign in to comment.