Sample SNPs
Fast ordered sampling of rows from large text or binary files. Special cases for DNA variant files (.bed, VCF, HapMap, etc).
|
Sample SNPs. More...
#include <iostream>
#include <string>
#include <vector>
#include <unordered_map>
#include <cmath>
#include "varfiles.hpp"
Functions | |
void | parseCL (int &argc, char **argv, unordered_map< char, string > &cli) |
Command line parser. More... | |
int | main (int argc, char *argv[]) |
Sample SNPs.
Using the varfiles library to sample SNPs from a variety of file formats.
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.
[in] | argc | size of the argv array |
[in] | argv | command line input array |
[out] | cli | map of tags to values |