#include <surjecting_alignment_emitter.hpp>
|
| | SurjectingAlignmentEmitter (const PathPositionHandleGraph *graph, unordered_set< path_handle_t > paths, unique_ptr< AlignmentEmitter > &&backing, bool prune_suspicious_anchors=false, bool add_graph_alignment_tag=false, bool report_supplementary=false, bool add_off_ref_position_tag=false, bool left_align=false) |
| virtual void | emit_singles (vector< Alignment > &&aln_batch) |
| | Emit a batch of Alignments.
|
| virtual void | emit_mapped_singles (vector< vector< Alignment > > &&alns_batch) |
| | Emit batch of Alignments with secondaries. All secondaries must have is_secondary set already.
|
| virtual void | emit_pairs (vector< Alignment > &&aln1_batch, vector< Alignment > &&aln2_batch, vector< int64_t > &&tlen_limit_batch) |
| virtual void | emit_mapped_pairs (vector< vector< Alignment > > &&alns1_batch, vector< vector< Alignment > > &&alns2_batch, vector< int64_t > &&tlen_limit_batch) |
| virtual void | emit_extra_message (const std::string &tag, std::string &&data) |
| | Emit some extra type-tagged data, if the backing format supports it.
|
An AlignmentEmitter implementation that surjects alignments before emitting them via a backing AlignmentEmitter, which it owns.
◆ SurjectingAlignmentEmitter()
| vg::SurjectingAlignmentEmitter::SurjectingAlignmentEmitter |
( |
const PathPositionHandleGraph * | graph, |
|
|
unordered_set< path_handle_t > | paths, |
|
|
unique_ptr< AlignmentEmitter > && | backing, |
|
|
bool | prune_suspicious_anchors = false, |
|
|
bool | add_graph_alignment_tag = false, |
|
|
bool | report_supplementary = false, |
|
|
bool | add_off_ref_position_tag = false, |
|
|
bool | left_align = false ) |
Surject alignments using the given graph, into the given paths, and send them to the given AlignmentEmitter. Takes ownership of the AlignmentEmitter. Copies the set of paths.
If prune_suspicious_anchors is set, prunes out repetitive-looking anchors when surjecting and lets those parts of reads be realigned.
◆ emit_extra_message()
| void vg::SurjectingAlignmentEmitter::emit_extra_message |
( |
const std::string & | tag, |
|
|
std::string && | data ) |
|
virtual |
Emit some extra type-tagged data, if the backing format supports it.
◆ emit_mapped_pairs()
| void vg::SurjectingAlignmentEmitter::emit_mapped_pairs |
( |
vector< vector< Alignment > > && | alns1_batch, |
|
|
vector< vector< Alignment > > && | alns2_batch, |
|
|
vector< int64_t > && | tlen_limit_batch ) |
|
virtual |
Emit the mappings of a batch of pairs of Alignments. All secondaries must have is_secondary set already. The tlen_limit_batch, if specified, is the maximum pairing distance for each pair to flag properly paired, if the output format cares about such things. TODO: Move to a properly paired annotation that runs with the Alignment.
Both ends of each pair must have the same number of mappings.
◆ emit_mapped_singles()
| void vg::SurjectingAlignmentEmitter::emit_mapped_singles |
( |
vector< vector< Alignment > > && | alns_batch | ) |
|
|
virtual |
Emit batch of Alignments with secondaries. All secondaries must have is_secondary set already.
◆ emit_pairs()
| void vg::SurjectingAlignmentEmitter::emit_pairs |
( |
vector< Alignment > && | aln1_batch, |
|
|
vector< Alignment > && | aln2_batch, |
|
|
vector< int64_t > && | tlen_limit_batch ) |
|
virtual |
Emit a batch of pairs of Alignments. The tlen_limit_batch, if specified, is the maximum pairing distance for ewch pair to flag properly paired, if the output format cares about such things. TODO: Move to a properly paired annotation that runs with the Alignment.
◆ emit_singles()
| void vg::SurjectingAlignmentEmitter::emit_singles |
( |
vector< Alignment > && | aln_batch | ) |
|
|
virtual |
Emit a batch of Alignments.
◆ backing
| unique_ptr<AlignmentEmitter> vg::SurjectingAlignmentEmitter::backing |
|
protected |
◆ paths
| unordered_set<path_handle_t> vg::SurjectingAlignmentEmitter::paths |
|
protected |
◆ surject_subpath_global
| bool vg::SurjectingAlignmentEmitter::surject_subpath_global = true |
Force full length alignment in surjection resolution.
◆ surjector
| Surjector vg::SurjectingAlignmentEmitter::surjector |
|
protected |
The documentation for this class was generated from the following files: