schrodinger.protein.nonstandard_residues module¶
-
schrodinger.protein.nonstandard_residues.get_residue_database(*, load_saved=True)[source]¶ Get the global nonstandard residue database.
If there is an error loading the saved database file, an empty (default) database will be returned.
-
schrodinger.protein.nonstandard_residues.get_default_user_dbfile()[source]¶ Return the path to the default user DB file.
- Returns
Default path to user DB file.
- Return type
str
-
schrodinger.protein.nonstandard_residues.get_saved_db_file()[source]¶ Return the path to the database file that is saved in Maestro’s prefs or, if no preference is specified, a default location in the user’s userdata directory.,
- Returns
Saved DB filepath to be used
- Return type
str
-
schrodinger.protein.nonstandard_residues.strip_caps(st)[source]¶ Strip any ACE & NMA caps, and add an OXT cap.
-
schrodinger.protein.nonstandard_residues.find_atom(st, name)[source]¶ Find the atom with the given PDB name. None is returned if no such atom is present.
-
schrodinger.protein.nonstandard_residues.flip_isomer(st)[source]¶ Invert the isomerism of the alpha carbon. So D residue gets converted to L and vice versa.
-
schrodinger.protein.nonstandard_residues.generate_smiles(st, use_annotations=False)[source]¶ Generate the SMILES string for the given structure.
- Parameters
use_annotations (bool) – Whether to use annotations instead of 3D geometry (set if the structure is 2D).
-
class
schrodinger.protein.nonstandard_residues.ResidueDatabase(db_file=None)[source]¶ Bases:
PyQt5.QtCore.QObjectA collection of AminoAcid objects. Included built-in residues. For now, just a collection of database-related functions.
-
residuesChanged¶
-
getAminoAcid(name)[source]¶ Retrieve an amino acid by PDB residue name
- Parameters
name (str) – PDB residue name
- Returns
Amino acid object
- Return type
Optional[AminoAcid]
-
property
amino_acids¶
-
classmethod
get_built_in_residues()[source]¶ Return a list of built-in residues AminoAcid objects from the installation.
-
readDatabaseFile(db_file)[source]¶ Read the specified database file, and return a ResidueDatabase (which is basically a list of AminoAcid objects, including built-in residues). Raises RuntimeError on failure.
-
static
exportDatabase(amino_acids, db_file)[source]¶ Export the amino acids database.
- Parameters
amino_acids (list[AminoAcid]) – Amino acids to export.
db_file (str) – Database file path.
-
blockSignals(self, bool) → bool¶
-
childEvent(self, QChildEvent)¶
-
children(self) → List[QObject]¶
-
connectNotify(self, QMetaMethod)¶
-
customEvent(self, QEvent)¶
-
deleteLater(self)¶
-
destroyed¶ destroyed(self, object: QObject = None) [signal]
-
disconnect(self)¶
-
disconnectNotify(self, QMetaMethod)¶
-
dumpObjectInfo(self)¶
-
dumpObjectTree(self)¶
-
dynamicPropertyNames(self) → List[QByteArray]¶
-
event(self, QEvent) → bool¶
-
eventFilter(self, QObject, QEvent) → bool¶
-
findChild(self, type, name: str = '', options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) → QObject¶ findChild(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> QObject
-
findChildren(self, type, name: str = '', options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) → List[QObject]¶ findChildren(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] findChildren(self, type, QRegExp, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] findChildren(self, Tuple, QRegExp, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] findChildren(self, type, QRegularExpression, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] findChildren(self, Tuple, QRegularExpression, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject]
-
inherits(self, str) → bool¶
-
installEventFilter(self, QObject)¶
-
isSignalConnected(self, QMetaMethod) → bool¶
-
isWidgetType(self) → bool¶
-
isWindowType(self) → bool¶
-
killTimer(self, int)¶
-
metaObject(self) → QMetaObject¶
-
moveToThread(self, QThread)¶
-
objectName(self) → str¶
-
objectNameChanged¶ objectNameChanged(self, str) [signal]
-
parent(self) → QObject¶
-
property(self, str) → Any¶
-
pyqtConfigure(...)¶ Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.
-
receivers(self, PYQT_SIGNAL) → int¶
-
removeEventFilter(self, QObject)¶
-
sender(self) → QObject¶
-
senderSignalIndex(self) → int¶
-
setObjectName(self, str)¶
-
setParent(self, QObject)¶
-
setProperty(self, str, Any) → bool¶
-
signalsBlocked(self) → bool¶
-
startTimer(self, int, timerType: Qt.TimerType = Qt.CoarseTimer) → int¶
-
staticMetaObject= <PyQt5.QtCore.QMetaObject object>¶
-
thread(self) → QThread¶
-
timerEvent(self, QTimerEvent)¶
-
tr(self, str, disambiguation: str = None, n: int = - 1) → str¶
-
-
class
schrodinger.protein.nonstandard_residues.AminoAcid(st, built_in=False, standard=False)[source]¶ Bases:
objectClass representing an amino acid (residue) row in the table.
-
__init__(st, built_in=False, standard=False)[source]¶ Initialize self. See help(type(self)) for accurate signature.
-
property
name¶ AminoAcid.name will return the PDB residue name for this AA.
-
property
code¶ AminoAcid.code will return the 1-letter code for this residue.
-
property
aligns_with¶
-
property
description¶ AminoAcid.description will return the title of the CT.
-
property
locked¶ AminoAcid.code will return whether the residue is locked from editing.
-
st_changed()[source]¶ Must be called every time the structure is modified. Will update the SMILES string and the .isomer property.
-
property
identifier¶ Return an ID string for this residue, which includes the residue name, isomer, and description.
-
-
schrodinger.protein.nonstandard_residues.filter_residues_mutating_to_custom(residues)[source]¶ - Parameters
residues (list[non_standard_residues.AminoAcid]) – a list of residues
- Returns
the elements of
residuesthat are non-standard and for which “mutate to” has been enabled- Return type
list[non_standard_residues.AminoAcid]
-
schrodinger.protein.nonstandard_residues.get_db_residues()[source]¶ - Returns
a list of residues from the non-standard residue database
- Return type
list[non_standard_residues.AminoAcid]
-
schrodinger.protein.nonstandard_residues.prepare_res_st_for_prime(st)[source]¶ Create a copy of the specified residue structure that has been prepared for use in Prime.
This includes removing the OXT group (-OH), and setting the title of the CT to the 3-letter residue name.
- Parameters
st (_structure.Structure) – a residue structure
- Returns
a copy of
stthat has been prepared for use in Prime- Return type
_structure.Structure