File: SoloReadBarcodeStats.h

package info (click to toggle)
rna-star 2.7.8a%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,076 kB
  • sloc: cpp: 20,429; awk: 483; ansic: 470; makefile: 181; sh: 31
file content (27 lines) | stat: -rw-r--r-- 885 bytes parent folder | download
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
#ifndef H_SoloReadBarcodeStats
#define H_SoloReadBarcodeStats
#include "IncludeDefine.h"

class SoloReadBarcodeStats {
public:
    vector<string> names;
    enum {      nNoAdapter,  nNoUMI,    nNoCB,   nNinCB,   nNinUMI,   nUMIhomopolymer,  nTooMany,  nNoMatch,   nMismatchesInMultCB,  nExactMatch,    nMismatchOneWL,   nMismatchToMultWL, nStats};
    uint64 V[nStats];    
    SoloReadBarcodeStats() 
    {
        names={"nNoAdapter", "nNoUMI", "nNoCB", "nNinCB", "nNinUMI", "nUMIhomopolymer","nTooMany","nNoMatch", "nMismatchesInMultCB", "nExactMatch", "nMismatchOneWL", "nMismatchToMultWL"};
        for (uint32 ii=0; ii<nStats; ii++)
            V[ii]=0;
    };
    
    uint64 numInvalidBarcodes()
    {
        uint64 n=0;
        for (uint32 ii=0; ii<9; ii++) //first eight number record all invalid barcodes
            n += V[ii];
        
        return n;
    };
};

#endif