snaketools.py 文件源码

python
阅读 31 收藏 0 点赞 0 评论 0

项目:sequana 作者: sequana 项目源码 文件源码
def plot_and_save(self, filename="snakemake_stats.png",
                      outputdir="report"):
        import pylab
        # If the plot cannot be created (e.g. no valid stats), we create an empty
        # axes
        try: self.plot()
        except:
            pylab.bar([0],[0])
        if outputdir is None:
            pylab.savefig(filename)
        else:
            pylab.savefig(outputdir + os.sep + filename)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号