Skip to content

Commit a9236c1

Browse files
committed
coppy from NIDAP seed for SCDblFinder
1 parent c26427e commit a9236c1

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

R/Filter_QC.R

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -881,12 +881,15 @@ filterQC <- function(object,
881881
## Annotate Doublets: ####
882882
## Gene filter does not effect doublet ident and so not recalculated
883883

884+
884885
if( do.doublets.fitler==T){
885-
sce <- as.SingleCellExperiment(so)
886+
sce <- as.SingleCellExperiment(so)
887+
886888
set.seed(123)
887-
sce.dbl <- scDblFinder(sce)%>%suppressWarnings()
888-
sce.class <- sce.dbl$scDblFinder.class
889-
so <- AddMetaData(so,sce.class,"Doublet")
889+
RNGkind("default", "default", "default")
890+
sce.dbl <- scDblFinder(sce,BPPARAM=SerialParam(RNGseed = 123))%>%suppressWarnings()
891+
sce.class <- sce.dbl$scDblFinder.class
892+
so <- AddMetaData(so,sce.class,"Doublet")
890893
}else{ print('doublets Identification not Run')}
891894
return(so)
892895
})

0 commit comments

Comments
 (0)