Represents a SAM sequence entry. More...
#include <SamSequence.h>
Public Member Functions | |
SamSequence (void) | |
default constructor | |
SamSequence (const std::string &name, const int &length) | |
constructs sequence with name and length | |
SamSequence (const std::string &name, const std::string &length) | |
constructs sequence with name and length | |
SamSequence (const SamSequence &other) | |
copy constructor | |
~SamSequence (void) | |
destructor | |
void | Clear (void) |
Clears all data fields. | |
bool | HasAssemblyID (void) const |
Returns true if sequence contains @SQ AS:<AssemblyID> | |
bool | HasChecksum (void) const |
Returns true if sequence contains @SQ M5:<Checksum> | |
bool | HasLength (void) const |
Returns true if sequence contains @SQ LN:<Length> | |
bool | HasName (void) const |
Returns true if sequence contains @SQ SN:<Name> | |
bool | HasSpecies (void) const |
Returns true if sequence contains @SQ SP:<Species> | |
bool | HasURI (void) const |
Returns true if sequence contains @SQ UR:<URI> | |
Public Attributes | |
std::string | AssemblyID |
corresponds to @SQ AS:<AssemblyID> | |
std::string | Checksum |
corresponds to @SQ M5:<Checksum> | |
std::string | Length |
corresponds to @SQ LN:<Length> | |
std::string | Name |
corresponds to @SQ SN:<Name> | |
std::string | Species |
corresponds to @SQ SP:<Species> | |
std::string | URI |
corresponds to @SQ UR:<URI> |
Represents a SAM sequence entry.
Provides direct read/write access to the SAM sequence data fields.
SamSequence::SamSequence | ( | void | ) |
default constructor
SamSequence::SamSequence | ( | const std::string & | name, | |
const int & | length | |||
) |
constructs sequence with name and length
name | desired sequence name | |
length | desired sequence length (numeric value) |
SamSequence::SamSequence | ( | const std::string & | name, | |
const std::string & | length | |||
) |
constructs sequence with name and length
name | desired sequence name | |
length | desired sequence length (string value) |
SamSequence::SamSequence | ( | const SamSequence & | other | ) |
copy constructor
SamSequence::~SamSequence | ( | void | ) |
destructor
void SamSequence::Clear | ( | void | ) |
Clears all data fields.
bool SamSequence::HasAssemblyID | ( | void | ) | const |
Returns true
if sequence contains @SQ AS:<AssemblyID>
bool SamSequence::HasChecksum | ( | void | ) | const |
Returns true
if sequence contains @SQ M5:<Checksum>
bool SamSequence::HasLength | ( | void | ) | const |
Returns true
if sequence contains @SQ LN:<Length>
bool SamSequence::HasName | ( | void | ) | const |
Returns true
if sequence contains @SQ SN:<Name>
bool SamSequence::HasSpecies | ( | void | ) | const |
Returns true
if sequence contains @SQ SP:<Species>
bool SamSequence::HasURI | ( | void | ) | const |
Returns true
if sequence contains @SQ UR:<URI>
corresponds to @SQ AS:<AssemblyID>
corresponds to @SQ M5:<Checksum>
corresponds to @SQ LN:<Length>
Required for valid SAM header.
corresponds to @SQ SN:<Name>
Required for valid SAM header.
corresponds to @SQ SP:<Species>
corresponds to @SQ UR:<URI>