bpp-seq-omics  2.4.1
bpp::SequenceFeatureTools Class Reference

#include <Bpp/Seq/Feature/SequenceFeatureTools.h>

Static Public Member Functions

static Sequenceextract (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...
 

Detailed Description

Definition at line 51 of file SequenceFeatureTools.h.

Member Function Documentation

◆ extract() [1/2]

Sequence * SequenceFeatureTools::extract ( const Sequence seq,
const SeqRange range 
)
static

Extract a sub-sequence given a SeqRange.

The sub-sequence is revese-complemented if SeqRange is in negative strand.

Parameters
seqThe Sequence to trunc.
rangeThe SeqRange to extract.
Returns
A new Sequence object with the given subsequence oriented according to the SeqRange.
Author
Sylvain Gaillard

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().

◆ extract() [2/2]

void SequenceFeatureTools::extract ( const Sequence seq,
const SeqRange range,
Sequence output 
)
static

Extract a sub-sequence given a SeqRange.

The sub-sequence is revese-complemented if SeqRange is in negative strand.

Parameters
seqThe Sequence to trunc.
rangeThe SeqRange to extract.
outputThe Sequence object to be filled with the given subsequence oriented according to the SeqRange.
Author
Sylvain Gaillard

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().

◆ getOrfs()

unsigned int SequenceFeatureTools::getOrfs ( const Sequence seq,
SequenceFeatureSet featSet,
const GeneticCode gCode 
)
static

Get ORF features for a Sequence.

Parameters
seqThe Sequence where to find ORF. Must be a nucleic sequence.
featSetA SequenceFeatureSet to fill with the annotations.
gCodeThe genetic code to use.
Returns
The number of ORF found.
Author
Sylvain Gaillard

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().


The documentation for this class was generated from the following files: