View source: R/classify_simluated_samples.R
classify_simulated_samples | R Documentation |
Get classification of each mutation using Bayes' Theorem.
classify_simulated_samples(samples, signatures, signature.names = c())
samples |
List of mutation samples, each coming from a different mutational signature |
signatures |
List of the mutational signature that each sample came from. Each element should correspond an element in argument samples at the same index. |
signature.names |
Vector of the signature names. Each element should correspond an element in argument signatures at the same index. |
A data frame with the classification of each mutation in the samples
library(MutationalPatterns) library(tidyverse) # Load in signatures cosmic.sigs <- get_known_signatures() cosmic.sig4 <- as.matrix(cosmic.sigs[,4]) ffpe.sig <- get_ffpe_signature() # Create samples sample.sig4 <- create_signature_sample_vector(cosmic.sig4, 100) sample.ffpe <- create_signature_sample_vector(ffpe.sig, 100) samples <- list(sample.sig4, sample.ffpe) signatures <- list(cosmic.sig4, ffpe.sig) classify_simulated_samples(samples, signatures) classify_simulated_samples(samples, signatures, c("SBS4", "FFPE"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.