Description Usage Arguments Value Examples
Computes a distance function on fitting relative copy numbers to whole number absolute values with the given ploidy and cellularity.
1 2 3 4 5 6 7 | absolute_copy_number_distance(
ploidy,
cellularity,
relative_copy_numbers,
weights = NULL,
distance_function = c("MAD", "RMSD")
)
|
ploidy |
the tumour ploidy. |
cellularity |
the cellularity, i.e. the fraction of cells that are from the tumour. |
relative_copy_numbers |
a numeric vector containing relative copy numbers, i.e. ratios of copy numbers to the average copy number. |
weights |
a numeric vector of weights to apply to each copy number value (should be same length as relative_copy_numbers) |
distance_function |
the distance function to use, either "MAD" for the mean absolute difference or "RMSD" for the root mean square difference, where differences are between the fitted absolute copy number values and the nearest whole number. |
the distance in the fitted absolute copy numbers to whole numbers.
1 2 3 | data(copy_number)
copy_number <- copy_number[copy_number$sample == "X17222", ]
absolute_copy_number_distance(3, 0.67, copy_number$segmented)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.