knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
devtools::install_github("decusinlabore/biologicSC") library(biologicSC) library(Seurat) testObj <- pbmc_small all.genes <- rownames(testObj) testObj <- ScaleData(testObj, features = all.genes) testObj <- RunPCA(testObj, npcs = 3) testObj <- RunUMAP(testObj, dims = 1:3) testObj <- FindNeighbors(testObj, dims = 1:3) testObj <- FindClusters(testObj, resolution = 0.5) dfPCA <- testObj@reductions$pca dfUMAP <- testObj@reductions$pca dftSNE <- testObj@reductions$pca testObj@meta.data[["all"]] <- "all" params <- scanObjParams(testObj) seurat2viewer( obj = testObj, assay = "RNA", #slot = "data", geneSel = NULL, params = params, projectName = "test8_app" ) setwd("..") library(shiny) runApp("test8_app")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.