Bases: object
Class representing a DCA contact.
Bases: exceptions.Exception
Custom exception class used for foreseeable, DCA related errors.
Bases: rna_predict.dcatools.DcaFilter
Filter to skips DCA contact if below or above a threshold.
Create a new threshold filter.
Parameters: |
|
---|
Maps DCA residue contacts to atom-atom constraints.
Parameters: |
|
---|---|
Returns: | list of constraint information |
Run list of DCA contacts through a chain of filters.
Parameters: |
|
---|
Get list of atoms for residue.
Parameters: |
|
---|---|
Returns: | list of atoms |
Get list of atoms for a sequence of nucleotides
Parameters: | sequence – sequence as text |
---|---|
Returns: | list of atoms |
Returns contact distance map
The contact distance map is cached it in the user directory and updated when newer files are found.
Parameters: |
|
---|
Return an average distance map containing only those contacts with average distance and standard deviation satisfiying a cutoff.
Parameters: |
|
---|---|
Returns: | average distance map |
Returns distance information about a DCA contact in a realized PDB chain
Return value is a tuple of:
Parameters: |
|
---|---|
Returns: | tuple (average_dist, minimum_dist, minimum_pair). In case the contact cannot be found in the PDB file (0, 0, None) is returned. |
Align one PDB structure to another.
Parameters: |
|
---|---|
Returns: | tuple (res_dists, atom_dists, rmsd, transformation_matrix) |
Filter list of atoms.
Parameters: |
|
---|---|
Returns: | filtered list of atoms |
Calculate the center of a residue.
Parameters: | res – residue object |
---|---|
Returns: | center coordinates |
Get PDB file by code. Download if necessary.
Parameters: |
|
---|---|
Returns: | PDB filename |
Bases: object
Helper class to store external program calls plus additional flags.
Create a new command wrapper.
Parameters: |
|
---|
Bases: object
Evaluation data storing model and cluster information.
Returns the number of models in the vaulation data
Returns: | number of models |
---|
Returns a selection of models with specific properties
Parameters: |
|
---|---|
Returns: | list of selected models |
Calculate a model score based on different weights for the invidiual Rosetta scores
Parameters: |
|
---|
Load evaluation data from a prediction.
Parameters: | constraints – constraints selection |
---|
Load evaluation data from a file.
Parameters: | filename – path to a file containing the evaluation data |
---|
Bases: object
Base class used for prediction simulation
Create a prediction simulation for the current directory and try to load an existing configuration.
Assembly step. Assemble helices and motifs into complete models.
Parameters: |
|
---|
Helix creation step. Create one ideal helix model for each helix.
Parameters: |
|
---|
Motif generation step. Generate models for each motif.
Parameters: |
|
---|
Edit an existing .cst file, replacing the rosetta function.
Parameters: |
|
---|
Evaluation step. Extract model information, cluster models and calculate rmsd values.
Parameters: |
|
---|
Custom scoring algorithmy by inspecting neighboring residues of dca contact pairs
Parameters: |
|
---|
Execute an external command.
Parameters: |
|
---|
Execute an external command while capturing output.
Parameters: |
|
---|---|
Returns: | generator over lines of standard output |
Execute a list of commands parallelly.
Parameters: |
|
---|
Extract PDB files of a set of models
Parameters: |
|
---|
Extract PDB file of a model to the tmp directory.
Parameters: |
|
---|---|
Returns: | path to the extracted PDB file |
Returns a selection of models with specific properties
Parameters: |
|
---|
Returns a dict containing status information for a cst.
Parameters: |
|
---|---|
Returns: | status dict |
Create a set of constraints from a DCA prediction.
Parameters: |
|
---|
Modify configuration entry.
Parameters: |
|
---|
Parse .cst file as a list of constraints
Parameters: | constraints_file – path to a .cst file |
---|---|
Returns: | list of constraints |
Find and clean up constraints by name or filename
Parameters: | constraints – constraints name or filename |
---|---|
Returns: | tuple of constraints name and filename |
Parse a text string and turn it tinto a list of DCA filters
Multiple filters are separated by command and have the folling format:
<filter>:<arg>:<arg>:...
Threshold filter: Lookup dca contacts in a PDB file, discard or keep contact depending on whether the contact is realized:
Format: threshold:<n>:<cst>:<mode>:<moodel>
Example: threshold:8.0:100rnaDCA_FADE_-100_26_20_-2_2:cluster:1,threshold:-6.0:100rnaDCA_FADE_-100_26_20_-2_2:cluster:1
None filter: Empty filter
Format: none
Parameters: | line – string to parse |
---|---|
Returns: | list of DcaFilter objects |
Preparation step. Parse out stems and motifs from sequence and secondary structure information and create necessary base files.
Parameters: |
|
---|
Constraints preparation step. Prepare constraints files for motif generation and assembly.
Parameters: |
|
---|
Print a set of models
Parameters: |
|
---|
Print summary of predictions and their current status.
Output format always contains the following columns:
If a step is completed, X is shown, - otherwise.
For motif generation a * may be shown to indicate that models from a different set of constraints are used.
If native_compare is set to True another 4 columns are printed:
Parameters: |
|
---|
Bases: exceptions.Exception
Custom exception class for foreseeable prediction errors.
Make sure a directory exists and raise an exception otherwise.
Parameters: |
|
---|
Make sure a file exists and raise an exception otherwise.
Parameters: |
|
---|
Helper function to delete files while expanding shell globs.
Parameters: |
|
---|
Switches N1 and N3 atom names in a residue.
Parameters: |
|
---|---|
Returns: | modified list of constraints |
Returns the number of models present in a Rosetta silent file.
Parameters: | silent_file – filename |
---|---|
Returns: | model count |
Merges rosetta silent files (.out).
All source files are appended to target. Model numbers are incremented uniquely. Source files are deleted after a successful merge.
Parameters: |
|
---|---|
Returns: | model count |
Bases: object
Stores user configuration
Plot score over native rmsd.
Parameters: |
|
---|
Plot constraint quality.
This visualizes the distances of constraints by comparing it to a reference (native) PDB structure.
Parameters: |
|
---|
Plots atoms involved in forming nucleotide contacts that satisfy the cutoff condition in the contact database.
Parameters: |
|
---|
Plots histogram for each nucleotide pair contact containing the distances of the atoms involved.
Visualize how well DCA contacts are fullfiled in PDB files.
This plots the distances of dca contacts in one or more PDB files.
Parameters: |
|
---|
Parses a string containing comma separated key-value paris (colon-separated) into a dict with fixed key and value types.
Example: Turns foo:3,bar:4 into {"foo": 3, "bar": 4}
Parameters: |
|
---|---|
Returns: | dict |
Parses a string containing comma separated ranges to a list.
Example: Turns 1-3,10,20-22 into [1, 2, 3, 10, 20, 21, 22]
Parameters: | s – comma separated ranges |
---|---|
Returns: | list of ints |