bpp-seq3
3.0.0
|
The SequenceWithQualityTools static class. More...
#include <Bpp/Seq/SequenceWithQualityTools.h>
Static Public Member Functions | |
static void | subseq (const SequenceWithQuality &sequence, size_t begin, size_t end, SequenceWithQuality &output) |
Get a sub-sequence. More... | |
static std::unique_ptr< SequenceWithQuality > | subseq (const SequenceWithQuality &sequence, size_t begin, size_t end) |
Get a sub-sequence. More... | |
static std::unique_ptr< SequenceWithQuality > | concatenate (const SequenceWithQuality &seqwq1, const SequenceWithQuality &seqwq2) |
Concatenate two sequences. More... | |
static std::unique_ptr< SequenceWithQuality > | complement (const SequenceWithQuality &sequence) |
Get the complementary sequence of a nucleotide sequence. More... | |
static std::unique_ptr< SequenceWithQuality > | transcript (const SequenceWithQuality &sequence) |
Get the transcription sequence of a DNA sequence. More... | |
static std::unique_ptr< SequenceWithQuality > | reverseTranscript (const SequenceWithQuality &sequence) |
Get the reverse-transcription sequence of a RNA sequence. More... | |
static std::unique_ptr< SequenceWithQuality > | invert (const SequenceWithQuality &sequence) |
Inverse a sequence from 5'->3' to 3'->5' and vice-versa. More... | |
static std::unique_ptr< SequenceWithQuality > | removeGaps (const SequenceWithQuality &seq) |
Remove gaps from a SequenceWithQuality. 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 26 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 42 of file SequenceWithQualityTools.cpp.
References bpp::CruxSymbolListInterface::getAlphabet(), bpp::SequenceWithQuality::getQualities(), 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 16 of file SequenceWithQualityTools.cpp.
References bpp::CruxSymbolListInterface::getAlphabet(), bpp::SimpleCommentable::getComments(), bpp::TemplateCoreSymbolListInterface< T >::getContent(), bpp::AbstractCoreSequence::getName(), and bpp::SequenceWithQuality::getQualities().
|
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 99 of file SequenceWithQualityTools.cpp.
References bpp::SequenceWithQuality::clone(), bpp::TemplateCoreSymbolListInterface< T >::getContent(), and bpp::SequenceWithQuality::getQualities().
|
static |
Remove gaps from a SequenceWithQuality.
seq | The sequence to analyse. |
Definition at line 113 of file SequenceWithQualityTools.cpp.
References bpp::SequenceWithQuality::clone(), bpp::CruxSymbolListInterface::getAlphabet(), bpp::SequenceWithQuality::getQualities(), and bpp::CruxSymbolListInterface::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 81 of file SequenceWithQualityTools.cpp.
References bpp::CruxSymbolListInterface::getAlphabet(), and bpp::SequenceWithQuality::getQualities().
|
inlinestatic |
Get a sub-sequence.
sequence | The sequence to trunc. |
begin | The first position of the subsequence. |
end | The last position of the subsequence. |
Definition at line 66 of file SequenceWithQualityTools.h.
References bpp::CruxSymbolListInterface::getAlphabet(), bpp::SimpleCommentable::getComments(), bpp::AbstractCoreSequence::getName(), and subseq().
|
inlinestatic |
Get a sub-sequence.
sequence | The sequence to trunc. |
begin | The first position of the subsequence. |
end | The last position of the subsequence (included). |
output | A sequence object to be appended with the given subsequence. |
Definition at line 44 of file SequenceWithQualityTools.h.
References bpp::SequenceWithQuality::append(), bpp::SequenceWithQuality::getQuality(), bpp::CruxSymbolListInterface::size(), and bpp::TextTools::toString().
Referenced by subseq().
|
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 66 of file SequenceWithQualityTools.cpp.
References bpp::CruxSymbolListInterface::getAlphabet(), and bpp::SequenceWithQuality::getQualities().
|
staticprivate |
Definition at line 29 of file SequenceWithQualityTools.h.
|
staticprivate |
Definition at line 31 of file SequenceWithQualityTools.h.
|
staticprivate |
Definition at line 30 of file SequenceWithQualityTools.h.
|
staticprivate |
Definition at line 32 of file SequenceWithQualityTools.h.
|
staticprivate |
Definition at line 33 of file SequenceWithQualityTools.h.