[BioPython] problems to fetch pdb files from server using pdb_list

Peter biopython at maubp.freeserve.co.uk
Fri May 23 10:35:59 UTC 2008


Florian Koelling wrote:
> Is there any possibility to avoid the construction of the obselete
> folder? I could not find it in the documentation - and the flags 0, 1
> and  None  didn' t work

You just use the pdir argument to specify the folder you want to use
(otherwise it build the subdirectory structre).  The function will
understand the shorthand of "." for the current directory.  Based on
your previous example try:

from Bio.PDB import *
pdbl=PDBList()
pdbl.retrieve_pdb_file('1FAT', pdir=".")

Peter



More information about the Biopython mailing list