helpers
pdberellig.helpers.utils
Various utilities used in the pipeline
- pdberellig.helpers.utils.download_chebi(out_folder)
Downloads the structures.csv.gz file from ChEBI FTP and saves to the destination folder
- pdberellig.helpers.utils.get_ids_to_process_from_file(file_name)
Read in all the items to process from a file.
- pdberellig.helpers.utils.get_ligand_intx_chains(ligand_id)
Returns the details of ligand interacting PDB chains including chain numbers,uniprot ids and ec number by calling PDBe API
- Parameters:
ligand_id (
str) – ligand identifier from PDB- Return type:
DataFrame
- pdberellig.helpers.utils.init_rdkit_templates(path)
Returns list of templates for cofactor classes.
- pdberellig.helpers.utils.parse_ligand(cif_path, ligand_type)
Parse cif file of ligand and returns Component object
- pdberellig.helpers.utils.setup_log(stage, mode)
Set up application log.