ContextSV 0.0.1
Integrative SV calling.
All Classes Files Functions Variables Typedefs Macros
CNVCaller Class Reference

#include <cnv_caller.h>

Collaboration diagram for CNVCaller:
[legend]

Public Member Functions

 CNVCaller (InputData &input_data)
 
CNVData run ()
 
std::vector< double > calculateLogRRatiosAtSNPS (std::vector< int > snp_positions)
 
double calculateMeanChromosomeCoverage ()
 Calculate the mean chromosome coverage.
 
double calculateWindowLogRRatio (double mean_chr_cov, int start_pos, int end_pos)
 
std::pair< std::vector< int >, std::vector< double > > readSNPBAFs ()
 
std::vector< double > getSNPPopulationFrequencies (std::vector< int > snp_locations)
 
void saveToTSV (std::string filepath, std::vector< int > snp_locations, std::vector< double > bafs, std::vector< double > logr_ratios, std::vector< int > state_sequence)
 

Private Attributes

InputDatainput_data
 
double chr_mean_coverage = 0
 

Constructor & Destructor Documentation

◆ CNVCaller()

CNVCaller::CNVCaller ( InputData input_data)

Member Function Documentation

◆ calculateLogRRatiosAtSNPS()

std::vector< double > CNVCaller::calculateLogRRatiosAtSNPS ( std::vector< int >  snp_positions)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ calculateMeanChromosomeCoverage()

double CNVCaller::calculateMeanChromosomeCoverage ( )

Calculate the mean chromosome coverage.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ calculateWindowLogRRatio()

double CNVCaller::calculateWindowLogRRatio ( double  mean_chr_cov,
int  start_pos,
int  end_pos 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getSNPPopulationFrequencies()

std::vector< double > CNVCaller::getSNPPopulationFrequencies ( std::vector< int >  snp_locations)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ readSNPBAFs()

std::pair< std::vector< int >, std::vector< double > > CNVCaller::readSNPBAFs ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ run()

CNVData CNVCaller::run ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ saveToTSV()

void CNVCaller::saveToTSV ( std::string  filepath,
std::vector< int >  snp_locations,
std::vector< double >  bafs,
std::vector< double >  logr_ratios,
std::vector< int >  state_sequence 
)
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ chr_mean_coverage

double CNVCaller::chr_mean_coverage = 0
private

◆ input_data

InputData* CNVCaller::input_data
private

The documentation for this class was generated from the following files: