def sequence(self):
"""
Returns the nucleotide sequence of self
"""
if self.location.strand > 0:
return SeqFeature(location = self.location).extract(self.seq)
seq = Seq("")
for part in reversed(self.location.parts):
seq += SeqFeature(location = part).extract(self.seq)
return seq
评论列表
文章目录