00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifdef HAVE_CONFIG_H
00010 #include "config.h"
00011 #endif
00012
00013 #include "libGenome/gnSequence.h"
00014 #include "libMems/DNAMemorySML.h"
00015
00016 using namespace std;
00017 using namespace genome;
00018 namespace mems {
00019
00020 DNAMemorySML::DNAMemorySML(const uint8* table, const uint32 alpha_bits) :
00021 MemorySML( table, alpha_bits )
00022 {}
00023
00024 DNAMemorySML& DNAMemorySML::operator=(const DNAMemorySML& msa ){
00025 MemorySML::operator=(msa);
00026 return *this;
00027 }
00028
00029 DNAMemorySML* DNAMemorySML::Clone() const{
00030 DNAMemorySML *bdsa = new DNAMemorySML();
00031 (*bdsa) = *this;
00032 return bdsa;
00033 }
00034
00035 uint64 DNAMemorySML::GetMer(gnSeqI position) const{
00036 return GetDnaMer( position );
00037 }
00038
00039 uint64 DNAMemorySML::GetSeedMer( gnSeqI offset ) const{
00040 return GetDnaSeedMer( offset );
00041 }
00042
00043 void DNAMemorySML::FillSML(const gnSequence& seq, vector<bmer>& sml_array)
00044 {
00045 FillDnaSML(seq, sml_array);
00046 }
00047
00048 }