Lib Download¶
Functions and variables to download files and data.
- idpconfgen.libs.libdownload.download_structure(pdbid, mmcif=False, **kwargs)[source]¶
Download a PDB/CIF structure chains.
- Parameters:
pdbid (tuple of 2-elements) – 0-indexed, the structure ID at RCSB.org; 1-indexed, a list of the chains to download.
**kwargs (as for
save_structure_by_chains()
.)
- idpconfgen.libs.libdownload.fetch_pdb_id_from_RCSB(pdbid, mmcif=False)[source]¶
Fetch PDBID from RCSB.
- Returns:
tuple (str, str) – urllib.request.urlopen.response.read() PDB file extension (.pdb, .cif, …)
- idpconfgen.libs.libdownload.fetch_raw_CIFs(pdbid, *, ext='cif', **kwargs)¶
Download raw structure from RCSB without any filtering.
- idpconfgen.libs.libdownload.fetch_raw_PDBs(pdbid, *, ext='pdb', **kwargs)¶
Download raw structure from RCSB without any filtering.