Writes a differential expression result data.frame to a TSV file.
Usage
bb_export_tsv(de_result, path)
Arguments
- de_result
A data.frame with DE results.
- path
Character. File path for the output .tsv file.
Value
The path invisibly.
Examples
de <- data.frame(
gene = paste0("gene", 1:5),
log2fc = rnorm(5),
pvalue = runif(5, 0, 0.1),
padj = runif(5, 0, 0.1)
)
tmp <- tempfile(fileext = ".tsv")
bb_export_tsv(de, tmp)
#> Saved to: /tmp/Rtmp0JZi3Y/file329345ce937f.tsv