swamp.mr.searchmodel module¶
-
class
SearchModel
(id, ensemble_code, workdir, ermsd=0.1, nsearch=1, disable_check=True, mod='unmod', model='ensemble', pdb_fname_input=None, logger=None)[source]¶ Bases:
abc.ABC
Class with methods to prepare the search model before MR and data structures to keep all useful information
Parameters: - workdir (str) – working directory where the search model will be prepared
- id (str) – unique identifier for the search model to be added
- ensemble_code (str) – the ensemble’s SWAMP library id to be used as search model
- ermsd (float) – the eRMSD to be used with phaser to place the search model (default 0.1)
- nsearch (int) – number of copies to search with phaser
- disable_check (bool) – passed to
phaser.InputMR_AUTO.setENSE_DISA_CHEC
(default True) - mod (str) – indicate how to prepare the search model (default ‘unmod’)
- model (str) – indicate if the search model is an ensemble or a centroid (default ‘ensemble’)
- logger (SwampLogger) – logging interface for the MR pipeline (default None)
Variables: -
static
extract_core
(pdbout, workdir, model_list)[source]¶ Extract the core structural alignment of a given ensemble
Parameters:
-
idealhelix_fname
¶ File name of the ideal helix to be used to extend the solution
-
model_dir
¶ Directory with the models that formed the original search model (if it was an ensemble)
-
model_list
¶ A list with all the models in the original search model
-
modified_pdbfname
¶ The file name of the search model after running
prepare()
-
pdbfname
¶ The PDB file name of the search model
-
phaser_info
¶ A dictionary with all the information necessary to use with
add_searchmodel()
-
static
split_models
(pdbin, directory, strip_hetatm=True)[source]¶ Method to split an ensemble into its model components
Parameters: Returns: a list with the output file names listed (list)