Definition at line 141 of file GenomeSequenceHelpers.h.
◆ clear()
void PackedRead::clear |
( |
| ) |
|
|
inline |
◆ operator[]()
uint8_t PackedRead::operator[] |
( |
int |
index | ) |
|
|
inline |
◆ set()
void PackedRead::set |
( |
const char * |
rhs, |
|
|
int |
padWithNCount = 0 |
|
) |
| |
Definition at line 56 of file GenomeSequence.cpp.
57{
58 clear();
59
60
61 while (padWithNCount>1)
62 {
63 packedBases.push_back(
66 );
67 padWithNCount -= 2;
68 length+=2;
69 }
70
71
72
73 if (padWithNCount)
74 {
75
76
77 packedBases.push_back(
80 );
81
82 if (*rhs)
83 {
84 length+=2;
85 rhs++;
86 }
87 else
88 {
89 length++;
90 }
91 padWithNCount--;
92 assert(padWithNCount==0);
93 }
94
95
96 while (*rhs && *(rhs+1))
97 {
98 packedBases.push_back(
101 );
102 rhs+=2;
103 length+=2;
104 }
105
106
107
108 if (*rhs)
109 {
110 packedBases.push_back(
112 );
113 length++;
114 }
115 return;
116}
static unsigned char base2int[256+1]
Map ASCII values to a 2 (or 3) bit encoding for the base pair value for just base space (ACTGNactgn).
◆ size()
◆ length
uint32_t PackedRead::length |
◆ packedBases
std::vector<uint8_t> PackedRead::packedBases |
The documentation for this class was generated from the following files: