Nantes Université

Skip to content
Extraits de code Groupes Projets
Valider 3cb3ff01 rédigé par Bastien CIMAROSTI's avatar Bastien CIMAROSTI
Parcourir les fichiers

Add new file

parent 7547bbe5
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
#### Packages loading
library(Matrix)
library(Seurat)
library(dplyr)
library(ggplot2)
library(DoubletFinder)
library(KernSmooth)
library(ROCR)
for (sample in c("C2-DC2093","C2-DC2158")) {
Data<-readRDS(paste0("3-DoubletFinder/",sample,"/Data.rds"))
if (sample=="C2-DC2093"){UsingDim=8} else {if (sample=="C2-DC2158"){UsingDim=9}}
Data<-FindNeighbors(Data,dims=1:UsingDim)
Data<-FindClusters(Data,resolution=0.6)
head(Idents(Data),5)
#### pK Identification (no ground-truth)
sweep.res.list <- paramSweep_v3(Data, PCs = 1:10, sct = FALSE)
sweep.stats <- summarizeSweep(sweep.res.list, GT = FALSE)
bcmvn <- find.pK(sweep.stats)
pdf(file=paste0("3-DoubletFinder/",sample,"/Choose pK.pdf"),width=10,height=9)
print(ggplot(bcmvn, aes(x=pK, y=BCmetric)) + geom_point() + geom_line(aes(group=1)))
dev.off()
saveRDS(Data,file=paste0("3-DoubletFinder/",sample,"/Data2.rds"))
}
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter