Skip to content

Latest commit

 

History

History
147 lines (97 loc) · 3.77 KB

Decorators.rst

File metadata and controls

147 lines (97 loc) · 3.77 KB

Decorators

.. autoclass:: menten_gcn.decorators.BareBonesDecorator
   :members:

Geometry

.. autoclass:: menten_gcn.decorators.CACA_dist
   :members:

.. autoclass:: menten_gcn.decorators.CBCB_dist
   :members:

.. autoclass:: menten_gcn.decorators.PhiPsiRadians
   :members:

.. autoclass:: menten_gcn.decorators.ChiAngleDecorator
   :members:

.. autoclass:: menten_gcn.decorators.trRosettaEdges

   .. image:: https://www.pnas.org/content/pnas/117/3/1496/F1.large.jpg

.. autoclass:: menten_gcn.decorators.SimpleBBGeometry
   :members:

.. autoclass:: menten_gcn.decorators.StandardBBGeometry
   :members:

.. autoclass:: menten_gcn.decorators.AdvancedBBGeometry
   :members:

Sequence

.. autoclass:: menten_gcn.decorators.Sequence
   :members:

.. autoclass:: menten_gcn.decorators.DesignableSequence
   :members:

.. autoclass:: menten_gcn.decorators.SequenceSeparation
   :members:

.. autoclass:: menten_gcn.decorators.SameChain
   :members:

Rosetta

.. autoclass:: menten_gcn.decorators.RosettaResidueSelectorDecorator


   Example:

   .. code-block:: python

      import menten_gcn as mg
      import menten_gcn.decorators as decs
      import pyrosetta

      pyrosetta.init()

      buried = pyrosetta.rosetta.core.select.residue_selector.LayerSelector()
      buried.set_layers( True, False, False )
      buried_dec = decs.RosettaResidueSelectorDecorator( selector=buried, description='<Layer select_core="true" />' )

      data_maker = mg.DataMaker( decorators=[ buried_dec ], edge_distance_cutoff_A=10.0, max_residues=30 )
      data_maker.summary()

   Gives:

   .. code-block::

      Summary:

      2 Node Features:
      1 : 1 if the node is a focus residue, 0 otherwise
      2 : 1.0 if the residue is selected by the residue selector, 0.0 otherwise. User defined definition of the residue selector and how to reproduce it: <Layer select_core="true" />

      1 Edge Features:
      1 : 1.0 if the two residues are polymer-bonded, 0.0 otherwise

   Note that the additional features are due to the BareBonesDecorator, which is included by default

.. autoclass:: menten_gcn.decorators.RosettaResidueSelectorFromXML
   :members:

   Example:

   .. code-block:: python

      import menten_gcn as mg
      import menten_gcn.decorators as decs
      import pyrosetta

      pyrosetta.init()
      xml = '''
      <RESIDUE_SELECTORS>
      <Layer name="surface" select_surface="true" />
      </RESIDUE_SELECTORS>
      '''
      surface_dec = decs.RosettaResidueSelectorFromXML( xml, "surface" )

      max_res=30
      data_maker = mg.DataMaker( decorators=[ surface_dec ], edge_distance_cutoff_A=10.0, max_residues=max_res )
      data_maker.summary()

   Gives:

   .. code-block::

      Summary:

      2 Node Features:
      1 : 1 if the node is a focus residue, 0 otherwise
      2 : 1.0 if the residue is selected by the residue selector, 0.0 otherwise. User defined definition of the residue selector and how to reproduce it: Took the residue selector named surface from this XML:
      <RESIDUE_SELECTORS>
      <Layer name="surface" select_surface="true" />
      </RESIDUE_SELECTORS>


      1 Edge Features:
      1 : 1.0 if the two residues are polymer-bonded, 0.0 otherwise

   Note that the additional features are due to the BareBonesDecorator, which is included by default


.. autoclass:: menten_gcn.decorators.RosettaJumpDecorator
   :members:

.. autoclass:: menten_gcn.decorators.RosettaHBondDecorator
   :members:

.. autoclass:: menten_gcn.decorators.Rosetta_Ref2015_OneBodyEneriges
   :members:

.. autoclass:: menten_gcn.decorators.Rosetta_Ref2015_TwoBodyEneriges
   :members:

.. autoclass:: menten_gcn.decorators.Ref2015Decorator
   :members: