vg
tools for working with variation graphs
Loading...
Searching...
No Matches
giraffe_main.cpp File Reference
#include <omp.h>
#include <unistd.h>
#include <getopt.h>
#include <fstream>
#include <iostream>
#include <cassert>
#include <cstring>
#include <ctime>
#include <map>
#include <optional>
#include <vector>
#include <unordered_set>
#include <chrono>
#include <mutex>
#include "subcommand.hpp"
#include "options.hpp"
#include "../snarl_seed_clusterer.hpp"
#include "../mapper.hpp"
#include "../annotation.hpp"
#include <vg/io/vpkg.hpp>
#include <vg/io/stream.hpp>
#include "../hts_alignment_emitter.hpp"
#include "../minimizer_mapper.hpp"
#include "../index_registry.hpp"
#include "../utility.hpp"
#include "../watchdog.hpp"
#include "../crash.hpp"
#include <bdsg/overlays/overlay_helper.hpp>
#include "../gbwtgraph_helper.hpp"
#include <gbwtgraph/gbz.h>
#include <gbwtgraph/minimizer.h>
#include <sys/ioctl.h>

Classes

struct  GiraffeMainOptions
 Options struct for options for the Giraffe driver (i.e. this file). More...
struct  ScoringOptions
 Options struct for scoring-related parameters. Defaults are in aligner.hpp. More...

Functions

std::string strip_suffixes (std::string filename, const std::vector< std::string > &suffixes)
template<typename T>
void enforce_min_max (const T &low, const std::string &low_option, const T &high, const std::string &high_option)
void help_giraffe (char **argv, const BaseOptionGroup &parser, const std::map< std::string, Preset > &presets, bool full_help)
int main_giraffe (int argc, char **argv)

Detailed Description

: G(ir)AF (Graph Alignment Format) Fast Emitter: a fast read-to-haplotypes mapper

Function Documentation

◆ enforce_min_max()

template<typename T>
void enforce_min_max ( const T & low,
const std::string & low_option,
const T & high,
const std::string & high_option )

Make sure that variables set by options independently controlling the min and max of something actually make sense as a min and max.

◆ help_giraffe()

void help_giraffe ( char ** argv,
const BaseOptionGroup & parser,
const std::map< std::string, Preset > & presets,
bool full_help )

◆ main_giraffe()

int main_giraffe ( int argc,
char ** argv )

◆ strip_suffixes()

std::string strip_suffixes ( std::string filename,
const std::vector< std::string > & suffixes )