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.PdbDataFileobjects can contain multiple models. By default, model 1 will be used, but you can specify specific models with themodel_idargument.Parameters: - data_file (PdbDataFile) – The
PdbDataFileto 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
Modeland createsSmallMoleculeobjects in it based on theheteroatomsin 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
Modeland createsChainobjects in it based on theatomsin 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
Modeland createsBondobjects between atoms in it based on theconnectionsin 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
Modeland createsBondobjects 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
Modeland createsBondobjects 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
Modeland creates disulphideBondobjects in it based on thess_bondsin 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
Modeland creates specifiedBondobjects in it based on thelinksin 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
Modeland createsBindSiteobjects in it based on thesitesin 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
Modeland 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
Modeland createsAlphaHelixobjects in it based on thehelicesin 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
Modeland createsBetaStrandobjects in it based on thesheetsin 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
Modeland createsComplexobjects in it based on thecompoundsin 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.