Skip to content

Commit

Permalink
Merge branch 'master' of github.com:chapmanb/bcbb
Browse files Browse the repository at this point in the history
  • Loading branch information
chapmanb committed Oct 16, 2013
2 parents f149221 + 71f9b22 commit 3b6db7a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion validation/plot_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ def plot_prep_methods(df, prep, prepi, in_file):
vtype_labels = {"snp": "SNPs", "indel": "Indels"}
prep_labels = {"gatk": "GATK best-practice BAM preparation (recalibration, realignment)",
"none": "Minimal BAM preparation (samtools de-duplication only)"}
caller_labels = {"ensemble": "Ensemble", "freebayes": "FreeBayes",
"gatk": "GATK Unified\nGenotyper", "gatk-haplotype": "GATK Haplotype\nCaller"}
vtypes = df["variant.type"].unique()
fig, axs = plt.subplots(len(vtypes), len(cats))
callers = sorted(df["caller"].unique())
Expand All @@ -66,7 +68,7 @@ def plot_prep_methods(df, prep, prepi, in_file):
ax.set_ylim(0, maxval)
if i == len(vtypes) - 1:
ax.set_xticks(np.arange(len(callers)) + width / 2.0)
ax.set_xticklabels([x.replace("-", "\n") for x in callers], size=8, rotation=45)
ax.set_xticklabels([caller_labels[x] for x in callers], size=8, rotation=45)
else:
ax.get_xaxis().set_ticks([])
_annotate(ax, labels, vals, np.arange(len(callers)), width)
Expand Down

0 comments on commit 3b6db7a

Please sign in to comment.