File: CCSSequence.cpp

package info (click to toggle)
pbseqlib 5.3.4%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 7,020 kB
  • sloc: cpp: 77,246; python: 331; sh: 103; makefile: 42
file content (39 lines) | stat: -rw-r--r-- 1,123 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#include <pbdata/CCSSequence.hpp>

void CCSSequence::Free()
{
    numPasses = 0;
    numConsensusBases = 0;
    SMRTSequence::Free();
    unrolledRead.Free();
}

int CCSSequence::GetStorageSize()
{
    return SMRTSequence::GetStorageSize() + unrolledRead.GetStorageSize();
}

UInt CCSSequence::HoleNumber(void) const { return SMRTSequence::HoleNumber(); }

CCSSequence &CCSSequence::HoleNumber(const UInt holeNumber)
{
    SMRTSequence::HoleNumber(holeNumber);
    unrolledRead.HoleNumber(holeNumber);
    return *this;
}

//
// In the first iteration, Explode simply pulls the subreads out
// that are used in the ccs.   Eventually, it will pull out all
// high-quality subreads.
//
void CCSSequence::Explode(std::vector<SMRTSequence> &subreads)
{
    subreads.resize(numPasses);
    int subreadIndex;
    for (subreadIndex = 0; subreadIndex < numPasses; subreadIndex++) {
        subreads[subreadIndex].ReferenceSubstring(this->unrolledRead, passStartBase[subreadIndex],
                                                  passNumBases[subreadIndex]);
        subreads[subreadIndex].zmwData = unrolledRead.zmwData;
    }
}