Loading [MathJax]/extensions/tex2jax.js
Sample SNPs
Fast ordered sampling of rows from large text or binary files. Special cases for DNA variant files (.bed, VCF, HapMap, etc).
All Classes Files Functions Variables Pages
Functions
sampleSNPs.cpp File Reference

Sample SNPs. More...

#include <iostream>
#include <string>
#include <vector>
#include <unordered_map>
#include <cmath>
#include "varfiles.hpp"
Include dependency graph for sampleSNPs.cpp:

Functions

void parseCL (int &argc, char **argv, unordered_map< char, string > &cli)
 Command line parser. More...
 
int main (int argc, char *argv[])
 

Detailed Description

Sample SNPs.

Author
Anthony J. Greenberg
Version
0.5

Using the varfiles library to sample SNPs from a variety of file formats.

Function Documentation

◆ parseCL()

void parseCL ( int &  argc,
char **  argv,
unordered_map< char, string > &  cli 
)

Command line parser.

Maps flags to values. Flags assumed to be of the form -x.

Parameters
[in]argcsize of the argv array
[in]argvcommand line input array
[out]climap of tags to values