Last active
February 2, 2020 08:56
-
-
Save LTLA/f523f28e014c09b3083865832a3224ce to your computer and use it in GitHub Desktop.
iSEE launching from link
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############# The usual ################ | |
library(scRNAseq) | |
# Example data ---- | |
sce <- ReprocessedAllenData(assays="tophat_counts") | |
class(sce) | |
library(scater) | |
sce <- logNormCounts(sce, exprs_values="tophat_counts") | |
sce <- runPCA(sce, ncomponents=4) | |
sce <- runTSNE(sce) | |
rowData(sce)$ave_count <- rowMeans(assay(sce, "tophat_counts")) | |
rowData(sce)$n_cells <- rowSums(assay(sce, "tophat_counts") > 0) | |
saveRDS(sce, file="blah.rds") | |
############# Parameter spec ################ | |
library(iSEE) | |
thing <- list(RedDimPlot(), RedDimPlot()) | |
saveRDS(thing, file="param.rds") | |
############# Server-side initialization ############# | |
shiny::enableBookmarking("url") | |
iSEE(landingPage=createLandingPage( | |
seUI=function(id) textInput(id, "Path to SE file:"), | |
seLoad=readRDS, | |
initUI=function(id) textInput(id, "Path to initial file:"), | |
initLoad=readRDS, | |
requireButton=FALSE | |
)) | |
############## USER-ACCESS ################ | |
# NOTE: need to change your port: | |
# http://127.0.0.1:6776/?_inputs_&se=%22blah.rds%22&initial=%22param.rds%22 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment