pyCADD.Dock package
Subpackages
- pyCADD.Dock.schrodinger package
- Submodules
- pyCADD.Dock.schrodinger.api module
- pyCADD.Dock.schrodinger.common module
MetaDataMetaData.pdbidMetaData.ligand_nameMetaData.actionMetaData.docking_ligand_nameMetaData.precisionMetaData.internal_ligand_nameMetaData.parse_from_filename()MetaData.parse_from_dict()MetaData.parse_from_metadata()MetaData.generate_file_name()MetaData.copy()MetaData.set()MetaData.NoDefaultMetaData.get()MetaData.delete()MetaData.__init__()
BaseMaestroFileGridFileLigandSearchedMaestroFileDockResultFile
- pyCADD.Dock.schrodinger.config module
- pyCADD.Dock.schrodinger.core module
- pyCADD.Dock.schrodinger.data module
- pyCADD.Dock.schrodinger.ensemble module
- pyCADD.Dock.schrodinger.utils module
- Module contents
Submodules
pyCADD.Dock.cli module
pyCADD.Dock.common module
- class pyCADD.Dock.common.PDBLine(line: str)[source]
Bases:
object- __init__(line: str) None[source]
One line in a pdb file
- Parameters:
line (str) – one line in a pdb file
- property is_atom_line: bool
- property is_amino: bool
- property is_hetatm: bool
- property is_conect: bool
- property is_ter: bool
- property is_end: bool
- property line: str
- class pyCADD.Dock.common.PDBLineParser(pdb_str: str = None, pdb_file: str = None)[source]
Bases:
object- __init__(pdb_str: str = None, pdb_file: str = None) None[source]
Parse pdb file string or file.
- Parameters:
pdb_str (str, optional) – pdb string. Defaults to None.
pdb_file (str, optional) – pdb file path. Required if pdb_str is not provided. Defaults to None.
- Raises:
ValueError – Either pdb_str or pdb_file must be provided.
- get_lines()[source]
Get a list of all lines parsed from the pdb file.
- Returns:
pdb line object list
- Return type:
list[PDBLine]
- get_atom_lines()[source]
Get a list of atom line objects parsed from the pdb file.
- Returns:
atom line object list
- Return type:
list[PDBLine]
- get_amino_lines()[source]
Get a list of amino acid line objects parsed from the pdb file. Amino acid line is defined as the line with record name ‘ATOM’ and res_name in AMINO_ACIDS
- Returns:
amino acid line objects list
- Return type:
list[PDBLine]
- get_hetatm_lines()[source]
Get a list of HETATM line objects parsed from the pdb file.
- Returns:
HETATM line objects list
- Return type:
list[PDBLine]
- class pyCADD.Dock.common.PDBFile(path: str)[source]
Bases:
File
- class pyCADD.Dock.common.EnsembleInputFile(path: str)[source]
Bases:
File- __init__(path: str) None[source]
Input file class for ensemble docking
- Parameters:
path (_type_) – file path
- property pdbid_list: list
- property ligand_list: list
- classmethod from_csv(file_path: str, sep: str = ',', header: bool = False) EnsembleInputFile[source]
Parse input file as csv format
- Parameters:
file_path (str) – csv file path
sep (str, optional) – separator. Defaults to ‘,’.
header (bool, optional) – whether the csv file has header. Defaults to None.
- csv examples:
` 1XJ7,DHT 1XQ3,R18 2AM9,TES 2AM9,DTT 2YLP,TES 2YLP,056 `
- Returns:
instance of EnsembleInputFile
- Return type:
- classmethod from_ini(config_file: str) EnsembleInputFile[source]
Parse input file as ini format
- Parameters:
config_file (str) – ini file path
- Returns:
instance of EnsembleInputFile
- Return type:
- classmethod from_yaml(yaml_file: str) EnsembleInputFile[source]
Parse input file as yaml format
- Parameters:
yaml_file (str) – yaml file path
- Returns:
instance of EnsembleInputFile
- Return type:
- classmethod parse_file(path: str, header: bool = False) EnsembleInputFile[source]
Parse input file
- Parameters:
path (str) – file path
header (bool, optional) – whether the file has header. Only for csv file. Defaults to False.
- Raises:
ValueError – Unsupported file type
- Returns:
instance of EnsembleInputFile
- Return type:
- read(file_path: str) None[source]
Read and parse the input file
- Parameters:
file_path (str) – file path
- get_pairs_list() list[tuple][source]
Get the list of pairs. Pairs are defined as (pdb, ligand)
- Returns:
list of pairs
- Return type:
list