33 #ifndef OBJTOOLS_READERS___BEDREADER__HPP
34 #define OBJTOOLS_READERS___BEDREADER__HPP
88 void Reset() { m_Records.clear(); };
91 const vector<CRawBedRecord>&
Records()
const {
return m_Records; };
92 bool HasData()
const {
return (!m_Records.empty()); };
126 fThreeFeatFormat = 1<<8,
127 fDirectedFeatureModel = 1<<9,
129 fAddDefaultColumns = 1<<11,
170 virtual bool xDetermineLikelyColumnCount(
174 bool xParseTrackLine(
175 const string&)
override;
182 bool xParseFeatureAutoSql(
187 bool xParseFeatureUserFormat(
192 bool xParseFeatureThreeFeatFormat(
197 bool xParseFeatureGeneModelFormat(
202 bool xAppendFeatureChrom(
208 bool xAppendFeatureThick(
214 bool xAppendFeatureBlock(
238 void xSetFeatureLocation(
241 void xSetFeatureLocationChrom(
244 void xSetFeatureLocationGene(
247 void xSetFeatureLocationThick(
250 void xSetFeatureLocationCds(
253 void xSetFeatureLocationBlock(
256 void xSetFeatureLocationRna(
259 void xSetFeatureIdsChrom(
263 void xSetFeatureIdsGene(
267 void xSetFeatureIdsThick(
271 void xSetFeatureIdsCds(
275 void xSetFeatureIdsBlock(
279 void xSetFeatureIdsRna(
283 void xSetFeatureBedData(
287 void xSetFeatureTitle(
290 void xSetFeatureScore(
293 void xSetFeatureColor(
298 void xSetFeatureColorFromItemRgb(
302 void xSetFeatureColorFromScore(
305 void xSetFeatureColorByStrand(
310 void xSetFeatureColorDefault(
313 bool xContainsThickFeature(
316 bool xContainsBlockFeature(
319 bool xContainsRnaFeature(
322 bool xContainsCdsFeature(
328 virtual void xAssignBedColumnCount(
331 void xSetFeatureDisplayData(
335 void xPostProcessAnnot(
350 static void xCleanColumnValues(
CReaderBase implementation that reads BED data files, either a single object or all objects found.
unique_ptr< CBedAutoSql > mpAutoSql
unique_ptr< CLinePreBuffer > mLinePreBuffer
bool mAssumeErrorsAreRecordLevel
unsigned int m_CurBatchSize
vector< string >::size_type mValidColumnCount
const unsigned int m_MaxBatchSize
unsigned int m_CurrentFeatureCount
NStr::TSplitFlags mColumnSplitFlags
vector< string >::size_type mRealColumnCount
CRef< CSeq_interval > m_pInterval
vector< CRawBedRecord > m_Records
const vector< CRawBedRecord > & Records() const
void AddRecord(CRawBedRecord &record)
Defines and provides stubs for a general interface to a variety of file readers.
vector< TReaderLine > TReaderData
Abstract base class for lightweight line-by-line reading.
Include a standard set of the NCBI C++ Toolkit most basic headers.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define END_SCOPE(ns)
End the previously defined scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define BEGIN_SCOPE(ns)
Define a new scope.
IO_PREFIX::ostream CNcbiOstream
Portable alias for ostream.
IO_PREFIX::istream CNcbiIstream
Portable alias for istream.
int TSplitFlags
Bitwise OR of ESplitFlags.
#define NCBI_XOBJREAD_EXPORT
ENa_strand
strand of nucleic acid
static SLJIT_INLINE sljit_ins lr(sljit_gpr dst, sljit_gpr src)
void Dump(CSplitCacheApp *app, const C &obj, ESerialDataFormat format, const string &key, const string &suffix=kEmptyStr)