def strip_non_reference(self):
'''
remove insertions relative to the reference from the alignment
'''
ungapped = np.array(self.reference_aln)!='-'
for seq in self.aln:
seq.seq = Seq("".join(np.array(seq)[ungapped]))
评论列表
文章目录