readSigsAsDf | R Documentation |
Read multiple files outputed my mutSigExtractor into a data frame
readSigsAsDf(dir = NULL, files = NULL, samples.as.rows = T, verbose = T, ...)
dir |
A directory from which to read the signatures/contexts |
files |
Alternatively, a list of file paths can also be specified |
samples.as.rows |
Samples as rows and signatures/contexts as columns? |
verbose |
Show file reading progress? |
... |
Arguments that can be pass to list.files() and read.table() |
A data frame
base_dir <- '/Users/lnguyen/hpc/cog_bioinf/cuppen/project_data/Luan_projects/CHORD/Breast_Organoids/matrices/'
contexts <- list(
snv = readSigsAsDf(paste0(base_dir,'/snv_contexts')),
indel = readSigsAsDf(paste0(base_dir,'/indel')),
sv = readSigsAsDf(paste0(base_dir,'/sv_contexts'))
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.