resetQuery {HCAExplorer}R Documentation

Reset all queries performed on an object

Description

Reset all queries performed on an HCAExplorer object then return the result.

Usage

## S4 method for signature 'HCAExplorer'
resetQuery(x)

Arguments

x

An HCAExplorer object

Value

An HCAExplorer object with the changes applied to it.

See Also

HCAExplorer for the HCAExplorer class, undoQuery for how to undo some queries.

Examples

 ## Initiate an HCAExplorer Object
 x <- HCAExplorer()

 ## First we want to perform a search for certain organs.
 ## Display possible fields looking for organs.
 fields(x)
 ## organs can be queried with "organ".
 ## What values can the field "organ" have?
 values(x, "organ")

 ## Construct a query looking for projects that involve brain.
 x <- x %>% filter(organ == brain)
 x

 ## Now select the first two projects by row.
 x <- x[1:2,]
 x

 ## Finally we can remove the previous two queries to get the original empty
 ## search.
 x <- resetQuery(x)
 x


[Package HCAExplorer version 1.0.0 Index]