| p2ViewPagodaApp {pagoda2} | R Documentation |
p2ViewPagodaApp R6 class
Description
Modified 'PAGODA1' app (from 'SCDE') for browsing 'pagoda2' results. Refer to 'ViewPagodaAppOld' and 'make.pagoda.app()' in 'SCDE'
Public fields
resultsResult object returned by
scde.expression.difference()(default=NULL). Note to browse group posterior levels, usereturn.posteriors = TRUEin thescde.expression.difference()call.typeEither 'counts' or a name of a 'reduction' in the 'Pagoda2' object
genesList of genes to display in the Detailed clustering panel (default=list())
batchAny batch or other known confounders to be included in the visualization as a column color track (default=NULL)
pathwayscharacter vector Pathway or gene names (default=NULL)
nameApp name (needs to be altered only if adding more than one app to the server using the 'server' parameter) (default=NULL)
trimTrim quantity used for Winsorization for visualization
embeddingEmbedding information (default=NULL)
veloinfoVelocity information (default=NULL)
goenvenvironment mapping pathways to genes (default=NULL)
renvGlobal environment (default=NULL)
Methods
Public methods
Method new()
Initialize p2ViewPagodaApp class
Usage
p2ViewPagodaApp$new( results, pathways, genes, goenv, batch = NULL, name = "pathway overdispersion", trim = 1.1/nrow(p2$counts), embedding = NULL, type, veloinfo = NULL )
Arguments
resultsResult object returned by
scde.expression.difference(). Note to browse group posterior levels, usereturn.posteriors = TRUEin thescde.expression.difference()call.pathwayscharacter vector Pathway or gene names (default=NULL)
geneslist Genes to display in the Detailed clustering panel (default=list())
goenvEnvironment mapping pathways to genes (default=NULL)
batchAny batch or other known confounders to be included in the visualization as a column color track (default=NULL)
namestring App name (needs to be altered only if adding more than one app to the server using the 'server' parameter) (default="pathway overdispersion")
trimnumeric Trim quantity used for Winsorization for visualization (default=1.1/nrow(p2$counts) whereby the 'counts' from the 'Pagoda2' object is the gene count matrix, normalized on total counts (default=NULL)
embeddingEmbedding information (default=NULL)
typeEither 'counts' or a name of a 'reduction' in the 'pagoda2' object
veloinfoVelocity information (default=NULL)
Returns
new 'p2ViewPagodaApp' object
Method getgenecldata()
Helper function to get the heatmap data for a given set of genes
Usage
p2ViewPagodaApp$getgenecldata(genes = NULL, gcl = NULL, ltrim = 0)
Arguments
genescharacter vector Gene names (default=NULL)
gclpathway or gene-weighted PCA (default=NULL). If NULL, uses tp2c.view.pathways(self$genes, self$results$p2, goenv=goenv, vhc=self$results$hvc, plot=FALSE, trim=ltrim, n.genes=Inf).
ltrimnumeric Winsorization trim that should be applied (default=0)
Returns
heatmap data for a given set of genes
Method call()
Call Rook application. Using client-side ExtJS framework and Inchlib HTML5 canvas libraries to create the graphical user interface for PAGODA
Usage
p2ViewPagodaApp$call(env)
Arguments
envThe environment argument is a true R environment object which the application is free to modify. Please see the Rook documentation for more details.
Returns
modified 'PAGODA1' app
Method clone()
The objects of this class are cloneable with this method.
Usage
p2ViewPagodaApp$clone(deep = FALSE)
Arguments
deepWhether to make a deep clone.