File: PbiFilterZmwGroupQuery.h

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 (39 lines) | stat: -rw-r--r-- 977 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
31
32
33
34
35
36
37
38
39
#include <LibBlasrConfig.h>

#ifdef USE_PBBAM
#ifndef PBIFILTER_ZMWGROUPQUERY_H
#define PBIFILTER_ZMWGROUPQUERY_H

#include <memory>

#include <pbbam/PbiFilter.h>
#include <pbbam/internal/QueryBase.h>

namespace PacBio {
namespace BAM {

/// This class operates on a name-sorted BAM file, with each iteration of the query
/// returning each contiguous block of records that share a name.
///
/// \note Iterate over zmws, return vector of subreads of a zmw each time.
///
class PBBAM_EXPORT PbiFilterZmwGroupQuery : public internal::IGroupQuery
{
public:
    PbiFilterZmwGroupQuery(const DataSet& dataset);
    PbiFilterZmwGroupQuery(const PbiFilter& filter, const DataSet& dataset);
    ~PbiFilterZmwGroupQuery(void);

public:
    bool GetNext(std::vector<BamRecord>& records);

private:
    struct PbiFilterZmwGroupQueryPrivate;
    std::unique_ptr<PbiFilterZmwGroupQueryPrivate> d_;
};

}  // namespace BAM
}  // namespace PacBio

#endif  // PBIFILTER_ZMWGROUPQUERY_H
#endif