docset_searchapp {ssrch} | R Documentation |
interactive app for ssrch DocSet instances
docset_searchapp(docset, se = NULL, sefilter = function(se, ...) se)
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 |
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.
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.
if (interactive()) { oask = options()$example.ask options(example.ask=FALSE) n1 = try(docset_searchapp(ssrch::docset_cancer68)) str(n1) options(example.ask=oask) }