export_res: Export gene set analysis result

Description Usage Arguments Details See Also Examples

View source: R/export_res.R

Description

Export gene set analysis result.

Usage

1
2
  export_res(ds_gsa_obj, file = "", ..., cutoff = 1, decreasing = FALSE, 
             type = c("name", "size", "DS", "p-value", "FDR", "slice"))

Arguments

ds_gsa_obj

Object returned by ds_gsa function.

file

Either a character string naming a file or a connection open for writing. "" indicates output to the console.

...

Parameters of write.table.

cutoff

threshold for selecting gene set analysis result according to parameter type.

decreasing

Ranking results decreasingly (default) or ascendingly.

type

Opitons for ranking results by gene set name (“name”), gene set size (“size”), value of dynamic slicing statistic ("DS"), p-value ("p-value"), false discovery rate ("FDR") or number of slices ("slice").

Details

The usage of export_res is similar to write.table.

See Also

The ‘R Data Import/Export’ manual.

Examples

1
2
3
4
5
6
7
## Not run: 
ds_gsa_obj <- ds_gsa(expdat, geneset, label, fc, lambda = 1.2, bycol = TRUE,
                 minsize = 15, maxsize = 500, randseed = 11235, rounds = 100)
export_res(ds_gsa_obj, "ds_gsa_res.txt", sep = "\t", type = "DS", cutoff = 0,
           row.names = F, col.names = T, quote = F, append = F)

## End(Not run)

dslice documentation built on Nov. 17, 2018, 9:04 a.m.