40 #ifndef _BEDGRAPHFEATUREREADER_H_
41 #define _BEDGRAPHFEATUREREADER_H_
43 #include "../SequenceFeature.h"
44 #include "../FeatureReader.h"
87 }
while(!start && !
input_.eof());
89 throw Exception(
"BedGraphFeatureReader::constructor: Invalid BedGraph file, missing proper header.");
A very simple implementation of the SequenceFeature class.
const std::string & getSequenceId() const
const std::string & getType() const
A simple reader for features in the BedGraph format.
static void toString(const bpp::SequenceFeature &f, std::ostream &out)
Out put a string description of a feature to a stream.
void getAllFeatures(SequenceFeatureSet &features)
static const std::string BED_VALUE
void getFeaturesOfType(const std::string &type, SequenceFeatureSet &features)
static std::string toString(const bpp::SequenceFeature &f)
const BasicSequenceFeature nextFeature()
bool hasMoreFeature() const
static void toString(const bpp::SequenceFeatureSet &fs, std::ostream &out)
BedGraphFeatureReader(std::istream &input)
void getFeaturesOfSequence(const std::string &seqId, SequenceFeatureSet &features)
Interface for feature readers.
A simple ensemble of sequence features.
void addFeature(const SequenceFeature &feature)
Add a feature to the container. The feature will be copied and the copy owned by the container.
size_t getNumberOfFeatures() const
The base interface for sequence features.