File: SoloRead.cpp

package info (click to toggle)
rna-star 2.7.11b%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,492 kB
  • sloc: cpp: 21,951; awk: 827; ansic: 457; makefile: 192; sh: 31
file content (22 lines) | stat: -rwxr-xr-x 581 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "SoloRead.h"

SoloRead::SoloRead(Parameters &Pin, int32 iChunkIn) :  iChunk(iChunkIn), P(Pin), pSolo(P.pSolo)
{
    readBar = new SoloReadBarcode(P);
    
    if (pSolo.type==0)
        return;
    if (pSolo.type==pSolo.SoloTypes::CB_samTagOut)
        return;
    
    readFeat = new SoloReadFeature*[pSolo.nFeatures];

    for (uint32 ii=0; ii<pSolo.nFeatures; ii++)
        readFeat[ii] = new SoloReadFeature(pSolo.features[ii], P, iChunk);
};

void SoloRead::readFlagReset()
{
    for (uint32 ii=0; ii<pSolo.nFeatures; ii++)
        readFeat[ii]->readFlag.flag = 0;
};