NVBIO
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Modules | Classes | Typedefs | Enumerations | Functions
Read data input

Detailed Description

This module contains a series of classes to load and represent read streams. The idea is that a read stream is an object implementing a simple interface, ReadDataStream, which allows to stream through a file or other set of reads in batches, which are represented in memory with an object inheriting from ReadData. There are several kinds of ReadData containers to keep the reads in the host RAM, or in CUDA device memory. Additionally, the same container can be viewed with different ReadDataView's, in order to allow reinterpreting the base arrays as arrays of different types, e.g. to perform vector loads or use LDG.

Modules

 ReadsIODetail
 

Classes

struct  nvbio::io::ReadDataView< IndexIterator, ReadStorageIterator, QualStorageIterator, NameStorageIterator >
 
struct  nvbio::io::ReadData
 
struct  nvbio::io::ReadDataRAM
 
struct  nvbio::io::ReadDataDevice
 
struct  nvbio::io::ReadDataStream
 

Typedefs

typedef ReadDataView< uint32
*, uint32 *, char *, char * > 
nvbio::io::ReadDataCore
 
typedef ReadDataRAM nvbio::io::ReadDataHost
 
typedef ReadDataDevice nvbio::io::ReadDataCUDA
 

Enumerations

enum  nvbio::io::QualityEncoding {
  nvbio::io::Phred = 0, nvbio::io::Phred33 = 1, nvbio::io::Phred64 = 2, nvbio::io::Solexa = 3,
  nvbio::io::Phred = 0, nvbio::io::Phred33 = 1, nvbio::io::Phred64 = 2, nvbio::io::Solexa = 3
}
 
enum  nvbio::io::ReadEncoding { nvbio::io::FORWARD = 0x0001, nvbio::io::REVERSE = 0x0002, nvbio::io::FORWARD_COMPLEMENT = 0x0004, nvbio::io::REVERSE_COMPLEMENT = 0x0008 }
 
enum  nvbio::io::PairedEndPolicy {
  nvbio::io::PE_POLICY_FF = 0, nvbio::io::PE_POLICY_FR = 1, nvbio::io::PE_POLICY_RF = 2, nvbio::io::PE_POLICY_RR = 3,
  nvbio::io::PE_POLICY_FF = 0, nvbio::io::PE_POLICY_FR = 1, nvbio::io::PE_POLICY_RF = 2, nvbio::io::PE_POLICY_RR = 3
}
 

Functions

ReadDataStream * nvbio::io::open_read_file (const char *read_file_name, const QualityEncoding qualities, const uint32 max_reads, const uint32 truncate_read_len, const ReadEncoding flags)
 

Typedef Documentation

typedef ReadDataView<uint32*,uint32*,char*,char*> nvbio::io::ReadDataCore

The core ReadData class

Definition at line 385 of file reads.h.

typedef ReadDataDevice nvbio::io::ReadDataCUDA

Definition at line 487 of file reads.h.

typedef ReadDataRAM nvbio::io::ReadDataHost

Definition at line 486 of file reads.h.

Enumeration Type Documentation

Enumerator
PE_POLICY_FF 
PE_POLICY_FR 
PE_POLICY_RF 
PE_POLICY_RR 
PE_POLICY_FF 
PE_POLICY_FR 
PE_POLICY_RF 
PE_POLICY_RR 

Definition at line 97 of file reads.h.

Enumerator
Phred 

phred quality

Phred33 

phred quality + 33

Phred64 

phred quality + 64

Solexa 

Solexa quality.

Phred 

phred quality

Phred33 

phred quality + 33

Phred64 

phred quality + 64

Solexa 

Solexa quality.

Definition at line 75 of file reads.h.

Enumerator
FORWARD 
REVERSE 
FORWARD_COMPLEMENT 
REVERSE_COMPLEMENT 

Definition at line 87 of file reads.h.

Function Documentation

ReadDataStream * nvbio::io::open_read_file ( const char *  read_file_name,
const QualityEncoding  qualities,
const uint32  max_reads = uint32(-1),
const uint32  max_read_len = uint32(-1),
const ReadEncoding  flags = REVERSE 
)

factory method to open a read file

Parameters
read_file_namethe file to open
qualitiesthe encoding of the qualities
max_readsmaximum number of reads to input
max_read_lenmaximum read length - reads will be truncated
flagsa set of flags indicating which strands to encode in the batch for each read. For example, passing FORWARD | REVERSE_COMPLEMENT will result in a stream containing BOTH the forward and reverse-complemented strands.

Definition at line 45 of file reads.cpp.