bpp-seq-omics
2.4.1
|
A simple reader implementing the Gene Finding Feature format. More...
#include <Bpp/Seq/Feature/Gff/GffFeatureReader.h>
Public Member Functions | |
GffFeatureReader (std::istream &input) | |
bool | hasMoreFeature () const |
const BasicSequenceFeature | nextFeature () |
void | getAllFeatures (SequenceFeatureSet &features) |
void | getFeaturesOfType (const std::string &type, SequenceFeatureSet &features) |
void | getFeaturesOfSequence (const std::string &seqId, SequenceFeatureSet &features) |
Static Public Member Functions | |
static std::string | toString (const bpp::SequenceFeature &f) |
static void | toString (const bpp::SequenceFeature &f, std::ostream &out) |
Out put a string description of a feature to a stream. More... | |
static void | toString (const bpp::SequenceFeatureSet &fs, std::ostream &out) |
Static Public Attributes | |
static const std::string | GFF_STRAND |
static const std::string | GFF_PHASE = "GFF_PHASE" |
static const std::string | GFF_NAME = "Name" |
static const std::string | GFF_ALIAS = "GFF_ALIAS" |
static const std::string | GFF_PARENT = "Parent" |
static const std::string | GFF_TARGET = "Target" |
static const std::string | GFF_GAP = "Gap" |
static const std::string | GFF_DERIVES_FROM = "GFF_DERIVES_FROM" |
static const std::string | GFF_NOTE = "Note" |
static const std::string | GFF_DBXREF = "Dbxref" |
static const std::string | GFF_ONTOLOGY_TERM = "Ontology_term" |
static const std::string | GFF_IS_CIRCULAR = "Is_circular" |
Private Member Functions | |
void | getNextLine_ () |
Private Attributes | |
std::istream & | input_ |
std::string | nextLine_ |
A simple reader implementing the Gene Finding Feature format.
The reference norm in use is the one of GFF3 http://www.sequenceontology.org/gff3.shtml . This class is a "beta" class, and may undeavour interface changes in the future.
Note that in GFF, coordinates are [a, b] 1-based. They will therefore be converted to [a, b[ 0-based, as specified for the SequenceFeature object.
Definition at line 66 of file GffFeatureReader.h.
|
inline |
Definition at line 88 of file GffFeatureReader.h.
References getNextLine_().
|
inlinevirtual |
Implements bpp::FeatureReader.
Definition at line 98 of file GffFeatureReader.h.
References bpp::SequenceFeatureSet::addFeature(), hasMoreFeature(), and nextFeature().
|
inlinevirtual |
Implements bpp::FeatureReader.
Definition at line 110 of file GffFeatureReader.h.
References bpp::SequenceFeatureSet::addFeature(), bpp::BasicSequenceFeature::getSequenceId(), hasMoreFeature(), and nextFeature().
|
inlinevirtual |
Implements bpp::FeatureReader.
Definition at line 103 of file GffFeatureReader.h.
References bpp::SequenceFeatureSet::addFeature(), bpp::BasicSequenceFeature::getType(), hasMoreFeature(), and nextFeature().
|
private |
Definition at line 68 of file GffFeatureReader.cpp.
References bpp::TextTools::isEmpty().
Referenced by GffFeatureReader().
|
inlinevirtual |
Implements bpp::FeatureReader.
Definition at line 95 of file GffFeatureReader.h.
References nextLine_.
Referenced by getAllFeatures(), getFeaturesOfSequence(), and getFeaturesOfType().
|
virtual |
Implements bpp::FeatureReader.
Definition at line 79 of file GffFeatureReader.cpp.
References bpp::KeyvalTools::multipleKeyvals(), bpp::StringTokenizer::nextToken(), bpp::StringTokenizer::numberOfRemainingTokens(), and bpp::BasicSequenceFeature::setAttribute().
Referenced by getAllFeatures(), getFeaturesOfSequence(), and getFeaturesOfType().
|
static |
f | A sequence feature. |
Definition at line 119 of file GffFeatureReader.cpp.
References bpp::SequenceFeature::getAttribute(), bpp::SequenceFeature::getAttributeList(), bpp::SequenceFeature::getEnd(), bpp::SequenceFeature::getId(), bpp::SequenceFeature::getScore(), bpp::SequenceFeature::getSequenceId(), bpp::SequenceFeature::getSource(), bpp::SequenceFeature::getStart(), bpp::SequenceFeature::getType(), bpp::SequenceFeature::isNegativeStrand(), bpp::SequenceFeature::isStranded(), bpp::VectorTools::paste(), and bpp::TextTools::toString().
Referenced by toString().
|
inlinestatic |
Out put a string description of a feature to a stream.
A end of line character will be appended after the description.
f | A sequence feature. |
out | An output stream. |
Definition at line 132 of file GffFeatureReader.h.
References toString().
|
inlinestatic |
Definition at line 136 of file GffFeatureReader.h.
References bpp::SequenceFeatureSet::getNumberOfFeatures(), and toString().
|
static |
Definition at line 73 of file GffFeatureReader.h.
|
static |
Definition at line 79 of file GffFeatureReader.h.
|
static |
Definition at line 77 of file GffFeatureReader.h.
|
static |
Definition at line 76 of file GffFeatureReader.h.
|
static |
Definition at line 81 of file GffFeatureReader.h.
|
static |
Definition at line 72 of file GffFeatureReader.h.
|
static |
Definition at line 78 of file GffFeatureReader.h.
|
static |
Definition at line 80 of file GffFeatureReader.h.
|
static |
Definition at line 74 of file GffFeatureReader.h.
|
static |
Definition at line 71 of file GffFeatureReader.h.
|
static |
Definition at line 70 of file GffFeatureReader.h.
|
static |
Definition at line 75 of file GffFeatureReader.h.
|
private |
Definition at line 84 of file GffFeatureReader.h.
|
private |
Definition at line 85 of file GffFeatureReader.h.
Referenced by hasMoreFeature().