C++ reference

May 17, 2021 ยท View on GitHub

Breakpoint detection

Find the breakpoints defining copy number regions from a cells by bins matrix.

Parameter nameDescriptionDefault value
d_matrix_filePath to the counts matrix file, delimiter: ' ', line separator: '\n'""
n_cellsNumber of cells in the input matrix-
n_binsNumber of bins in the input matrix-
min_cellsMinimum number of cells to consider for a bin being a breakpoint4
window_sizeSize of the window used in breakpoint detection10
thresholdBreakpoint calling sensitivity. If -1, stop after computing the LR3
bp_minMinimum number of breakpoints0
bp_limitMaximum number of breakpoints300
compute_lrBoolean indicator of wether the per bin cell-wise breakpoint evidence should be computedTrue
lr_filePath to a matrix containing the evidence for breakpoint at each bin in each cell""
sp_filePath to a vector containing the combined evidence for breakpoint at each bin across all cells""
compute_spBoolean indicator of wether the per bin breakpoint evidence should be computedTrue
evaluate_peaksBoolean indicator of wether to evaluate peaks and call breakpointsTrue
input_breakpoints_filePath to file indicating bins which correspond to known breakpoints that must be included. These may be, for example, the chromosome bin coordinates.""
verbosityVerbosity of the programme, 0 is non-verbose setting, 1 creates the debug files, 2 writes the logs as well0
postfixPostfix to be added to the output files, this is useful when you are running multiple simulations through a workflow management system""
print_precisionThe precision points of the score values to be printed16

Sample run :

$ ./breakpoint_detection --d_matrix_file ./d_mat.txt --n_bins 1000 --n_cells 400 --window_size 10 --threshold 3.0 --bp_limit 300 --verbosity=1 --evaluate_peaks=True

Inference

Finds the maximum a posteriori tree given a cells by regions matrix.

Parameter nameDescriptionDefault value
region_sizes_filePath to the file containing the region sizes, each line contains one region size.""
d_matrix_filePath to the cells by regions counts matrix file, delimiter: ' ', line separator: '\n'""
n_itersNumber of iterations10000
n_cellsNumber of cells in the input matrix-
n_regionsNumber of regions in the input matrix-
ploidyThe ploidy information2 (diploid, human)
lambda_clambda param for the poisson that generates the copy number state of a region0.2
cluster_sizes_filePath to the file containing the cluster sizes, where each line contains one cluster size. This only applies if d_matrix_file is a clusters by regions matrix, where each cluster is a summary of its cells' read counts.""
max_scoringWhether to use max scoring (true/false)."true"
seedSeed-
postfixPostfix to be added to the output files, this is useful when you are running multiple simulations through a workflow management system""
print_precisionThe precision points of the score values to be printed16
----parameters for the random initialised tree---
n_nodesthe number of nodes in the random initialised tree50
lambda_rlambda param for the poisson that generates the number of regions0.1
lambda_clambda param for the poisson that generates the copy number state of a region0.2

Sample run :

$ ./inference --n_cells 400 --n_regions 10 --n_iters 100 --n_nodes 10 --ploidy 2 --verbosity 2 --seed 42 --d_matrix_file ./30_d_mat.txt --region_sizes_file ./30_region_sizes.txt

Simulation

Simulates the count matrix. Outputs the count matrix, region sizes, ground truth CNVs and the tree that generated the data.

Parameter nameDescriptionDefault value
n_binsNumber of bins of the input matrix1000
n_cellsNumber of cells400
n_nodesNumber of nodes of the tree50
n_regionsNumber of regions50
n_itersNumber of iterations10000
n_readsNumber of reads per cell10000
nuOverdispersion parameter1
ploidyThe ploidy information2 (diploid, human)
verbosityVerbosity of the programme, 0 is non-verbose setting, 1 creates the debug files, 2 writes the inference logs as well, 3 writes the tree logs on top0
seedSeed-
postfixPostfix to be added to the output files, this is useful when you are running multiple simulations through a work flow management system""
print_precisionThe precision points of the score values to be printed16

Sample run :

$ ./simulation --n_cells 400 --n_bins 1000 --n_regions 10 --n_nodes 10 --n_reads 100000 --ploidy 2 --verbosity 2  --seed 42 --print_precision 32

Test

Runs the validation tests and writes the results to the standard output and error streams.

Sample run :

$ ./tests