molecupy.converters.pdbdatafile2model
(PDB Data File to Model)¶
This module handles the logic of converting a PdbDataFile
to a
Model
-
molecupy.converters.pdbdatafile2model.
model_from_pdb_data_file
(data_file, model_id=1)[source]¶ Takes a
PdbDataFile
, converts it to aModel
, and returns it.PdbDataFile
objects can contain multiple models. By default, model 1 will be used, but you can specify specific models with themodel_id
argument.Parameters: - data_file (PdbDataFile) – The
PdbDataFile
to convert. - model_id (int) – The ID of the model in the data fileto be used for conversion.
Return type: - data_file (PdbDataFile) – The
-
molecupy.converters.pdbdatafile2model.
add_small_molecules_to_model
(model, data_file, model_id)[source]¶ Takes a
Model
and createsSmallMolecule
objects in it based on theheteroatoms
in the providedPdbDataFile
.Parameters: - model (Model) – the model to update.
- data_file (PdbDataFile) – The source Pdb Data File
- model_id (int) – The ID of the model in the data fileto be used for conversion.
-
molecupy.converters.pdbdatafile2model.
add_chains_to_model
(model, data_file, model_id)[source]¶ Takes a
Model
and createsChain
objects in it based on theatoms
in the providedPdbDataFile
.Parameters: - model (Model) – the model to update.
- data_file (PdbDataFile) – The source Pdb Data File
- model_id (int) – The ID of the model in the data fileto be used for conversion.
-
molecupy.converters.pdbdatafile2model.
connect_atoms
(model, data_file, model_id)[source]¶ Takes a
Model
and createsBond
objects between atoms in it based on theconnections
in the providedPdbDataFile
.Parameters: - model (Model) – the model to update.
- data_file (PdbDataFile) – The source Pdb Data File
- model_id (int) – The ID of the model in the data fileto be used for conversion.
-
molecupy.converters.pdbdatafile2model.
bond_residue_atoms
(model, data_file, model_id)[source]¶ Takes a
Model
and createsBond
objects within the residues of the Model, based on a pre-defined dictionary of how residues are connected internally.Parameters: - model (Model) – the model to update.
- data_file (PdbDataFile) – The source Pdb Data File
- model_id (int) – The ID of the model in the data fileto be used for conversion.
-
molecupy.converters.pdbdatafile2model.
bond_residues_together
(model, data_file, model_id)[source]¶ Takes a
Model
and createsBond
objects between the residues of chains in the model.Parameters: - model (Model) – the model to update.
- data_file (PdbDataFile) – The source Pdb Data File
- model_id (int) – The ID of the model in the data fileto be used for conversion.
-
molecupy.converters.pdbdatafile2model.
make_disulphide_bonds
(model, data_file, model_id)[source]¶ Takes a
Model
and creates disulphideBond
objects in it based on thess_bonds
in the providedPdbDataFile
.Parameters: - model (Model) – the model to update.
- data_file (PdbDataFile) – The source Pdb Data File
- model_id (int) – The ID of the model in the data fileto be used for conversion.
-
molecupy.converters.pdbdatafile2model.
make_link_bonds
(model, data_file, model_id)[source]¶ Takes a
Model
and creates specifiedBond
objects in it based on thelinks
in the providedPdbDataFile
.Parameters: - model (Model) – the model to update.
- data_file (PdbDataFile) – The source Pdb Data File
- model_id (int) – The ID of the model in the data fileto be used for conversion.
-
molecupy.converters.pdbdatafile2model.
give_model_sites
(model, data_file, model_id)[source]¶ Takes a
Model
and createsBindSite
objects in it based on thesites
in the providedPdbDataFile
.Parameters: - model (Model) – the model to update.
- data_file (PdbDataFile) – The source Pdb Data File
- model_id (int) – The ID of the model in the data fileto be used for conversion.
-
molecupy.converters.pdbdatafile2model.
map_sites_to_ligands
(model, data_file, model_id)[source]¶ Takes a
Model
and assocated ligands and binding sites to each other based on 800-remarks in the providedPdbDataFile
.Parameters: - model (Model) – the model to update.
- data_file (PdbDataFile) – The source Pdb Data File
- model_id (int) – The ID of the model in the data fileto be used for conversion.
-
molecupy.converters.pdbdatafile2model.
give_model_alpha_helices
(model, data_file, model_id)[source]¶ Takes a
Model
and createsAlphaHelix
objects in it based on thehelices
in the providedPdbDataFile
.Parameters: - model (Model) – the model to update.
- data_file (PdbDataFile) – The source Pdb Data File
- model_id (int) – The ID of the model in the data fileto be used for conversion.
-
molecupy.converters.pdbdatafile2model.
give_model_beta_strands
(model, data_file, model_id)[source]¶ Takes a
Model
and createsBetaStrand
objects in it based on thesheets
in the providedPdbDataFile
.Parameters: - model (Model) – the model to update.
- data_file (PdbDataFile) – The source Pdb Data File
- model_id (int) – The ID of the model in the data fileto be used for conversion.
-
molecupy.converters.pdbdatafile2model.
give_model_complexes
(model, data_file, model_id)[source]¶ Takes a
Model
and createsComplex
objects in it based on thecompounds
in the providedPdbDataFile
.Parameters: - model (Model) – the model to update.
- data_file (PdbDataFile) – The source Pdb Data File
- model_id (int) – The ID of the model in the data fileto be used for conversion.