Skip to content

Commit

Permalink
[query/plot] removes "chr" prefix for manhattan plot x-axis labels
Browse files Browse the repository at this point in the history
Fixes #13952.
  • Loading branch information
iris-garden committed Nov 7, 2023
1 parent f73d92e commit ad26447
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hail/python/hail/plot/plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -1594,7 +1594,7 @@ def manhattan(pvals: 'Float64Expression',
assert legend is not None
legend.visible = False
p.xaxis.ticker = contig_ticks
p.xaxis.major_label_overrides = dict(zip(contig_ticks, observed_contigs))
p.xaxis.major_label_overrides = dict(zip(contig_ticks, [contig.replace("chr", "") for contig in observed_contigs]))

if significance_line is not None:
p.renderers.append(Span(location=-math.log10(significance_line),
Expand Down

0 comments on commit ad26447

Please sign in to comment.