Module for downloading PDB files from the web.
The data is retrieved from the following website:
http://www.rcsb.org/pdb/files/
Running this module is no different from using a web-browser to access
the site - it's just a different type of web client. Therefore this
should cause no problems for the maintainers of that site and be within
the terms and conditions of use.
Note that certain assumptions are made about the layout of the web
site - changes there in future may make this script stop working.
Copyright Schrodinger, LLC. All rights reserved.
|
_temporarize_path(filename)
This function returns a path to a file in a temporary directory that
is based on the specified file name. |
|
|
|
set_opener(opener)
Public function to set an opener, this allows calling code to use a
custom URL opener, for example one that will prompt for a password |
|
|
|
import_pdb(pdb_code,
biological_unit=False)
Import the PDB file into the Project Table, using download_pdb() to
get the file if it doesn't already exist in the cwd. |
|
|
|
download_sf(pdb_code)
Download the ENT file for the given PDB ID, converts it to CNS
format, and returns the CNS file name. |
|
|
|
download_fasta(pdb_code,
chain=None)
Attemps to download the fasta file for the given PDB ID and chain. |
|
|
|
get_pdb(pdbid,
source=0,
caps_asis=False)
Attempts to get the specified PDB file from either the database or
the web, depending on the source option. |
|
|
|
retrieve_pdb(pdbid,
local_repos=None,
verbose=False,
caps_asis=False)
Attempt to retrieve the PDB from the local repository |
|
|
list of str
|
|
|
find_local_pdb(pdbid,
local_repos=None,
verbose=False,
caps_asis=False)
Check a series of local directories and filenames for the PDB files. |
|
|
|
download_pdb(pdb_code,
biological_unit=False)
Download the pdb record from www.rcsb.org into the cwd. |
|
|
|
download_file(pdb_code,
pdb_file,
url,
biological_unit=False)
Download a file from a given url into the working directory. |
|
|
|
|
|
|
|
import_file(file,
format)
Imports a PDB format structure file into maestro, including all
entries in the file into the workspace, then resets the entryimport
options to the previous settings. |
|
|
|
retrieve_ent(pdbid)
Retrieves the ENT file for the specified PDB ID from the third-party
database and copies it to the CWD. |
|
|
|
download_ent(pdbid)
Downloads the ENT file for the specified PDB ID from the RCSB web
site, and saves it to the CWD. |
|
|
|
get_ent(pdbid,
source=0)
Attempts to get the specified ENT file from either the database or
the web, depending on the source option. |
|
|