|
IntaRNA 3.4.1
RNA-RNA interaction prediction | C++ API
|
#include <RnaSequence.h>

Public Types | |
| typedef std::string | String_type |
| type for sequence string representation | |
| typedef short | Code_type |
| typedef std::vector< Code_type > | CodeSeq_type |
| type for sequence integer encoded representation | |
Public Member Functions | |
| RnaSequence (const std::string &id, const std::string &seqString, const long idxPos0=1, const size_t seqNumber=1) | |
| virtual | ~RnaSequence () |
| const std::string & | getId () const |
| const size_t | getSeqNumber () const |
| size_t | size () const |
| long | getInOutIndex (const size_t i) const |
| size_t | getIndex (const long i) const |
| size_t | getReversedIndex (const size_t i) const |
| const String_type & | asString () const |
| const CodeSeq_type & | asCodes () const |
| bool | isAmbiguous () const |
| bool | isAmbiguous (const size_t i) const |
| const bool | operator== (const RnaSequence &rna2) const |
Static Public Member Functions | |
| static String_type | getUpperCase (const std::string &seqString) |
| static CodeSeq_type | getCodeForString (const String_type &seqString) |
| static Code_type | getCodeForChar (const char nucleotide) |
| static bool | isValidSequence (const std::string &sequence) |
| static bool | isValidSequenceIUPAC (const std::string &sequence) |
| static bool | areComplementary (const RnaSequence &s1, const RnaSequence &s2, const size_t p1, const size_t p2) |
| static bool | isGU (const RnaSequence &s1, const RnaSequence &s2, const size_t p1, const size_t p2) |
Static Public Attributes | |
| static const std::string | SequenceAlphabetIUPAC |
| static const std::string | SequenceAlphabet |
| static const size_t | lastPos |
Protected Attributes | |
| std::string | id |
| ID of this sequence. | |
| String_type | seqString |
| The sequence's string representation. | |
| CodeSeq_type | seqCode |
| Integer encoding of the sequence. | |
| bool | ambiguous |
| Whether or not the sequence contains ambiguous nucleotide encodings. | |
| long | idxPos0 |
| Input/output index of the first sequence position. | |
| size_t | seqNumber |
Static Protected Attributes | |
| static std::locale | codeLocale |
| the locale to use for integer encoding | |
| static int | bpGUcodes [] |
| codes for G and U to check for GU base pairs | |
Friends | |
| std::ostream & | operator<< (std::ostream &out, const RnaSequence &rna) |
Represents an RNA sequence within IntaRNA and holds all necessary utility functions.
The integer sequence encoding uses the Vienna RNA package encoding functions.
| typedef short IntaRNA::RnaSequence::Code_type |
type for integer encoding of a single sequence letter (currently same as in Vienna package)
| typedef std::vector<Code_type> IntaRNA::RnaSequence::CodeSeq_type |
type for sequence integer encoded representation
| typedef std::string IntaRNA::RnaSequence::String_type |
type for sequence string representation
|
inline |
Creates a sequence.
| id | the name of the sequence |
| seqString | the nucleotide string encoding the sequence |
| idxPos0 | input/output index of the first sequence position |
| seqNumber | index of the sequence among the respective sequence set in this call. relevant for accessibility parsing |
|
inlinevirtual |
Destruction and garbage collection
|
inlinestatic |
Whether or not two positions of two RNAs are complementary, ie. can form a base pair
| s1 | first RNA |
| s2 | second RNA |
| p1 | position within s1 |
| p2 | position within s2 |
|
inline |
Access to the sequence in integer coding using the Vienna RNA package encoding.
|
inline |
Access to the sequence in character encoding.
|
inlinestatic |
Utility function that converts a nucleotide's char representation into its integer encoding.
NOTE: encoding covers only upper case characters! Otherwise an exception is raised.
| nucleotide | the char to encode |
| std::runtime_error | if an unsupported nucleotide character is given |
|
inlinestatic |
Utility function that converts a sequence's string representation into its integer encoding
NOTE: encoding covers only upper case characters! Otherwise an exception is raised.
| seqString | the string to encode |
| std::runtime_error | if an unsupported nucleotide character is given |
|
inline |
Access to the sequence's ID.
|
inline |
Provides the internal sequence position of an input/output index given that the first position represents idxPos0.
| i | the input/output index of interest |
|
inline |
Provides the input/output index of a given sequence position.
| i | the position of interest |
|
inline |
Provides the reverse index of a given sequence position.
| i | the index of interest |
|
inline |
Access to the sequence's index among the respective input sequence set of the call arguments
|
inlinestatic |
Utility function that converts a string into the internal sequence's string representation. This covers an upper case conversion.
| seqString | sequence string |
|
inline |
Whether or not the sequence contains ambiguous nucleotide encodings.
|
inline |
Whether or not a specific sequence position shows an ambiguous nucleotide encoding.
| i | the sequence position of interest |
|
inlinestatic |
Whether or not two positions of two RNAs are forming a GU base pair
| s1 | first RNA |
| s2 | second RNA |
| p1 | position within s1 |
| p2 | position within s2 |
|
inlinestatic |
Utility function that tests whether or not a given sequence is a valid RNA sequence
|
inlinestatic |
Utility function that tests whether or not a given sequence is a valid RNA sequence according to IUPAC encoding
|
inline |
Checks for equality
| rna2 | the RnaSequence to compare to |
|
inline |
Access to the length of the sequence.
|
friend |
prints the sequence id and the sequence to stream
| out | the ostream to write to |
| rna | the RnaSequence object to add |
|
protected |
Whether or not the sequence contains ambiguous nucleotide encodings.
|
staticprotected |
codes for G and U to check for GU base pairs
|
staticprotected |
the locale to use for integer encoding
|
protected |
ID of this sequence.
|
protected |
Input/output index of the first sequence position.
|
static |
constant that serves as a placeholder for the last position within a sequence independent of its real size
|
protected |
Integer encoding of the sequence.
|
protected |
index of the sequence within the overall input (1-based). relevant for reading accessibility files
|
protected |
The sequence's string representation.
|
static |
Allowed nucleotide single letter character alphabet (uppercase only)
|
static |
Allowed nucleotide single letter character alphabet according to IUPAC codes and their lower case variants.