bpp-seq
2.2.0
|
The SequenceWithQualityTools static class. More...
#include <Bpp/Seq/SequenceWithQualityTools.h>
Static Public Member Functions | |
static SequenceWithQuality * | subseq (const SequenceWithQuality &sequence, unsigned int begin, unsigned int end) throw (IndexOutOfBoundsException, Exception) |
Get a sub-sequence. More... | |
static SequenceWithQuality * | concatenate (const SequenceWithQuality &seqwq1, const SequenceWithQuality &seqwq2) throw (AlphabetMismatchException, Exception) |
Concatenate two sequences. More... | |
static SequenceWithQuality * | complement (const SequenceWithQuality &sequence) throw (AlphabetException) |
Get the complementary sequence of a nucleotide sequence. More... | |
static SequenceWithQuality * | transcript (const SequenceWithQuality &sequence) throw (AlphabetException) |
Get the transcription sequence of a DNA sequence. More... | |
static SequenceWithQuality * | reverseTranscript (const SequenceWithQuality &sequence) throw (AlphabetException) |
Get the reverse-transcription sequence of a RNA sequence. More... | |
static SequenceWithQuality * | invert (const SequenceWithQuality &sequence) |
Inverse a sequence from 5'->3' to 3'->5' and vice-versa. More... | |
static SequenceWithQuality * | removeGaps (const SequenceWithQuality &seq) |
Remove gaps from a SequenceWithQuality. More... | |
static SequenceWithQuality & | trimLeft (SequenceWithQuality &seq) |
Trim the left part of the sequence according to quality. More... | |
Static Private Attributes | |
static DNA | _DNA |
static RNA | _RNA |
static NucleicAcidsReplication | _DNARep |
static NucleicAcidsReplication | _RNARep |
static NucleicAcidsReplication | _transc |
The SequenceWithQualityTools static class.
Implement methods to manipulate SequencesWithQuality
Definition at line 60 of file SequenceWithQualityTools.h.
|
static |
Get the complementary sequence of a nucleotide sequence.
sequence | The sequence to complement. |
AlphabetException | If the sequence is not a nucleotide sequence. |
Definition at line 100 of file SequenceWithQualityTools.cpp.
References bpp::SymbolList::getContent(), and bpp::NucleicAcidsReplication::translate().
|
static |
Concatenate two sequences.
Sequences must have the same name and alphabets. Only first sequence's commentaries are kept.
seqwq1 | The first SequenceWithQuality. |
seqwq2 | The second SequenceWithQuality. |
AlphabetMismatchException | If the two alphabets do not match. |
Exception | If the sequence names do not match. |
Definition at line 77 of file SequenceWithQualityTools.cpp.
|
static |
Inverse a sequence from 5'->3' to 3'->5' and vice-versa.
ABCDEF becomes FEDCBA, and the sense attribute is changed (may be inhibited).
sequence | The SequenceWithQuality to inverse. |
Definition at line 155 of file SequenceWithQualityTools.cpp.
References bpp::SequenceWithQuality::clone(), bpp::EdSymbolList::getContent(), and bpp::SequenceWithQuality::getQualities().
|
static |
Remove gaps from a SequenceWithQuality.
seq | The sequence to analyse. |
Definition at line 168 of file SequenceWithQualityTools.cpp.
References bpp::SequenceWithQuality::clone(), bpp::EdSymbolList::getAlphabet(), bpp::SequenceWithQuality::getQualities(), bpp::Alphabet::isGap(), bpp::SequenceWithAnnotation::setContent(), bpp::SequenceWithQuality::setQualities(), and bpp::EdSymbolList::size().
|
static |
Get the reverse-transcription sequence of a RNA sequence.
sequence | The SequenceWithQuality to reverse-transcript. |
AlphabetException | If the sequence is not a RNA sequence. |
Definition at line 139 of file SequenceWithQualityTools.cpp.
References bpp::SymbolList::getContent().
|
static |
Get a sub-sequence.
sequence | The sequence to trunc. |
begin | The first position of the subsequence. |
end | The last position of the subsequence. |
IndexOutOfBoundsException,Exception | In case of bad indices. |
Definition at line 54 of file SequenceWithQualityTools.cpp.
|
static |
Get the transcription sequence of a DNA sequence.
sequence | The sequence to transcript. |
AlphabetException | If the sequence is not a DNA sequence. |
Definition at line 124 of file SequenceWithQualityTools.cpp.
References bpp::SymbolList::getContent().
|
static |
Trim the left part of the sequence according to quality.
seq | The sequence to analyse. |
Definition at line 189 of file SequenceWithQualityTools.cpp.
|
staticprivate |
Definition at line 62 of file SequenceWithQualityTools.h.
|
staticprivate |
Definition at line 64 of file SequenceWithQualityTools.h.
|
staticprivate |
Definition at line 63 of file SequenceWithQualityTools.h.
|
staticprivate |
Definition at line 65 of file SequenceWithQualityTools.h.
|
staticprivate |
Definition at line 66 of file SequenceWithQualityTools.h.