1 // ***************************************************************************
2 // SamSequence.cpp (c) 2010 Derek Barnett
3 // Marth Lab, Department of Biology, Boston College
4 // All rights reserved.
5 // ---------------------------------------------------------------------------
6 // Last modified: 23 December 2010 (DB)
7 // ---------------------------------------------------------------------------
8 // Provides functionality for querying/manipulating sequence data
9 // *************************************************************************
11 #include <api/SamSequence.h>
12 using namespace BamTools;
16 SamSequence::SamSequence(const string& name)
26 SamSequence::SamSequence(const SamSequence& other)
28 , Length(other.Length)
29 , AssemblyID(other.AssemblyID)
30 , Checksum(other.Checksum)
32 , Species(other.Species)
36 SamSequence::~SamSequence(void) {
41 void SamSequence::Clear(void) {
50 // convenience methods to check if SamSequence contains these values:
51 bool SamSequence::HasName(void) const { return (!Name.empty()); }
52 bool SamSequence::HasLength(void) const { return (!Length.empty()); }
53 bool SamSequence::HasAssemblyID(void) const { return (!AssemblyID.empty()); }
54 bool SamSequence::HasChecksum(void) const { return (!Checksum.empty()); }
55 bool SamSequence::HasURI(void) const { return (!URI.empty()); }
56 bool SamSequence::HasSpecies(void) const { return (!Species.empty()); }