[BioPython] How to extract the DNA string from the sequence object ?

Iddo Friedberg idoerg@cc.huji.ac.il
Thu, 5 Jul 2001 18:46:47 +0300 (GMT+0300)


On Thu, 5 Jul 2001, Quoc-Dien Trinh wrote:

: Hello,
:
: I'm trying to extract the DNA string (ex:
: 'AGACATACAGAT') from the sequence object, because I
: can't do a "FIND" on the object. How could I do that?

The .data attribute returns a string value

So my_sequence.data.find('CAT') should return 3


--

Iddo Friedberg                                  | Tel: +972-2-6758647
Dept. of Molecular Genetics and Biotechnology   | Fax: +972-2-6757308
The Hebrew University - Hadassah Medical School | email: idoerg@cc.huji.ac.il
POB 12272, Jerusalem 91120                      |
Israel                                          |
http://bioinfo.md.huji.ac.il/marg/people-home/iddo/