R/tj_list.R

Defines functions tj_list

Documented in tj_list

tj_list <- function(dat = dat, ctf = 100){
  out.s <- NULL
  c1.i <- which.min(dat[,1])
  c2.i <- which.max(dat[,1])
  out  <- tjGCluster2(dat, from=c1.i, to=c2.i,cutoff = ctf)
  node <- out$node
  level <- out$level1
  cell <- level[sapply(level, function(x) length(x) >= 2)]
  target_indices <- lapply(cell,function(x) sapply(x, function(y) which(row.names(dat) == y),USE.NAMES = FALSE))
  return(list(target_indices,cell))                                
}
CBIIT-CGBB/scCorr documentation built on Dec. 11, 2023, 4 a.m.