Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot visualize data properly by Seurat and Signac #8

Closed
Telogen opened this issue May 30, 2022 · 2 comments
Closed

Cannot visualize data properly by Seurat and Signac #8

Telogen opened this issue May 30, 2022 · 2 comments

Comments

@Telogen
Copy link

Telogen commented May 30, 2022

Hi, Dr. Zhu,
I'm processing the RNA part of Paired-seq data using Seurat following these codes

counts <- Read10X('./data/Adult_Cerebrail_Cortex/Adult_CTX_RNA/')
metadata <- read.csv('./data/Adult_Cerebrail_Cortex/Cell_embeddings.csv')
rownames(metadata) <- metadata$ID
metadata <- metadata[colnames(RNA),]
RNA$batch <- metadata$Rep
RNA$cluster <- metadata$Cluster
RNA$true <- as.character(factor(metadata$Cluster,labels = c('AS','MG','OC','Ex1','Ex2','Ex3','In1','In2','In3')))
RNA <- NormalizeData(RNA)
RNA <- FindVariableFeatures(RNA)
LabelPoints(plot = VariableFeaturePlot(RNA), points = head(VariableFeatures(RNA), 10), repel = TRUE)
RNA <- ScaleData(RNA)
RNA <- RunPCA(RNA)
RNA <- RunUMAP(RNA, dims = 1:20)
DimPlot(RNA, group.by = "true", label = TRUE) + NoLegend()

But I got this strange UMAP output of the RNA data
image

Similarly, I process the ATAC part of Paired-seq data using Signac following these codes

counts <- Read10X("./data/Adult_Cerebrail_Cortex/Adult_CTX_DNA/")
chrom_assay <- CreateChromatinAssay(counts,sep = c(":", "-"))
ATAC <- CreateSeuratObject(chrom_assay,assay = "ATAC")
ATAC <- RunTFIDF(ATAC)
ATAC <- FindTopFeatures(ATAC, min.cutoff = 'q0')
ATAC <- RunSVD(ATAC)
DepthCor(ATAC,n = 50)
ATAC <- RunUMAP(ATAC, dims = 2:30, reduction = 'lsi')
metadata <- read.csv('./data/Adult_Cerebrail_Cortex/Cell_embeddings.csv')
rownames(metadata) <- metadata$ID
metadata <- metadata[colnames(ATAC),]
ATAC$batch <- metadata$Rep
ATAC$cluster <- metadata$Cluster
ATAC$true <- as.character(factor(metadata$Cluster, labels = c('AS','MG','OC','Ex1','Ex2','Ex3','In1','In2','In3')))
DimPlot(object = ATAC, label = T,group.by = 'true') + NoLegend()

And I got this
image

Could you please give me some suggestions on how to deal with Pair-seq data in a proper way? Many thanks!

@cxzhu
Copy link
Owner

cxzhu commented May 30, 2022

Hi @Telogen,

Thank you for your interest in our data. We used snapATAC to process the data, please refer to https://github.com/cxzhu/Paired-seq/blob/master/snapATAC_RNA.R and https://github.com/cxzhu/Paired-seq/blob/master/snapATAC_DNA.R, which is designed for lower-coverage datasets.

You can also find our latest data with higher coverage, which should be more compatible with the current Seurat and Signac, from https://ftp.ncbi.nlm.nih.gov/geo/series/GSE152nnn/GSE152020/suppl/GSE152020_Paired-Tag_RNA_filtered_matrix.tar.gz and https://ftp.ncbi.nlm.nih.gov/geo/series/GSE152nnn/GSE152020/suppl/GSE152020_Paired-seq_DNA_filtered_matrix.tar.gz

Best,
Chenxu

@Telogen
Copy link
Author

Telogen commented May 31, 2022

Thanks Dr. Zhu! I'll try it.

@Telogen Telogen closed this as completed May 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants