export_res {dslice}R Documentation

Export gene set analysis result

Description

Export gene set analysis result.

Usage

  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

## 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)

[Package dslice version 1.2.2 Index]