33 #ifndef OBJTOOLS_READERS___WIGGLEREADER__HPP
34 #define OBJTOOLS_READERS___WIGGLEREADER__HPP
178 ostr <<
" [CRawWiggleRecord ";
182 ostr <<
"value=" <<
m_value <<
"]" << endl;
208 ostr <<
"[CRawWiggleTrack" << endl;
209 for (vector<CRawWiggleRecord>::const_iterator it =
m_Records.begin();
213 ostr <<
"]" << std::endl;
222 const vector<CRawWiggleRecord>&
Records()
const
301 const string&)
override;
304 xProcessFixedStepData(
305 TReaderData::const_iterator&,
316 TReaderData::const_iterator&,
320 xReadFixedStepDataRaw(
322 TReaderData::const_iterator&,
327 xProcessVariableStepData(
328 TReaderData::const_iterator&,
333 TReaderData::const_iterator&,
337 xGetVariableStepInfo(
342 xReadVariableStepData(
344 TReaderData::const_iterator&,
348 xReadVariableStepDataRaw(
350 TReaderData::const_iterator&,
400 if ( !m_OmitZeros ||
value.m_Value != 0 ) {
401 m_Values.push_back(
value);
408 bool fixed_span)
const;
420 const string& chrom);
423 xValuesAreFromSingleSequence()
const;
CRawWiggleRecord(CSeq_id &id, unsigned int start, unsigned int span, double value)
CRef< CSeq_interval > m_pInterval
void Dump(CNcbiOstream &ostr) const
void Dump(CNcbiOstream &ostr) const
const vector< CRawWiggleRecord > & Records() const
void AddRecord(CRawWiggleRecord record)
vector< CRawWiggleRecord > m_Records
Defines and provides stubs for a general interface to a variety of file readers.
virtual void xProcessData(const TReaderData &, CSeq_annot &)
virtual bool xParseBrowserLine(const string &, CSeq_annot &)
virtual void xPostProcessAnnot(CSeq_annot &)
vector< TReaderLine > TReaderData
virtual bool xParseTrackLine(const string &)
virtual void xGetData(ILineReader &, TReaderData &)
virtual CRef< CSeq_annot > ReadSeqAnnot(CNcbiIstream &istr, ILineErrorListener *pErrors=nullptr)
Read an object from a given input stream, render it as a single Seq-annot.
vector< SValueInfo > TValues
CRef< CSeq_annot > m_Annot
void xAddValue(const SValueInfo &value)
Abstract base class for lightweight line-by-line reading.
Include a standard set of the NCBI C++ Toolkit most basic headers.
unsigned int TSeqPos
Type for sequence locations and lengths.
const string AsFastaString(void) const
void Reset(void)
Reset reference object.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
IO_PREFIX::ostream CNcbiOstream
Portable alias for ostream.
#define NCBI_XOBJREAD_EXPORT
void SetTo(TTo value)
Assign a value to To data member.
const TId & GetId(void) const
Get the Id member data.
void SetId(TId &value)
Assign a value to Id data member.
TFrom GetFrom(void) const
Get the From member data.
void SetFrom(TFrom value)
Assign a value to From data member.
TTo GetTo(void) const
Get the To member data.
unsigned int
A callback function used to compare two keys in a database.
const GenericPointer< typename T::ValueType > T2 value
TSeqPos GetEnd(void) const
bool operator<(const SValueInfo &v) const
int AsByte(double v) const
void SetFirstSpan(TSeqPos span)
void SetFirstValue(double v)
void AddSpan(TSeqPos span)