NVBIO
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Public Types | Public Methods | Static Public Members | Proteced Methods | Protected Members | List of all members
nvbio::io::SequenceDataFile Struct Referenceabstract

Detailed description

abstract file-backed SequenceDataStream

Definition at line 48 of file sequence_priv.h.

#include <sequence_priv.h>

Inheritance diagram for nvbio::io::SequenceDataFile:
nvbio::io::SequenceDataInputStream nvbio::io::SequenceDataFile_BAM nvbio::io::SequenceDataFile_FASTA_gz nvbio::io::SequenceDataFile_FASTQ_parser nvbio::io::SequenceDataFile_SAM nvbio::io::SequenceDataFile_TXT nvbio::io::SequenceDataFile_FASTQ_gz nvbio::io::SequenceDataFile_TXT_gz

Classes

struct  Options
 

Public Types

enum  FileState {
  FILE_NOT_READY, FILE_OPEN_FAILED, FILE_OK, FILE_EOF,
  FILE_STREAM_ERROR, FILE_PARSE_ERROR
}
 

Public Methods

virtual ~SequenceDataFile ()
 
virtual int next (struct SequenceDataEncoder *encoder, const uint32 batch_size, const uint32 batch_bps)
 
virtual bool is_ok (void)
 
- Public Methods inherited from nvbio::io::SequenceDataInputStream
virtual ~SequenceDataInputStream ()
 
virtual bool rewind ()=0
 

Static Public Members

static const uint32 LONG_READ = 32*1024
 

Proteced Methods

 SequenceDataFile (const Options &options)
 
virtual int nextChunk (struct SequenceDataEncoder *encoder, uint32 max_reads, uint32 max_bps)=0
 

Protected Members

Options m_options
 
uint32 m_loaded
 
FileState m_file_state
 

Additional Inherited Members

Member Enumeration Documentation

enum describing various possible file states

Enumerator
FILE_NOT_READY 
FILE_OPEN_FAILED 
FILE_OK 
FILE_EOF 
FILE_STREAM_ERROR 
FILE_PARSE_ERROR 

Definition at line 72 of file sequence_priv.h.

Constructor & Destructor Documentation

nvbio::io::SequenceDataFile::SequenceDataFile ( const Options options)
inlineprotected

Definition at line 88 of file sequence_priv.h.

virtual nvbio::io::SequenceDataFile::~SequenceDataFile ( )
inlinevirtual

virtual destructor

Definition at line 99 of file sequence_priv.h.

Member Function Documentation

virtual bool nvbio::io::SequenceDataFile::is_ok ( void  )
inlinevirtual

returns true if the stream is ready to read from

Implements nvbio::io::SequenceDataInputStream.

Definition at line 107 of file sequence_priv.h.

int nvbio::io::SequenceDataFile::next ( struct SequenceDataEncoder encoder,
const uint32  batch_size,
const uint32  batch_bps 
)
virtual

grab the next batch of reads into a host memory buffer

Implements nvbio::io::SequenceDataInputStream.

Definition at line 44 of file sequence_priv.cpp.

virtual int nvbio::io::SequenceDataFile::nextChunk ( struct SequenceDataEncoder encoder,
uint32  max_reads,
uint32  max_bps 
)
protectedpure virtual

Member Data Documentation

const uint32 nvbio::io::SequenceDataFile::LONG_READ = 32*1024
static

Definition at line 68 of file sequence_priv.h.

FileState nvbio::io::SequenceDataFile::m_file_state
protected

Definition at line 119 of file sequence_priv.h.

uint32 nvbio::io::SequenceDataFile::m_loaded
protected

Definition at line 116 of file sequence_priv.h.

Options nvbio::io::SequenceDataFile::m_options
protected

Definition at line 115 of file sequence_priv.h.


The documentation for this struct was generated from the following files: