File: PairAlignmentFormatter.hpp

package info (click to toggle)
salmon 0.7.2%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 4,352 kB
  • ctags: 5,243
  • sloc: cpp: 42,341; ansic: 6,252; python: 228; makefile: 207; sh: 190
file content (29 lines) | stat: -rw-r--r-- 728 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
28
29
#ifndef __PAIR_ALIGNMENT_FORMATTER_HPP__
#define __PAIR_ALIGNMENT_FORMATTER_HPP__

#include "RapMapUtils.hpp"

template <typename IndexPtrT>
struct PairAlignmentFormatter {
    PairAlignmentFormatter(IndexPtrT indexIn) : index(indexIn),
    read1Temp(1000, 'A'),
    qual1Temp(1000, '~'),
    read2Temp(1000, 'A'),
    qual2Temp(1000, '~'),
    cigarStr1(buff1, 1000),
    cigarStr2(buff2, 1000) {
    }

    // Data members
    IndexPtrT index;
    std::string read1Temp;
    std::string qual1Temp;
    std::string read2Temp;
    std::string qual2Temp;
    char buff1[1000];
    char buff2[1000];
    rapmap::utils::FixedWriter cigarStr1;
    rapmap::utils::FixedWriter cigarStr2;
};

#endif //__PAIR_ALIGNMENT_FORMATTER_HPP__