Representation of a subchain.
More...
#include <recombinator.hpp>
Representation of a subchain.
◆ kmer_type
◆ subchain_t
Subchain types.
Enumerator |
---|
normal | Normal subchain with two boundary nodes.
|
prefix | A prefix with only an end node.
|
suffix | A suffix with only a start node.
|
full_haplotype | A full haplotype with no boundary nodes.
|
◆ end_handle()
handle_t vg::Haplotypes::Subchain::end_handle |
( |
| ) |
const |
|
inline |
Returns the end node as a GBWTGraph handle.
◆ has_end()
bool vg::Haplotypes::Subchain::has_end |
( |
| ) |
const |
|
inline |
Returns true
if the subchain has an end node.
◆ has_start()
bool vg::Haplotypes::Subchain::has_start |
( |
| ) |
const |
|
inline |
Returns true
if the subchain has a start node.
◆ simple_sds_load()
void vg::Haplotypes::Subchain::simple_sds_load |
( |
std::istream & |
in | ) |
|
Loads the object from a stream in the simple-sds format.
◆ simple_sds_serialize()
void vg::Haplotypes::Subchain::simple_sds_serialize |
( |
std::ostream & |
out | ) |
const |
Serializes the object to a stream in the simple-sds format.
◆ simple_sds_size()
size_t vg::Haplotypes::Subchain::simple_sds_size |
( |
| ) |
const |
Returns the size of the object in elements.
◆ start_handle()
handle_t vg::Haplotypes::Subchain::start_handle |
( |
| ) |
const |
|
inline |
Returns the start node as a GBWTGraph handle.
◆ to_string()
std::string vg::Haplotypes::Subchain::to_string |
( |
| ) |
const |
Returns a string representation of the type and the boundary nodes.
◆ end
gbwt::node_type vg::Haplotypes::Subchain::end |
◆ kmers
std::vector<std::pair<kmer_type, size_t> > vg::Haplotypes::Subchain::kmers |
A vector of distinct kmers. For each kmer, list the kmer itself and the number of haplotypes it appears in.
◆ kmers_present
sdsl::bit_vector vg::Haplotypes::Subchain::kmers_present |
◆ sequences
Sequences as (GBWT sequence id, offset in the relevant node).
◆ start
gbwt::node_type vg::Haplotypes::Subchain::start |
Boundary nodes, or gbwt::ENDMARKER
if not present.
◆ type
The type of this subchain.
The documentation for this struct was generated from the following files: