R/compare_results.R
compare_cosmic_v3.RdCompare a result object to COSMIC V3 Signatures; Select exome or genome for SBS and only genome for DBS or Indel classes
compare_cosmic_v3(
result,
variant_class,
sample_type,
metric = "cosine",
threshold = 0.9,
result_name = deparse(substitute(result)),
decimals = 2,
same_scale = FALSE
)A musica_result object.
Compare to SBS, DBS, or Indel
exome (SBS only) or genome
One of "cosine" for cosine similarity or "jsd"
for 1 minus the Jensen-Shannon Divergence. Default "cosine".
threshold for similarity
title for plot user result signatures
Specifies rounding for similarity metric displayed. Default
2.
If TRUE, the scale of the probability for each
signature will be the same. If FALSE, then the scale of the y-axis
will be adjusted for each signature. Default TRUE.
Returns the comparisons
data(res)
compare_cosmic_v3(res, "SBS", "genome", threshold = 0.8)
#> cosine x_sig_index y_sig_index x_sig_name y_sig_name
#> 2 0.9028629 3 8 Signature3 SBS7b
#> 1 0.8877524 3 7 Signature3 SBS7a