View on GitHub

Seurat.utils

Various utility functions for Seurat single-cell analysis

Seurat.utils status: active DOI

Seurat.utils Is a collection of utility functions for Seurat. Functions allow the automation / multiplexing of plotting, 3D plotting, visualisation of statistics & QC, interaction with the Seurat object, etc. Some functionalities require functions from CodeAndRoll2, ReadWriter, Stringendo, ggExpressDev, MarkdownReports, and the Rocinante (See installation).

[TOC]

Installation

Seurat.utils relies on:

… and provides functions for

You can install all of them directly from GitHub via devtools with one R command:

# install.packages("devtools"); # If you don't have it.
BiocManager::install("sparseMatrixStats")
require("devtools")

# Install dependencies
devtools::install_github(repo = "vertesy/Stringendo", upgrade = F)
devtools::install_github(repo = "vertesy/CodeAndRoll2", upgrade = F)
devtools::install_github(repo = "vertesy/ReadWriter", upgrade = F)
devtools::install_github(repo = "vertesy/MarkdownHelpers", upgrade = F)
devtools::install_github(repo = "vertesy/Markdownreports", upgrade = F)
devtools::install_github(repo = "vertesy/ggExpress", upgrade = F)

# Recommended
devtools::install_github(repo = "vertesy/DatabaseLinke.R", upgrade = F)

# Install Seurat.utils
devtools::install_github(repo = "vertesy/Seurat.utils", upgrade = F)

# You may need to install
# install.packages("pheatmap")
# install.packages("checkmate")

…then simply load the package:

require("Seurat.utils")

**NOTE: If you type ‘all’ when R asks to update dependencies, you may get into installation errors / infinite loops. If updating fails, type ‘no’ when prompted. **

Alternatively, you simply source it from the web. This way function help will not work, and you will have no local copy of the code on your hard drive.

source("https://raw.githubusercontent.com/vertesy/Seurat.utils/master/R/Seurat.Utils.R")


Troubleshooting

If you encounter a bug, something doesn’t work or unclear, please let me know by raising an issue on Seurat.utils – Please check if it has been asked.

Error on install

Error during usage

#1 Check and reinstall dependencies

If you have an older installation, it is quite possible that some of the above packages are out of date. Please reinstall all of them, in order (see: Installation).

Some functionalities are coming from dependencies. If the error points to a function outside or Seurat.utils, check in the packages below:

#2 Maybe you need Rocinante.

It needs to be sourced, cannot be installed:

source("https://raw.githubusercontent.com/vertesy/Rocinante/master/R/Rocinante.R")

List of Functions

List of Functions in Seurat.Utils.R (94)

Updated: 2024/03/22 15:41

List of Functions in Seurat.Utils.Visualization.R (57)

Updated: 2024/03/22 15:41

List of Functions in Seurat.Utils.Metadata.R (27)

Updated: 2024/03/22 15:41

List of Functions in Seurat.utils.less.used.R (5)

Updated: 2024/03/22 15:41

Usage

You can use most functions at relevant steps of a standard Seurat analysis.

We are preparing a vignette.


Get Seurat.utils. Vertesy, 2024. DOI If you use these functions, please star the repo, or cite via DOI. Thanks!