Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
VerMoUTH 0.15.1.dev77+gd0ec4df92 documentation
VerMoUTH 0.15.1.dev77+gd0ec4df92 documentation

Contents:

  • General Overview
  • Martinize 2 workflow
  • Technical background
    • Processor
    • Data
    • Graph algorithms
  • File formats
  • Tutorials
    • Basic usage
    • Elastic Networks
    • Gō models
    • Water biasing
    • Mutations and modifications
    • Adding new residues and links
    • Adding new modifications
  • vermouth
    • vermouth package
      • vermouth.bin package
        • vermouth.bin.martinize2 module
      • vermouth.data package
        • vermouth.data.data module
      • vermouth.dssp package
        • vermouth.dssp.dssp module
      • vermouth.gmx package
        • vermouth.gmx.gro module
        • vermouth.gmx.itp module
        • vermouth.gmx.itp_read module
        • vermouth.gmx.rtp module
        • vermouth.gmx.topology module
      • vermouth.pdb package
        • vermouth.pdb.cif module
        • vermouth.pdb.pdb module
      • vermouth.processors package
        • vermouth.processors.add_molecule_edges module
        • vermouth.processors.annotate_idrs module
        • vermouth.processors.annotate_mut_mod module
        • vermouth.processors.apply_posres module
        • vermouth.processors.apply_rubber_band module
        • vermouth.processors.attach_mass module
        • vermouth.processors.average_beads module
        • vermouth.processors.canonicalize_modifications module
        • vermouth.processors.cif_reader module
        • vermouth.processors.do_links module
        • vermouth.processors.do_mapping module
        • vermouth.processors.gro_reader module
        • vermouth.processors.idr_cross_domain_interaction_removal module
        • vermouth.processors.locate_charge_dummies module
        • vermouth.processors.make_bonds module
        • vermouth.processors.merge_all_molecules module
        • vermouth.processors.merge_chains module
        • vermouth.processors.name_moltype module
        • vermouth.processors.pdb_reader module
        • vermouth.processors.processor module
        • vermouth.processors.quote module
        • vermouth.processors.rename_modified_residues module
        • vermouth.processors.repair_graph module
        • vermouth.processors.rtp_polisher module
        • vermouth.processors.set_molecule_meta module
        • vermouth.processors.sort_molecule_atoms module
        • vermouth.processors.stash_attributes module
        • vermouth.processors.tune_cystein_bridges module
        • vermouth.processors.water_bias module
      • vermouth.rcsu package
        • vermouth.rcsu.contact_map module
        • vermouth.rcsu.go_pipeline module
        • vermouth.rcsu.go_structure_bias module
        • vermouth.rcsu.go_utils module
        • vermouth.rcsu.go_vs_includes module
      • vermouth.citation_parser module
      • vermouth.edge_tuning module
      • vermouth.ffinput module
      • vermouth.file_writer module
      • vermouth.forcefield module
      • vermouth.geometry module
      • vermouth.graph_utils module
      • vermouth.ismags module
      • vermouth.log_helpers module
      • vermouth.map_input module
      • vermouth.map_parser module
      • vermouth.molecule module
      • vermouth.parser_utils module
      • vermouth.selectors module
      • vermouth.system module
      • vermouth.truncating_formatter module
      • vermouth.utils module
  • Gromacs variables
Back to top
View this page

vermouth.processors.do_links module¶

class vermouth.processors.do_links.DoLinks[source]¶

Bases: Processor

Apply Links, taken from a molecule’s force field, to the molecule.

run_molecule(molecule)[source]¶
vermouth.processors.do_links.match_link(molecule, link)[source]¶
vermouth.processors.do_links.match_order(order1, resid1, order2, resid2)[source]¶

Check if two residues match the order constraints.

The order can be:

an integer

It is then the expected distance in resid with a reference residue.

a series of >

This indicates that the residue must have a larger resid than a reference residue. Multiple atoms with the same number of > are expected to be part of the same residue. The more > are in the serie, the further away the residue is expected to be from the reference, so a residue with >> is expected to have a greater resid than a residue with >.

a series of <

Same as a series of >, but for smaller resid.

a series of *

This indicates a different residue than the reference, but without a specified order. As for the > or the <, atoms with the same number of * are expected to be part of the same residue.

The comparison matrix can be sumerized as follow, with 0 being the reference residue, n being an integer. In the matrix, a ? means that the result depends on the comparison of the actual numbers, a ! means that the comparison should not be considered, and / means that the resids must be different. The rows correspond to the order at the left of the comparison (order1 argument), while the columns correspond to the order at the right of it (order2 argument).

>

>>

<

<<

n

0

*

**

>

=

<

>

>

!

>

!

!

>>

>

=

>

>

!

>

!

!

<

<

<

=

>

!

<

!

!

<<

<

<

<

=

!

<

!

!

n

!

!

!

!

?

?

!

!

0

<

<

>

>

?

=

/

/

*

!

!

!

!

!

/

=

/

**

!

!

!

!

!

/

/

=

Parameters:
  • order1 (int or str) – The order attribute of the residue on the left of the comparison.

  • resid1 (int) – The residue id of the residue on the left of the comparison.

  • order2 (int or str) – The order attribute of the residue on the right of the comparison.

  • resid2 (int) – The residue id of the residue on the right of the comparison.

Returns:

True if the conditions match.

Return type:

bool

Raises:

ValueError – Raised if the order arguments do not follow the expected format.

Next
vermouth.processors.do_mapping module
Previous
vermouth.processors.cif_reader module
Copyright © 2018, University of Groningen
Made with Sphinx and @pradyunsg's Furo
On this page
  • vermouth.processors.do_links module
    • DoLinks
      • DoLinks.run_molecule()
    • match_link()
    • match_order()