Skip to content

Commit 77b99bf

Browse files
committed
Add PBMC Digestion Code
1 parent dc42fbe commit 77b99bf

File tree

4 files changed

+572
-0
lines changed

4 files changed

+572
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Environment Setup ---------------------------------------------------------------------------
2+
# R 3.6.1
3+
# Seurat 3.2.3
4+
# tidyverse 1.3.0
5+
# loomR 0.2.1.9000
6+
# Azimuth reference mapping was performed using online portal
7+
8+
# Load Gene Lists for Module Scoring ----------------------------------
9+
# Gene lists available in SI Tables 04
10+
# Column 3 (Microglia Myeloid Shared Act Score)
11+
shared_sig <- "Load Microglia Meta Cell Score"
12+
shared_sig <- list(shared_sig)
13+
14+
# Convert to human gene symbols (homologous gene names previously confirmed so just using simple gene name capitalization conversion)
15+
human_shared_sig <- lapply(shared_sig, function(x){str_to_upper(x)})
16+
17+
# Setup project
18+
Setup_scRNAseq_Project()
19+
20+
# Load Libraries & Data -----------------------------------------------------------------------
21+
library(tidyverse)
22+
library(Seurat)
23+
library(scCustomize)
24+
library(marsh.utils)
25+
library(patchwork)
26+
library(viridis)
27+
28+
# Load Data
29+
control <- Read10X(data.dir = ".../control/filtered_feature_bc_matrix/")
30+
31+
inhib <- Read10X(data.dir = ".../inhib/filtered_feature_bc_matrix/")
32+
33+
merged <- Merge_Sparse_Data_All(matrix_list = c(control, inhib), add_cell_ids = c("control", "inhib"))
34+
35+
pbmc_mock_raw <- CreateSeuratObject(counts = merged, min.cells = 5, min.features = 200)
36+
37+
# Add meta data
38+
pbmc_mock_raw <- Add_Mito_Ribo_Seurat(seurat_object = pbmc_mock_raw, species = "human")
39+
40+
# QC Filter and Subset
41+
pbmc_mock_qc_filtered <- subset(x = pbmc_mock_raw, subset = nFeature_RNA > 400 & nFeature_RNA < 4500 & nCount_RNA < 22500 & percent_mito < 10)

0 commit comments

Comments
 (0)