From: Sebastian Hungerecker Date: 2008-01-11T06:08:10+09:00 Subject: Re: string extraction Li Chen wrote: > How do I change all the As into T and all the Ts into > A in the old sttring? > > old_s="AAATTAA" > new_s="TTTAATT" new_s = old_s.tr("AT", "TA") or if you also want GC new_s = old_s.tr("ATGC", "TACG") -- Jabber: sepp2k@jabber.org ICQ: 205544826