-
Notifications
You must be signed in to change notification settings - Fork 0
/
HGSOC_QC_Samples.R
45 lines (32 loc) · 1.43 KB
/
HGSOC_QC_Samples.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
########################
# Matt Regner
# Nov 2021
# QC histograms
########################
# Full processed scRNA-seq data was generated in the following directory:
# /datastore/nextgenout5/share/labs/francolab/scENDO_scOVAR_Proj/scRNA-seq_Processing/HGSOC_RNA
# Fully processed scATAc-seq data was generated in the following directory:
# /datastore/nextgenout5/share/labs/francolab/scENDO_scOVAR_Proj/scATAC-seq_Processing/HGSOC_ATAC_March_2021-v3
library(Seurat)
library(ArchR)
library(ggplot2)
# Read in scRNA data (processed)
rna <- readRDS("./ovar_HGSOC_scRNA_processed.rds")
rna.df <- [email protected]
p1 <- ggplot(rna.df, aes(x=log2(nCount_RNA))) +
geom_histogram(binwidth=0.1,color="gray20", fill="gray75")+
theme_bw()+
geom_vline(xintercept = log2(500),linetype="dashed",col="darkred")+
geom_vline(xintercept = log2(median(rna.df$nCount_RNA)),linetype="dashed",col="black")+
scale_y_continuous(limits=c(0,500))
# Read in scATAC data (processed)
atac <- readRDS("./final_archr_proj_archrGS.rds")
atac.df <- as.data.frame(atac@cellColData)
p2 <- ggplot(atac.df, aes(x=log2(nFrags))) +
geom_histogram(binwidth=0.1,color="gray20", fill="gray75")+
theme_bw()+
geom_vline(xintercept = log2(1000),linetype="dashed",col="darkred")+
geom_vline(xintercept = log2(median(atac.df$nFrags)),linetype="dashed",col="black")+
scale_y_continuous(limits=c(0,500))
p1+p2
ggsave("HGSOC_scRNA_scATAC_QC_Histograms.pdf",width = 7,height = 4)