CountProcessorCutoff< span > Class Template Reference

#include <CountProcessorCutoff.hpp>

Inheritance diagram for CountProcessorCutoff< span >:
Inheritance graph

Public Types

typedef Kmer< span >::Type Type
- Public Types inherited from CountProcessorAbstract< span >
typedef Kmer< span >::Type Type
- Public Types inherited from ICountProcessor< span >
typedef kmer::impl::Kmer< span >::Type Type

Public Member Functions

 CountProcessorCutoff (size_t nbBanks)
 CountProcessorCutoff (const std::vector< CountProcessorHistogram< span > * > &histogramProcessors)
virtual ~CountProcessorCutoff ()
CountProcessorAbstract< span > * clone ()
void endPass (size_t passId)
bool process (size_t partId, const Type &kmer, const CountVector &count, CountNumber sum)
tools::misc::impl::Properties getProperties () const
- Public Member Functions inherited from CountProcessorAbstract< span >
 CountProcessorAbstract (const std::string &name="processor")
virtual ~CountProcessorAbstract ()
virtual void begin (const Configuration &config)
virtual void end ()
virtual void beginPass (size_t passId)
virtual void finishClones (std::vector< ICountProcessor< span > * > &clones)
virtual void beginPart (size_t passId, size_t partId, size_t cacheSize, const char *name)
virtual void endPart (size_t passId, size_t partId)
virtual std::string getName () const
virtual void setName (const std::string &name)
virtual std::vector< ICountProcessor< span > * > getInstances () const
- Public Member Functions inherited from ICountProcessor< span >
template<typename T >
T * get () const
- Public Member Functions inherited from SmartPointer
void use ()
void forget ()
- Public Member Functions inherited from ISmartPointer
virtual ~ISmartPointer ()

Additional Inherited Members

- Protected Member Functions inherited from SmartPointer
 SmartPointer ()
virtual ~SmartPointer ()

Detailed Description

template<size_t span = KMER_DEFAULT_SPAN>
class gatb::core::kmer::impl::CountProcessorCutoff< span >

The CountProcessorCutoff implementation collects information about the kmers distribution. It feeds a IHistogram instance during the 'process' method.

At the end of the algorithm, it provides information such as the best cutoff (ie a "good" abundance min parameter).

Member Typedef Documentation

typedef Kmer<span>::Type Type


Constructor & Destructor Documentation

CountProcessorCutoff ( size_t  nbBanks)

Constructor for the prototype instance.

CountProcessorCutoff ( const std::vector< CountProcessorHistogram< span > * > &  histogramProcessors)

Constructor for the cloned instances.

virtual ~CountProcessorCutoff ( )


Member Function Documentation

CountProcessorAbstract<span>* clone ( )

Clone the instance. An instance can be cloned N times in order to use the cloned instance in one thread.

the cloned instance.

Implements ICountProcessor< span >.

void endPass ( size_t  passId)

Called just after the mainloop of SortingCountAlgorithm.

Reimplemented from CountProcessorAbstract< span >.

tools::misc::impl::Properties getProperties ( ) const

Get some properties about the count processor.


Reimplemented from CountProcessorAbstract< span >.

bool process ( size_t  partId,
const Type kmer,
const CountVector count,
CountNumber  sum 

Notification that a [kmer,counts] is available and can be handled by the count processor.

[in]partId: index of the current partition
[in]kmer: kmer for which we are receiving counts
[in]count: vector of counts of the kmer, one count per bank
[in]sum: sum of the occurrences for all bank.

Reimplemented from CountProcessorAbstract< span >.

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