Write Differential Expression or GO-ORA Results to CSV Files
write_de_results.RdSaves a named list of DE or GO enrichment results into cluster-specific CSV
files. For DE results, each list element is written directly. For GO results,
the GeneRatio column is parsed into numeric numerator/denominator
columns, and results can optionally be split by regulation direction.
Usage
write_de_results(
de_list,
outSubDir,
type = c("DE", "GO"),
split_direction = NULL
)Arguments
- de_list
Named list of data frames (for
type = "DE") orenrichResultobjects / direction-split lists (fortype = "GO").- outSubDir
Character path to the output directory. Created recursively if it does not exist.
- type
Character, one of
"DE"or"GO". Controls output filename suffixes and parsing logic.- split_direction
Logical or
NULL. Required whentype = "GO". IfTRUE, each element ofde_listis expected to be a list with sub-elements$upand$down(each anenrichResult). IfFALSE, elements are singleenrichResultobjects.