|
bpp-seq
2.1.0
|
The SequenceWithQualityTools static class. More...
#include <Bpp/Seq/SequenceWithQualityTools.h>
Collaboration diagram for bpp::SequenceWithQualityTools:Static Public Member Functions | |
| static SequenceWithQuality * | subseq (const SequenceWithQuality &sequence, unsigned int begin, unsigned int end) throw (IndexOutOfBoundsException, Exception) |
| Get a sub-sequence. | |
| static SequenceWithQuality * | concatenate (const SequenceWithQuality &seqwq1, const SequenceWithQuality &seqwq2) throw (AlphabetMismatchException, Exception) |
| Concatenate two sequences. | |
| static SequenceWithQuality * | complement (const SequenceWithQuality &sequence) throw (AlphabetException) |
| Get the complementary sequence of a nucleotide sequence. | |
| static SequenceWithQuality * | transcript (const SequenceWithQuality &sequence) throw (AlphabetException) |
| Get the transcription sequence of a DNA sequence. | |
| static SequenceWithQuality * | reverseTranscript (const SequenceWithQuality &sequence) throw (AlphabetException) |
| Get the reverse-transcription sequence of a RNA sequence. | |
| static SequenceWithQuality * | invert (const SequenceWithQuality &sequence) |
| Inverse a sequence from 5'->3' to 3'->5' and vice-versa. | |
| static SequenceWithQuality * | removeGaps (const SequenceWithQuality &seq) |
| Remove gaps from a SequenceWithQuality. | |
| static SequenceWithQuality & | trimLeft (SequenceWithQuality &seq) |
| Trim the left part of the sequence according to quality. | |
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.
| SequenceWithQuality * SequenceWithQualityTools::complement | ( | const SequenceWithQuality & | sequence | ) | throw (AlphabetException) [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().
| SequenceWithQuality * SequenceWithQualityTools::concatenate | ( | const SequenceWithQuality & | seqwq1, |
| const SequenceWithQuality & | seqwq2 | ||
| ) | throw (AlphabetMismatchException, Exception) [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.
| SequenceWithQuality * SequenceWithQualityTools::invert | ( | const SequenceWithQuality & | sequence | ) | [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().
| SequenceWithQuality * SequenceWithQualityTools::removeGaps | ( | const SequenceWithQuality & | seq | ) | [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().
| SequenceWithQuality * SequenceWithQualityTools::reverseTranscript | ( | const SequenceWithQuality & | sequence | ) | throw (AlphabetException) [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().
| SequenceWithQuality * SequenceWithQualityTools::subseq | ( | const SequenceWithQuality & | sequence, |
| unsigned int | begin, | ||
| unsigned int | end | ||
| ) | throw (IndexOutOfBoundsException, Exception) [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.
| SequenceWithQuality * SequenceWithQualityTools::transcript | ( | const SequenceWithQuality & | sequence | ) | throw (AlphabetException) [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().
| SequenceWithQuality & SequenceWithQualityTools::trimLeft | ( | SequenceWithQuality & | seq | ) | [static] |
Trim the left part of the sequence according to quality.
| seq | The sequence to analyse. |
Definition at line 189 of file SequenceWithQualityTools.cpp.
DNA SequenceWithQualityTools::_DNA [static, private] |
Definition at line 62 of file SequenceWithQualityTools.h.
NucleicAcidsReplication bpp::SequenceWithQualityTools::_DNARep [static, private] |
Definition at line 64 of file SequenceWithQualityTools.h.
RNA SequenceWithQualityTools::_RNA [static, private] |
Definition at line 63 of file SequenceWithQualityTools.h.
NucleicAcidsReplication bpp::SequenceWithQualityTools::_RNARep [static, private] |
Definition at line 65 of file SequenceWithQualityTools.h.
NucleicAcidsReplication bpp::SequenceWithQualityTools::_transc [static, private] |
Definition at line 66 of file SequenceWithQualityTools.h.