#include <MemorySML.h>
Inheritance diagram for mems::MemorySML:


Public Member Functions | |
| virtual void | Clear () |
| Set data structures to default values. | |
| MemorySML * | Clone () const |
| virtual void | Create (const genome::gnSequence &seq, const uint64 seed) |
| Creates a new sorted mer list. | |
| MemorySML (const MemorySML &msa) | |
| MemorySML (const uint8 *table=SortedMerList::BasicDNATable(), const uint32 alpha_bits=DNA_ALPHA_BITS) | |
| Create an empty MemorySML Creates an empty MemorySML with the supplied translation table and alphabet bit size. | |
| virtual void | Merge (SortedMerList &sa, SortedMerList &sa2) |
| Merges two SortedMerLists. | |
| MemorySML & | operator= (const MemorySML &msa) |
| virtual bmer | operator[] (gnSeqI index) |
| Get the mer at the specified index in the sorted mer list. | |
| virtual boolean | Read (std::vector< bmer > &readVector, gnSeqI size, gnSeqI offset=0) |
| Read a range of mers in the sorted mer list. | |
| ~MemorySML () | |
Protected Attributes | |
| std::vector< smlSeqI_t > | positions |
A MemorySML consumes roughly 32 + alpha_bits bits of memory per character in the sequences. For unambiguous DNA sequences 4.25 bytes per base are required.
Definition at line 26 of file MemorySML.h.
|
||||||||||||
|
Create an empty MemorySML Creates an empty MemorySML with the supplied translation table and alphabet bit size. Defaults to DNA settings
Definition at line 20 of file MemorySML.cpp. References mems::SMLHeader::alphabet_bits, mems::SMLHeader::translation_table, mems::uint32, mems::uint8, UINT8_MAX, and mems::SMLHeader::version. Referenced by Clone(). |
|
|
Definition at line 26 of file MemorySML.cpp. |
|
|
Definition at line 40 of file MemorySML.cpp. |
|
|
Set data structures to default values.
Reimplemented from mems::SortedMerList. Definition at line 43 of file MemorySML.cpp. |
|
|
Reimplemented in mems::DNAMemorySML. Definition at line 36 of file MemorySML.cpp. References MemorySML(). |
|
||||||||||||
|
Creates a new sorted mer list. This function enumerates each possible mer of the specified size and sorts them alphabetically in order to construct a sorted mer list.
Reimplemented from mems::SortedMerList. Definition at line 48 of file MemorySML.cpp. References mems::bmer_lessthan(), mems::SortedMerList::FillDnaSeedSML(), mems::SortedMerList::FillSML(), mems::SMLHeader::seed_length, mems::SMLHeader::seed_weight, and mems::uint64. Referenced by mems::GenericMatchList< MatchPtrType >::CreateMemorySMLs(). |
|
||||||||||||
|
Merges two SortedMerLists.
Implements mems::SortedMerList. Definition at line 87 of file MemorySML.cpp. |
|
|
Definition at line 30 of file MemorySML.cpp. References positions. |
|
|
Get the mer at the specified index in the sorted mer list.
Implements mems::SortedMerList. Definition at line 91 of file MemorySML.cpp. References mems::SortedMerList::GetSeedMer(), mems::bmer::mer, and mems::bmer::position. |
|
||||||||||||||||
|
Read a range of mers in the sorted mer list. This function reads a section of data from the sorted mer list starting at 'offset' and continuing for 'size' mers. The mers are placed into readVector. Anything already in readVector is cleared. Returns false if there was a problem completing the read. If the end of the list is reached, all mers which could be read will be placed into readVector and false will be returned
Implements mems::SortedMerList. Definition at line 65 of file MemorySML.cpp. References mems::SortedMerList::GetSeedMer(), mems::bmer::mer, and mems::bmer::position. |
|
|
Definition at line 54 of file MemorySML.h. Referenced by operator=(). |
1.3.6