individual.py 文件源码

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

项目:lineage 作者: apriha 项目源码 文件源码
def _complement_bases(self, genotype):
        if pd.isnull(genotype):
            return np.nan

        complement = ''

        for base in list(genotype):
            if base == 'A':
                complement += 'T'
            elif base == 'G':
                complement += 'C'
            elif base == 'C':
                complement += 'G'
            elif base == 'T':
                complement += 'A'

        return complement
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号