|
LocARNA-2.0.0
|
represent sparsified data of RNA ensemble extended by in loop probabilities More...
#include <ext_rna_data.hh>


Public Member Functions | |
| ExtRnaData (const RnaEnsemble &rna_ensemble, double p_bpcut, double p_bpilcut, double p_uilcut, double max_bps_length_ratio, double max_uil_length_ratio, double max_bpil_length_ratio, const PFoldParams &pfoldparams) | |
| Construct from RnaEnsemble with cutoff probability. More... | |
| ExtRnaData (const std::string &filename, double p_bpcut, double p_bpilcut, double p_uilcut, double max_bps_length_ratio, double max_uil_length_ratio, double max_bpil_length_ratio, const PFoldParams &pfoldparams) | |
| Construct from input file. More... | |
| ~ExtRnaData () | |
| destructor | |
| double | arc_in_loop_cutoff_prob () const |
| Get base pair in loop cutoff probability. More... | |
| double | arc_in_loop_prob (pos_type i, pos_type j, pos_type p, pos_type q) const |
| Get base pair in loop probability. More... | |
| double | arc_external_prob (pos_type i, pos_type j) const |
| Get base pair in loop probability. More... | |
| double | unpaired_in_loop_cutoff_prob () const |
| Get unpaired base in loop cutoff probability. More... | |
| double | unpaired_in_loop_prob (pos_type k, pos_type p, pos_type q) const |
| Get base pair in loop probability. More... | |
| double | unpaired_external_prob (pos_type k) const |
| Get base pair in loop probability. More... | |
| std::ostream & | write_size_info (std::ostream &out) const |
| Write object size information. More... | |
| std::ostream & | write_pp (std::ostream &out, double p_outbpcut=0, double p_outbpilcut=0, double p_outuilcut=0) const |
Public Member Functions inherited from LocARNA::RnaData | |
| RnaData (const RnaEnsemble &rna_ensemble, double p_bpcut, double max_bps_length_ratio, const PFoldParams &pfoldparams) | |
| Construct from RnaEnsemble with cutoff probability. More... | |
| RnaData (const std::string &filename, double p_bpcut, double max_bps_length_ratio, const PFoldParams &pfoldparams) | |
| Construct from file. More... | |
| RnaData (const RnaData &rna_dataA, const RnaData &rna_dataB, const Alignment &alignment, double p_expA, double p_expB, bool only_local=false) | |
| Construct as consensus of two aligned RNAs. More... | |
| virtual | ~RnaData () |
| destructor | |
| const Sequence & | sequence () const |
| Get the multiple alignment as sequence. More... | |
| const MultipleAlignment & | multiple_alignment () const |
| Get the multiple alignment. More... | |
| size_type | length () const |
| Get the sequence length. More... | |
| double | arc_cutoff_prob () const |
| Get base pair cutoff probability. More... | |
| double | arc_prob (pos_type i, pos_type j) const |
| Get arc probability. More... | |
| std::string | mea_structure (double gamma=1.) const |
| maximum expected accuracy structure More... | |
| std::unique_ptr< vrna_plist_t[]> | plist () const |
| Construct plist (pair list of Vienna RNA) More... | |
| double | joint_arc_prob (pos_type i, pos_type j) const |
| Get arc probability. More... | |
| double | stacked_arc_prob (pos_type i, pos_type j) const |
| Get arc probability. More... | |
| double | prob_paired_upstream (pos_type i) const |
| Probability that a position is paired upstream. More... | |
| double | prob_paired_downstream (pos_type i) const |
| Probability that a position is paired downstream. More... | |
| double | prob_unpaired (pos_type i) const |
| Unpaired probability. More... | |
| std::ostream & | write_pp (std::ostream &out, double p_outbpcut=0) const |
| std::ostream & | write_size_info (std::ostream &out) const |
| Write object size information. More... | |
| bool | has_stacking () const |
| Availability of stacking terms. More... | |
| void | set_anchors (const SequenceAnnotation &anchors) |
| Write access to alignment anchors. More... | |
Protected Member Functions | |
| virtual std::istream & | read_pp (std::istream &in) |
| virtual void | init_from_fixed_structure (const RnaStructure &structure, const PFoldParams &pfoldparams) |
| initialize from fixed structure More... | |
| virtual void | init_from_rna_ensemble (const RnaEnsemble &rna_ensemble, const PFoldParams &pfoldparams) |
| initialize from rna ensemble More... | |
| virtual bool | inloopprobs_ok () const |
| check in loop probabilities More... | |
Protected Member Functions inherited from LocARNA::RnaData | |
| RnaData (double p_bpcut, size_t max_bp_span) | |
| Almost empty constructor. More... | |
| const arc_prob_matrix_t & | arc_probs () const |
| arcs with probability above cutoff | |
| bool | read_autodetect (const std::string &filename, const PFoldParams &pfoldparams) |
| read and initialize from file, autodetect format More... | |
| virtual void | read_pp (const std::string &filename) |
| void | read_old_pp (const std::string &filename) |
| void | read_ps (const std::string &filename) |
Friends | |
| class | ExtRnaDataImpl |
Additional Inherited Members | |
Public Types inherited from LocARNA::RnaData | |
| typedef SparseMatrix< double > | arc_prob_matrix_t |
| arc probability matrix | |
| typedef size_t | size_type |
| usual size type | |
Protected Attributes inherited from LocARNA::RnaData | |
| std::unique_ptr< RnaDataImpl > | pimpl_ |
| pointer to corresponding implementation object | |
represent sparsified data of RNA ensemble extended by in loop probabilities
knows sequence, cutoff probability and base pair probabilities greater than the cutoff probability
| LocARNA::ExtRnaData::ExtRnaData | ( | const RnaEnsemble & | rna_ensemble, |
| double | p_bpcut, | ||
| double | p_bpilcut, | ||
| double | p_uilcut, | ||
| double | max_bps_length_ratio, | ||
| double | max_uil_length_ratio, | ||
| double | max_bpil_length_ratio, | ||
| const PFoldParams & | pfoldparams | ||
| ) |
Construct from RnaEnsemble with cutoff probability.
| rna_ensemble | RNA ensemble data |
| p_bpcut | cutoff probability for base pairs |
| p_bpilcut | cutoff probability for base pairs in loops |
| p_uilcut | cutoff probability for unpaired bases in loops |
| pfoldparams | parameters for partition folding |
| LocARNA::ExtRnaData::ExtRnaData | ( | const std::string & | filename, |
| double | p_bpcut, | ||
| double | p_bpilcut, | ||
| double | p_uilcut, | ||
| double | max_bps_length_ratio, | ||
| double | max_uil_length_ratio, | ||
| double | max_bpil_length_ratio, | ||
| const PFoldParams & | pfoldparams | ||
| ) |
Construct from input file.
| filename | input file name |
| p_bpcut | cutoff probability for base pairs |
| p_bpilcut | cutoff probability for base pairs in loops |
| p_uilcut | cutoff probability for unpaired bases in loops |
| pfoldparams | parameters for partition folding |
Get base pair in loop probability.
| i | left sequence position |
| j | right sequence position |
| double LocARNA::ExtRnaData::arc_in_loop_cutoff_prob | ( | ) | const |
Get base pair in loop cutoff probability.
| double LocARNA::ExtRnaData::arc_in_loop_prob | ( | pos_type | i, |
| pos_type | j, | ||
| pos_type | p, | ||
| pos_type | q | ||
| ) | const |
Get base pair in loop probability.
| i | left sequence position of inner base pair |
| j | right sequence position of inner base pair |
| p | left sequence position of closing base pair |
| q | right sequence position of closing base pair |
|
protectedvirtual |
initialize from fixed structure
| structure | fixed structure |
| pfoldparams | folding parameters |
Reimplemented from LocARNA::RnaData.
|
protectedvirtual |
initialize from rna ensemble
| rna_ensemble | rna ensemble |
| pfoldparams | folding parameters |
Reimplemented from LocARNA::RnaData.
|
protectedvirtual |
check in loop probabilities
Reimplemented from LocARNA::RnaData.
|
protectedvirtual |
Read data in pp format 2.0 with in-loop probabilities
| in | input stream |
Reimplemented from LocARNA::RnaData.
| double LocARNA::ExtRnaData::unpaired_external_prob | ( | pos_type | k | ) | const |
Get base pair in loop probability.
| k | sequence position (unpaired base) |
| double LocARNA::ExtRnaData::unpaired_in_loop_cutoff_prob | ( | ) | const |
Get unpaired base in loop cutoff probability.
Get base pair in loop probability.
| k | sequence position (unpaired base) |
| p | left sequence position of closing base pair |
| q | right sequence position of closing base pair |
| std::ostream & LocARNA::ExtRnaData::write_pp | ( | std::ostream & | out, |
| double | p_outbpcut = 0, |
||
| double | p_outbpilcut = 0, |
||
| double | p_outuilcut = 0 |
||
| ) | const |
Write data in extended pp format
| out | output stream |
| p_outbpcut | cutoff probability |
| p_outbpilcut | cutoff probability base pairs in loop |
| p_outuilcut | cutoff probability unpaired in loop |
Writes only base pairs with probabilities greater than p_outbpcut; base pairs in loops, p_outbpilcut; unpaired bases in loops, p_outuilcut
| std::ostream & LocARNA::ExtRnaData::write_size_info | ( | std::ostream & | out | ) | const |
Write object size information.
| out | output stream |
Writes numbers of stored probabilities to stream