ProtoCaller.Utils.pdbconnect module¶
-
class
ProtoCaller.Utils.pdbconnect.PDBDownloader(code)¶ Bases:
objectA class which acts as a client to Protein Data Bank.
- Parameters
code (str) – Initialises code.
-
code¶ The PDB code of the protein.
- Type
str
-
property
code¶
-
getFASTA()¶ Downloads the FASTA file from the Protein Data Bank.
- Returns
pdb – Returns the absolute path to the FASTA file downloaded from the Protein Data Bank.
- Return type
str
-
getLigands(ligands='all')¶ Retrieves the ligands as SDF files from the Protein Data Bank.
- Parameters
ligands (str, [str]) – Either a list of Ligand ID’s to keep or “all”, in which case all ligands are downloaded.
- Returns
ligands – A list of the absolute paths of all ligands.
- Return type
[str]
-
getPDB()¶ Downloads the PDB file from the Protein Data Bank.
- Returns
pdb – Returns the absolute path to the PDB file downloaded from the Protein Data Bank.
- Return type
str