def pb_support_plot(consensus_data, ordered_genomes, pb_genomes, pb_support_tgt):
with pb_support_tgt.open('w') as outf, PdfPages(outf) as pdf:
pb_genomes = [x for x in ordered_genomes if x in pb_genomes] # fix order
df = json_biotype_counter_to_df(consensus_data, 'IsoSeq Transcript Validation')
df.columns = ['IsoSeq Transcript Validation', 'Number of transcripts', 'genome']
ax = sns.factorplot(data=df, x='genome', y='Number of transcripts', hue='IsoSeq Transcript Validation',
kind='bar', row_order=pb_genomes)
ax.set_xticklabels(rotation=90)
ax.fig.suptitle('Isoforms validated by at least one IsoSeq read')
multipage_close(pdf, tight_layout=False)
plots.py 文件源码
python
阅读 27
收藏 0
点赞 0
评论 0
评论列表
文章目录