vg
tools for working with variation graphs
Namespaces | Functions
alignment_io.cpp File Reference
#include "vg/io/alignment_io.hpp"
#include "vg/io/gafkluge.hpp"
#include "vg/io/edit.hpp"
#include <sstream>
#include <regex>
#include <cmath>

Namespaces

 vg
 
 vg::io
 

Functions

bool vg::io::get_next_record_from_gaf (function< size_t(nid_t)> node_to_length, function< string(nid_t, bool)> node_to_sequence, htsFile *fp, kstring_t &s_buffer, gafkluge::GafRecord &record)
 
bool vg::io::get_next_interleaved_record_pair_from_gaf (function< size_t(nid_t)> node_to_length, function< string(nid_t, bool)> node_to_sequence, htsFile *fp, kstring_t &s_buffer, gafkluge::GafRecord &record1, gafkluge::GafRecord &record2)
 
size_t vg::io::gaf_unpaired_for_each (function< size_t(nid_t)> node_to_length, function< string(nid_t, bool)> node_to_sequence, const string &filename, function< void(Alignment &)> lambda)
 
size_t vg::io::gaf_unpaired_for_each (const HandleGraph &graph, const string &filename, function< void(Alignment &)> lambda)
 
size_t vg::io::gaf_paired_interleaved_for_each (function< size_t(nid_t)> node_to_length, function< string(nid_t, bool)> node_to_sequence, const string &filename, function< void(Alignment &, Alignment &)> lambda)
 
size_t vg::io::gaf_paired_interleaved_for_each (const HandleGraph &graph, const string &filename, function< void(Alignment &, Alignment &)> lambda)
 
size_t vg::io::gaf_unpaired_for_each_parallel (function< size_t(nid_t)> node_to_length, function< string(nid_t, bool)> node_to_sequence, const string &filename, function< void(Alignment &)> lambda, uint64_t batch_size)
 
size_t vg::io::gaf_unpaired_for_each_parallel (const HandleGraph &graph, const string &filename, function< void(Alignment &)> lambda, uint64_t batch_size)
 
size_t vg::io::gaf_paired_interleaved_for_each_parallel (function< size_t(nid_t)> node_to_length, function< string(nid_t, bool)> node_to_sequence, const string &filename, function< void(Alignment &, Alignment &)> lambda, uint64_t batch_size)
 
size_t vg::io::gaf_paired_interleaved_for_each_parallel (const HandleGraph &graph, const string &filename, function< void(Alignment &, Alignment &)> lambda, uint64_t batch_size)
 
size_t vg::io::gaf_paired_interleaved_for_each_parallel_after_wait (function< size_t(nid_t)> node_to_length, function< string(nid_t, bool)> node_to_sequence, const string &filename, function< void(Alignment &, Alignment &)> lambda, function< bool(void)> single_threaded_until_true, uint64_t batch_size)
 
size_t vg::io::gaf_paired_interleaved_for_each_parallel_after_wait (const HandleGraph &graph, const string &filename, function< void(Alignment &, Alignment &)> lambda, function< bool(void)> single_threaded_until_true, uint64_t batch_size)
 
gafkluge::GafRecord vg::io::alignment_to_gaf (function< size_t(nid_t)> node_to_length, function< string(nid_t, bool)> node_to_sequence, const Alignment &aln, const handlegraph::NamedNodeBackTranslation *translate_through, bool cs_cigar, bool base_quals, bool frag_links)
 
gafkluge::GafRecord vg::io::alignment_to_gaf (const HandleGraph &graph, const Alignment &aln, const handlegraph::NamedNodeBackTranslation *translate_through, bool cs_cigar, bool base_quals, bool frag_links)
 
void vg::io::gaf_to_alignment (function< size_t(nid_t)> node_to_length, function< string(nid_t, bool)> node_to_sequence, const gafkluge::GafRecord &gaf, Alignment &aln)
 Convert a GAF alignment into a vg Alignment. The alignment must be in node ID space. More...
 
void vg::io::gaf_to_alignment (const HandleGraph &graph, const gafkluge::GafRecord &gaf, Alignment &aln)
 Convert a GAF alignment into a vg Alignment. The alignment must be in node ID space. More...
 
short vg::io::quality_char_to_short (char c)
 
char vg::io::quality_short_to_char (short i)
 
void vg::io::alignment_quality_short_to_char (Alignment &alignment)
 
string vg::io::string_quality_short_to_char (const string &quality)
 
void vg::io::alignment_quality_char_to_short (Alignment &alignment)
 
string vg::io::string_quality_char_to_short (const string &quality)