[Biopython-dev] antiparallel ?
thomas at cbs.dtu.dk
thomas at cbs.dtu.dk
Fri Aug 11 04:18:40 EDT 2000
Hi,
How are people changing sequences to antiparallel with biopython ?
Currently I use
def complement(self, seq):
return string.join(map(lambda x:IUPACData.ambiguous_dna_complement[x], map(None,seq)),'')
def reverse(self, seq):
r = map(None, seq)
r.reverse()
return string.join(r,'')
def antiparallel(self, seq):
s = self.complement(seq)
s = self.reverse(s)
return s
Is there another - better - way to do go ?
thx
-thomas
--
Sicheritz Ponten Thomas E. CBS, Department of Biotechnology
blippblopp at linux.nu The Technical University of Denmark
CBS: +45 45 252485 Building 208, DK-2800 Lyngby
Fax +45 45 931585 http://www.cbs.dtu.dk/thomas/index.html
De Chelonian Mobile ... The Turtle Moves ...
More information about the Biopython-dev
mailing list