View source: R/find_signature_name.R
find_signature_name | R Documentation |
Find the cosmic name of the signature that closest resembles a signature
find_signature_name(signature) find_signature_names(signatures)
signature |
A signature matrix |
A string of the most similar signature
library(MutationalPatterns) library(tidyverse) # Load in a signature cosmic.sigs <- get_known_signatures() signature.4 <- as.matrix(cosmic.sigs[,4]) rownames(signature.4) <- get_mutation_types() # Usage find_signature_name(signature.4) # Create matrix with multiple signatures signatures <- cosmic.sigs[,1:3] find_signature_names(cosmic.sigs[,1:3])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.