exportResList | R Documentation |
This function takes a list of objects containing results from
findMarkers()
, edgeR or DESeq2, and save the content
to text file(s).
exportResList(
object,
concatenate = FALSE,
col_anno = NULL,
direction = "both",
prefix = "output",
dir_path = NULL
)
object |
A named list of objects storing outputs returned by
|
concatenate |
Logical scalar indicating whether to concatenate
results stored in a list to a single file. Default is |
col_anno |
A character vector containing the names of the annotation
columns in the results stored in |
direction |
A string indicating the directionality of expression
changes of markers/DEGs used to perform marker gene detection or
differential expression analysis. The string is added to the output file
name. Allowable character values are |
prefix |
A string indicating the prefix of output file. Default is
|
dir_path |
The directory path for exported TSV. The file is exported
to the current working directory when |
When concatenate = TRUE
, the function concatenate the test
statistics from results stored in the list and outputs a single file.
I-Hsuan Lin
library(SingleCellExperiment)
# Load demo dataset
data(sce)
# Use result saved after running findMarkers and 'pval.type = "any"'
# Save results into individual files in the per-session temporary directory
exportResList(metadata(sce)[["findMarkers1"]], dir_path = tempdir())
# Save concatenate result in the per-session temporary directory
exportResList(metadata(sce)[["findMarkers4"]],
concatenate = TRUE,
prefix = "findMarkers4", dir_path = tempdir()
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.