Skip to content

Commit

Permalink
handling no-count-peaks
Browse files Browse the repository at this point in the history
  • Loading branch information
saorisakaue committed Aug 14, 2024
1 parent 734f864 commit 2cdf42f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/SCENTfunctions.R
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,9 @@ SCENT_algorithm <- function(object, celltype, ncores, regr = "poisson", bin = TR

#binarize peaks:
if(bin){
atac_target[atac_target$atac>0,]$atac<-1
if(nrow(atac_target[atac_target$atac>0,])>0){
atac_target[atac_target$atac>0,]$atac<-1
}
}

mrna_target <- object@rna[gene,]
Expand Down

0 comments on commit 2cdf42f

Please sign in to comment.