[Biopython] Save coordinates of selected residues...

João Rodrigues anaryin at gmail.com
Wed Jan 19 09:49:41 EST 2011


Hello Yasser,

You can either create a new Structure object with copies of the residues of
interest, and then use PDBIO to save it, or use the Dice
module<http://www.biopython.org/DIST/docs/api/Bio.PDB.Dice.ChainSelector-class.html>.
If you choose the latter, make sure that the accept_residue function returns
True only for those residues (you can make it based on residue id).

Best!

João [...] Rodrigues
http://doeidoei.wordpress.com



2011/1/18 Yasser Almeida Hernández <almeida at cim.sld.cu>

> Hi all...
> I wonder how can i save the coordinates of a list of residues from a
> structure.
> For example, from the structure 154L i want to save in a pdb file the
> next amino acids:
> PHE  123
> HIS  101
> GLY  150
> PHE  123
> TYR  147
> HIS  101
> PHE  123
> ASP   97
> GLU   73
> THR  165
> ASN  148
>
> How would be the code...???
>
> Best regards and thanks in advance... ;)
> --
>
> Yasser Almeida Hernández, BSc.
> Center of Molecular Immunology (CIM)
> Tumor Biology Direction
> Nanobiology Department
> 216 St. & 15th Ave, Siboney, Playa
> P.O.Box 16040. Havana, Cuba
> Phone: (+537) 214-3178
> almeida at cim.sld.cu
>
>
>
>
> _______________________________________________
> Biopython mailing list  -  Biopython at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/biopython
>
>



More information about the Biopython mailing list