View source: R/readSampleTsvs.R
readSampleTsvs | R Documentation |
The function searches the provided seqdataDir
for tsv
files corresponding to the provided sampleIds
and returns a
data.frame
containing the metadata for all these samples.
readSampleTsvs(
seqdataDir = "/tungstenfs/groups/gbioinfo/seqdata",
sampleIds,
keepMulti = TRUE,
...
)
seqdataDir |
Character scalar, the path to the directory containing the tsv files. |
sampleIds |
Character vector with sample IDs, which will be matched
against the file names in |
keepMulti |
Logical scalar, indicating whether to keep samples that
match more than one tsv file. If |
... |
Additional arguments that will be passed to |
A data.frame
with metadata for the provided sampleIds
.
Charlotte Soneson
if (requireNamespace("dplyr") && requireNamespace("tidyr")) {
print(readSampleTsvs(seqdataDir = system.file("extdata/readSampleTsvs",
package = "swissknife"),
sampleIds = c("readSampleTsvsEx1",
"readSampleTsvsEx2",
"readSampleTsvsEx3")))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.