Infrared
|
Classes | |
class | BPComp |
Constrain complementarity of the base pair (i,j) More... | |
class | BPEnergy |
Function for Stack Energy model. More... | |
class | DifferentComplClassConstraint |
Parse RNA structure including pseudoknots. More... | |
class | GCCont |
Function for (basepair-wise) BasePair Energy model. More... | |
class | NotBPComp |
Function for (position-wise) GC content. More... | |
class | ParseError |
class | SameComplClassConstraint |
Constrain nucleotides to be in different complementarity classes. More... | |
class | StackEnergy |
Constrain nucleotides to be in the same complementarity class. More... | |
Functions | |
parse_array (structure, *opening="([{<", closing=")]}>") | |
parse (structure, **kwargs) | |
Parse RNA structure, returning list of base pairs. | |
is_complementary (x, y) | |
Check complementarity of nucleotides. | |
invalid_bps (seq, struc) | |
Get invalid base pairs. | |
is_valid (seq, struc) | |
Check whether sequence satisfies complementarity constraints due to structure. | |
structure_to_basepair_dependencies (structure, edges=[]) | |
Convert structure to list of edges in basepair model. | |
structure_to_stacking_dependencies (structure, edges=[]) | |
Convert structure to list of edges in stacking model. | |
GC_content (seq) | |
Compute GC content in a sequence. | |
unique_edges (xs) | |
Make edges unique (considering symmetry). | |
read_inp (inpfh) | |
Read multiple structures from file in inp format. | |
nucleotide_to_value (x) | |
Convert integer (variable value) to nucleotide. | |
value_to_nucleotide (x) | |
Convert integer (variable value) to nucleotide. | |
values_to_seq (xs) | |
Convert list of integers (variable values) to string (sequence) of nucleotides. | |
ass_to_seq (ass) | |
Convert assignment to sequence string. | |
iupacvalues (symbol) | |
set_bpenergy_table (params=def_params_bp) | |
Set the bp energy table for Function BPEnergy. | |
set_stacking_energy_table (params=def_params_stacking) | |
Set the stacking energy table for Function StackEnergy. | |
Variables | |
dict | def_params_bp |
Default parameters for the base pair model (magic params from the Redprint paper) | |
dict | def_params_stacking |
Default parameters for the stacking model (magic params from the Redprint paper) | |
Functionality for RNA-related Infrared applications.
infrared.rna.ass_to_seq | ( | ass | ) |
Convert assignment to sequence string.
ass | assignment |
infrared.rna.GC_content | ( | seq | ) |
Compute GC content in a sequence.
seq | sequence string |
infrared.rna.invalid_bps | ( | seq, | |
struc | |||
) |
Get invalid base pairs.
seq | sequence string |
struc | structure as dot bracket string or base pair list |
infrared.rna.is_complementary | ( | x, | |
y | |||
) |
Check complementarity of nucleotides.
x | nucelotide |
y | nucelotide |
infrared.rna.is_valid | ( | seq, | |
struc | |||
) |
Check whether sequence satisfies complementarity constraints due to structure.
seq | sequence string |
struc | structure as dot bracket string or base pair list |
infrared.rna.iupacvalues | ( | symbol | ) |
infrared.rna.nucleotide_to_value | ( | x | ) |
Convert integer (variable value) to nucleotide.
x | nucleotide or gap, A, C, G, U, T, -, or . |
infrared.rna.parse | ( | structure, | |
** | kwargs | ||
) |
Parse RNA structure, returning list of base pairs.
structure | dot bracket string of RNA structure |
infrared.rna.parse_array | ( | structure, | |
* | opening = "([{<" , |
||
closing = ")]}>" |
|||
) |
infrared.rna.read_inp | ( | inpfh | ) |
Read multiple structures from file in inp format.
inp format is a file format to specify instances for multi-target RNA design, e.g. used in the benchmarks of Modena and RNAblueprint
inpfh | input file handle |
infrared.rna.set_bpenergy_table | ( | params = def_params_bp | ) |
Set the bp energy table for Function BPEnergy.
params | dictionary of parameters or a table of the parameters as expected by _bpenergy |
infrared.rna.set_stacking_energy_table | ( | params = def_params_stacking | ) |
Set the stacking energy table for Function StackEnergy.
params | dictionary of parameters or a table of the parameters as expected by _stackenergy |
infrared.rna.structure_to_basepair_dependencies | ( | structure, | |
edges = [] |
|||
) |
Convert structure to list of edges in basepair model.
Dependencies are appendes to edges
structure | array representation of RNA structure |
edges | edges list of edges [in,out] |
infrared.rna.structure_to_stacking_dependencies | ( | structure, | |
edges = [] |
|||
) |
Convert structure to list of edges in stacking model.
Dependencies are appendes to edges
structure | array representation of RNA structure |
edges | list of edges [in,out] |
infrared.rna.unique_edges | ( | xs | ) |
Make edges unique (considering symmetry).
keeps only one of (x,y) and (y,x), namely (x,y) if x<y
xs | list of edges |
infrared.rna.value_to_nucleotide | ( | x | ) |
Convert integer (variable value) to nucleotide.
x | integer |
infrared.rna.values_to_seq | ( | xs | ) |
Convert list of integers (variable values) to string (sequence) of nucleotides.
xs | list of integers |
dict infrared.rna.def_params_bp |
Default parameters for the base pair model (magic params from the Redprint paper)
dict infrared.rna.def_params_stacking |
Default parameters for the stacking model (magic params from the Redprint paper)