File: SoloBarcode.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-- 913 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 CODE_SoloBarcode
#define CODE_SoloBarcode
#include "IncludeDefine.h"

class SoloBarcode {//complex barcodes
public:
    uint32 mate;//0 or 1
    //array: 0=start, 1=end
    int32 anchorType[2];//0=read start; 1=read end; 2=adapter start; 3=adapter end
    int32 anchorDist[2];//distance to anchor
    
    uint32 adapterLength;//length of the adapter
    
    vector<vector<uint64>> wl;//whitelists, one for each length
    uint64 wlFactor;//factor and modulo for converting each whitelist index into global index
    vector<uint32> wlAdd;//additive for each length
    uint32 minLen;//minimum length for this barcode
    uint32 totalSize;//total size of all whitelists
    
    uint64 ilen, icb;//indexes
    
    bool extractBarcode(string &seqIn, string &qualIn, const uint32 aStart, string &bSeq, string &bQual);
    void sortWhiteList();
    void extractPositionsFromString(string &strIn);
};

#endif