install.packages("remotes")
::install_github("madsen-lab/valiDrops")
remotes::install_github("immunogenomics/presto") remotes
Automatic quality control of single-cell and single-nucleus RNA-seq using valiDrops
valiDrops is a novel data-adaptive method to identify high-quality barcodes and flag dead cells, which can facilitate data QC with one single line.
Installation
Usage
## Load libraries
library(Matrix)
library(Seurat)
library(valiDrops)
## Loading data
# Load STARsolo data
<- Matrix::readMM("path_to_data/raw/matrix.mtx")
data <- read.delim("path_to_data/raw/barcodes.tsv", header=FALSE)
barcodes <- read.delim("path_to_data/raw/features.tsv", header=FALSE)
features colnames(data) <- barcodes[,1]
rownames(data) <- features[,1]
# Load CellRanger data
<- Matrix::readMM("path_to_data/outs/raw_feature_bc_matrix/matrix.mtx.gz")
data <- read.delim("path_to_data/outs/raw_feature_bc_matrix/barcodes.tsv.gz", header=FALSE)
barcodes <- read.delim("path_to_data/outs/raw_feature_bc_matrix/features.tsv.gz", header=FALSE)
features colnames(data) <- barcodes[,1]
rownames(data) <- features[,1]
## Run valiDrops
<- valiDrops(data) valid