knitr::opts_chunk$set(warning=FALSE, message=FALSE)
sampleNames <- unique(colData(data)[[biological.group]])
showSession <- FALSE seuratRun <- knitr::knit_child(system.file("rmarkdown/seurat", "reportSeuratRun.Rmd", package = "singleCellTK"), quiet = TRUE, envir = environment())
showSession <- FALSE seuratResults <- knitr::knit_child(system.file("rmarkdown/seurat", "reportSeuratResults.Rmd", package = "singleCellTK"), quiet = TRUE, envir = environment())
The input data included
r numFeatures
features andr numCells
cells fromr numSamples
samples divided through the groupr biological.group
namelyr sampleNames
. Ther assayNames(data)[1]
feature count matrix from the data was normalized using LogNormalize method which normalized as well as log-transformed the data. Fromr numFeatures
total features, a subset ofr variable.features
features that exhibited high cell-to-cell variation were selected for the downstream analysis to better capture the biological variation using vst (mean-to-variance) feature selection method. This subset of features was then scaled (z-score) using linear model method and trimmed to a maximum and minimum value of 10 and -10 respectively. PCA was run on this scaled subset of features andr pc.count
components were computed from which topr significant_PC
significant components were selected for subsequent clustering analysis. Using the louvain algorithm that uses community-based detection to identify clusters with resolution set tor 0.8
, clustering was performed on the scaled subset of features that identifiedr numClusters
clusters in the data. These clusters were then used to run differential expression using wilcox test and identifiedr numMarkerGenesCluster
genes differentially expressed between clusters at significance criteria of q-value < 0.05. The gene markers that defined the main biological groupr biological.group
were identified using wilcox test that highlightedr numMarkerGenesBio
marker genes at q-value < 0.05 significance criteria. Additionatlly, markersr selected.markers
from the input pre-selected markers were detected and visualized over UMAP plot.
cat(seuratRun, sep = '\n') cat(seuratResults, sep = '\n')
showSession <- params$showSession
cat("# Session Information\n\n")
sessionInfo()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.