bpp-seq-omics
2.4.1
|
#include <Bpp/Seq/Feature/SequenceFeatureTools.h>
Static Public Member Functions | |
static Sequence * | extract (const Sequence &seq, const SeqRange &range) |
Extract a sub-sequence given a SeqRange. More... | |
static void | extract (const Sequence &seq, const SeqRange &range, Sequence &output) |
Extract a sub-sequence given a SeqRange. More... | |
static unsigned int | getOrfs (const Sequence &seq, SequenceFeatureSet &featSet, const GeneticCode &gCode) |
Get ORF features for a Sequence. More... | |
Definition at line 51 of file SequenceFeatureTools.h.
Extract a sub-sequence given a SeqRange.
The sub-sequence is revese-complemented if SeqRange is in negative strand.
Definition at line 55 of file SequenceFeatureTools.cpp.
References bpp::Range< class >::begin(), bpp::Range< class >::end(), bpp::SequenceTools::invertComplement(), bpp::SeqRange::isNegativeStrand(), bpp::Sequence::size(), and bpp::SequenceTools::subseq().
|
static |
Extract a sub-sequence given a SeqRange.
The sub-sequence is revese-complemented if SeqRange is in negative strand.
seq | The Sequence to trunc. |
range | The SeqRange to extract. |
output | The Sequence object to be filled with the given subsequence oriented according to the SeqRange. |
Definition at line 68 of file SequenceFeatureTools.cpp.
References bpp::Range< class >::begin(), bpp::Range< class >::end(), bpp::SequenceTools::invertComplement(), bpp::SeqRange::isNegativeStrand(), bpp::Sequence::size(), and bpp::SequenceTools::subseq().
|
static |
Get ORF features for a Sequence.
seq | The Sequence where to find ORF. Must be a nucleic sequence. |
featSet | A SequenceFeatureSet to fill with the annotations. |
gCode | The genetic code to use. |
Definition at line 79 of file SequenceFeatureTools.cpp.
References bpp::SequenceFeatureSet::addFeature(), bpp::Sequence::getAlphabet(), bpp::CodonAlphabet::getCodon(), bpp::Sequence::getName(), bpp::GeneticCode::getSourceAlphabet(), bpp::Sequence::getValue(), bpp::AlphabetTools::isNucleicAlphabet(), bpp::GeneticCode::isStart(), bpp::GeneticCode::isStop(), and bpp::Sequence::size().