SubcloneSeeker
1.0.0
Subclone deconvolution software framework
|
Encapsulates a reference genome. More...
#include <RefGenome.h>
Public Member Functions | |
int | queryChromID (std::string chrom) |
size_t | queryChromLengthWithID (int chromID) |
size_t | queryGenomeLength () |
size_t | queryChromStartBase (int chromID) |
const std::vector< std::string > & | vec_chroms () |
const std::vector< int > & | vec_chromIDs () |
Static Public Member Functions | |
static RefGenome * | getInstance () |
The method that returns the singleton object for the reference genome. More... | |
Protected Attributes | |
std::map< int, size_t > | _chromLengthMap |
std::vector< std::string > | _chromNames |
std::vector< int > | _chromIDs |
Static Protected Attributes | |
static RefGenome * | _refGenome = NULL |
Encapsulates a reference genome.
It right now has a HG19 reference genome built in, in terms of chromosome length.
|
static |
The method that returns the singleton object for the reference genome.
int RefGenome::queryChromID | ( | std::string | chrom | ) |
returns an integer id for a given chromosome in string. The main purpose for the id representation is to unify different notions of the same chromosome, e.g. "chr10" and "10" will both be mapped to int value 10.
chrom | The string representation of a chromosome, usually read in from a .seg.txt file |
size_t RefGenome::queryChromLengthWithID | ( | int | chromID | ) |
Returns the length of a chromsome
chromID | the integer representation of a chromosome |
size_t RefGenome::queryChromStartBase | ( | int | chromID | ) |
Returns the starting position of a given chromosome, in the context of the entire genome
chromID | the integer representation of a chromosome |
size_t RefGenome::queryGenomeLength | ( | ) |
Returns the length of the entire genome
|
inline |
Returns all the chromosome IDs in the genome
|
inline |
Returns all the chromosomes in the genome
|
protected |
The vector of all chromosomes, in id format
|
protected |
The map between an chromosome id and its length
|
protected |
The vector of all chromosomes, in string format
|
staticprotected |
The singleton object