Plots.py 文件源码

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

项目:pdVCF 作者: superDross 项目源码 文件源码
def variants_chrom(self):
        ''' Countplot of number of variants identified
            across all chromosomes.
        '''
        self.pdvcf.remove_scaffolds()
        plt.style.use('seaborn-deep')

        fig, ax = plt.subplots(figsize=(14, 7))
        sns.countplot(data=self.pdvcf.vcf, x='CHROM', palette='GnBu_d')

        ax.tick_params(labelsize=15)
        ax.set_ylabel('Variants', fontsize=20)
        ax.set_xlabel('Chromosome', fontsize=20)
        ax.set_title('Variants Identified Across Chromosomes', fontsize=25)
        return ax
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号