[BioPython] PDB -> FASTA

Iddo idoerg at burnham.org
Tue Nov 2 16:51:05 EST 2004


Welcome aboard, and I am glad we managed to save one  Jedi from the dark 
side of  bioinformatics...;)

As to your question:  see the attached class. I should get that in 
Biopython, but I keep not doing that....

./I


Douglas Kojetin wrote:

> Hi All-
>
> I'm a beginner @ biopython (and I'm 'switching' from perl to python 
> ...).  First off, many thanks for the structrual biopython FAQ ... 
> very helpful!  My question:  can anyone help me with some ideas on how 
> to whip up a quick PDB->FASTA (sequence) script?
>
> From the structural biopython faq, I've been able to extract residue 
> information in the form of:
>
>  <Residue MET het=  resseq=1 icode= >
>
> I take it I would just need to grab the MET (split the residue object 
> and grab the r[1] index?) and convert into M, then append to a 
> sequence string ....
>
> but I didn't know if biopython had something that did an 
> autoconversion of MET->M, or vice versa (M->MET).
>
> Thanks for the input,
> Doug
>
> _______________________________________________
> BioPython mailing list  -  BioPython at biopython.org
> http://biopython.org/mailman/listinfo/biopython
>
>


-- 
Iddo Friedberg, Ph.D.
The Burnham Institute
10901 North Torrey Pines Road
La Jolla, CA 92037 USA
T: (858) 646 3100 x3516
F: (858) 713 9930
http://ffas.ljcrf.edu/~iddo

-------------- next part --------------
A non-text attachment was scrubbed...
Name: aaCode.py
Type: text/x-python
Size: 2069 bytes
Desc: not available
Url : http://portal.open-bio.org/pipermail/biopython/attachments/20041102/83a76eb2/aaCode.py


More information about the BioPython mailing list