View source: R/prepareTximportFiles.R
prepareTximportFiles | R Documentation |
Prepare quant files for tximport
prepareTximportFiles( files, makeNames = c("makeNames", "snakeCase", "camelCase"), exists = TRUE )
files |
|
makeNames |
|
exists |
|
Runs the following internal comments:
Extract sample directory name from quant file using
dirname()
and basename()
.
Autopad zeros, if necessary, via
autopadZeros()
.
Sanitizes names with snakeCase()
.
Sorts files alphabetically.
character
.
Return quant file paths, with valid sample names automatically applied.
Updated 2019-10-09.
files <- c( file.path("salmon", "1-sample-A", "quant.sf"), file.path("salmon", "2-sample-B", "quant.sf") ) print(files) files <- prepareTximportFiles(files, makeNames = "snakeCase", exists = FALSE) print(files)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.