GLnexus
Scalable datastore for population genome sequencing, with on-demand joint genotyping
Main Page
Classes
Files
File List
All
Classes
Functions
Variables
include
compare_iter.h
1
#ifndef GLNEXUS_COMPARE_QUERY_H
2
#define GLNEXUS_COMPARE_QUERY_H
3
4
#include "BCFKeyValueData.h"
5
6
// utilities for comparing two BCF iterators
7
8
// generate a random number in the range [0 .. n-1]
9
int
genRandNumber(
int
n);
10
11
// Generate a number that is one of [0, 1/n, 2/n, 3/n, ... (n-1)/n]
12
double
genRandDouble(
int
n);
13
14
// Compares the two query iterators, and returns:
15
// 1: success
16
// 0: failure, the iterators returned different results
17
// -1: abort, used too much memory
18
int
compare_query(
GLnexus::BCFKeyValueData
&data,
GLnexus::MetadataCache
&cache,
19
const
std::string& sampleset,
const
GLnexus::range
& rng);
20
21
22
#endif
GLnexus::range
Genomic range (chromosome id, begin coordinate, end coordinate)
Definition:
types.h:99
GLnexus::BCFKeyValueData
Definition:
BCFKeyValueData.h:15
GLnexus::MetadataCache
Definition:
data.h:61
Generated by
1.8.7