head-methods: Return the First Part of an Object

Description Usage Arguments Value Examples

Description

Return the first part of the result table in the gessResult, and feaResult objects

Usage

1
2
3
4
5
## S4 method for signature 'gessResult'
head(x, n = 6L, ...)

## S4 method for signature 'feaResult'
head(x, n = 6L, ...)

Arguments

x

an object

n

a single integer. If positive or zero, size for the resulting object is the number of rows for a data frame. If negative, all but the n last number of rows of x.

...

arguments to be passed to or from other methods

Value

data.frame

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
gr <- gessResult(result=dplyr::tibble(pert=letters[seq_len(10)], 
                                      val=seq_len(10)), 
                 query=list(up=c("g1","g2"), down=c("g3","g4")),
                 gess_method="LINCS", refdb="path/to/lincs/db")
head(gr)
fr <- feaResult(result=dplyr::tibble(id=letters[seq_len(10)], 
                                    val=seq_len(10)),
                organism="human", ontology="MF", drugs=c("d1", "d2"), 
                targets=c("t1","t2"))
head(fr)

signatureSearch documentation built on April 16, 2021, 6 p.m.