sequences_process.py 文件源码

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

项目:augur 作者: nextstrain 项目源码 文件源码
def make_gaps_ambiguous(self):
        '''
        replace all gaps by 'N' in all sequences in the alignment. TreeTime will treat them
        as fully ambiguous and replace then with the most likely state
        '''
        for seq in self.aln:
            seq_array = np.array(seq)
            gaps = seq_array=='-'
            seq_array[gaps]='N'
            seq.seq = Seq("".join(seq_array))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号