File: SAMSupplementalQVList.hpp

package info (click to toggle)
pbseqlib 5.3.5%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 7,020 kB
  • sloc: cpp: 77,250; python: 331; sh: 103; makefile: 41
file content (30 lines) | stat: -rw-r--r-- 991 bytes parent folder | download | duplicates (4)
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
#ifndef _BLASR_SAMSUPPLEMENTALQVLIST_HPP_
#define _BLASR_SAMSUPPLEMENTALQVLIST_HPP_

#include <alignment/datastructures/alignmentset/SAMQVConversion.hpp>
#include <pbdata/SMRTSequence.hpp>

class SupplementalQVList
{
public:
    //enum QVList {InsertionQV=0x1, DeletionQV=0x2, SubstitutionQV=0x4, MergeQV=0x8, SubstitutionTag=0x10, DeletionTag=0x20};
    //enum QVIndex {I_InsertionQV=1,I_DeletionQV=2,I_SubstitutionQV=3,I_MergeQV=4,I_SubstitutionTag=5,I_DeletionTag=6};
    //defined in FASTQSequence.
    unsigned int useqv;
    void SetDefaultQV()
    {
        useqv = InsertionQV | DeletionQV | SubstitutionQV | MergeQV | DeletionTag;
    }
    static const char *qvTags[];
    static const char *qvNames[];
    static int nqvTags;
    static int nTags;

    int UseQV(std::vector<std::string> &qvList);
    void FormatQVOptionalFields(SMRTSequence &alignedSubsequence);

    void PrintQVOptionalFields(SMRTSequence &alignedSubsequence, std::ostream &out);
    void clear();
};

#endif