docset_searchapp: interactive app for ssrch DocSet instances

Description Usage Arguments Value Note Examples

View source: R/app4.R

Description

interactive app for ssrch DocSet instances

Usage

1
docset_searchapp(docset, se = NULL, sefilter = function(se, ...) se)

Arguments

docset

an instance of DocSet

se

(defaults to NULL) an instance of SummarizedExperiment; samples will be filtered by selection method prescribed in sefilter

sefilter

a function accepting (se, ...) and returning a SummarizedExperiment

Value

Returns list of data.frames of metadata on studies requested. Can provide a SummarizedExperiment download when 'se' is non-null, but this is not yet returned to the session.

Note

The handling of SummarizedExperiments by this app is specialized. The 'sefilter' for the cancer example would be 'function(se, y) se[,which(se$study_accession will be called with 'y' bound to the study accession numbers selected in the app.

Examples

1
2
3
4
5
6
7
if (interactive()) {
  oask = options()$example.ask
  options(example.ask=FALSE)
  n1 = try(docset_searchapp(ssrch::docset_cancer68))
  str(n1)
  options(example.ask=oask)
}

vjcitn/ssrch documentation built on Oct. 25, 2019, 11:29 p.m.