vg
tools for working with variation graphs
Classes | Functions
gafkluge Namespace Reference

Classes

struct  GafRecord
 
struct  GafStep
 

Functions

std::string int_to_string (int64_t i)
 
int64_t string_to_int (const std::string &s)
 
bool is_missing (const std::string &s)
 
bool is_missing (int64_t i)
 
void parse_gaf_record (const std::string &gaf_line, GafRecord &gaf_record)
 
void for_each_cs (const GafRecord &gaf_record, std::function< void(const std::string &)> fn)
 
void for_each_cg (const GafRecord &gaf_record, std::function< void(const char &, const size_t &)> fn)
 
void for_each_cigar (const GafRecord &gaf_record, std::function< void(const char &, const size_t &, const std::string &, const std::string &)> fn)
 
std::ostream & operator<< (std::ostream &os, const gafkluge::GafStep &gaf_step)
 
std::ostream & operator<< (std::ostream &os, const gafkluge::GafRecord &gaf_record)
 

Function Documentation

◆ for_each_cg()

void gafkluge::for_each_cg ( const GafRecord gaf_record,
std::function< void(const char &, const size_t &)>  fn 
)
inline

◆ for_each_cigar()

void gafkluge::for_each_cigar ( const GafRecord gaf_record,
std::function< void(const char &, const size_t &, const std::string &, const std::string &)>  fn 
)
inline

◆ for_each_cs()

void gafkluge::for_each_cs ( const GafRecord gaf_record,
std::function< void(const std::string &)>  fn 
)
inline

◆ int_to_string()

std::string gafkluge::int_to_string ( int64_t  i)
inline

◆ is_missing() [1/2]

bool gafkluge::is_missing ( const std::string &  s)
inline

◆ is_missing() [2/2]

bool gafkluge::is_missing ( int64_t  i)
inline

◆ operator<<() [1/2]

std::ostream& gafkluge::operator<< ( std::ostream &  os,
const gafkluge::GafRecord gaf_record 
)
inline

Write a GAF record to a stream

◆ operator<<() [2/2]

std::ostream& gafkluge::operator<< ( std::ostream &  os,
const gafkluge::GafStep gaf_step 
)
inline

◆ parse_gaf_record()

void gafkluge::parse_gaf_record ( const std::string &  gaf_line,
GafRecord gaf_record 
)
inline

Parse a single GAF record

◆ string_to_int()

int64_t gafkluge::string_to_int ( const std::string &  s)
inline