R/CornerToMarker.R

Defines functions CornerToMarker

## marker selection by using sisal
CornerToMarker <- function(distances,topN){

     markerList <- apply(distances, 2, function(xx) {
          pure <- rownames(distances)[order(xx)[1:topN]]
          return(pure)
     })
     markerList <-  split(markerList, rep(1:ncol(markerList), each = nrow(markerList)))

     return(markerList)
}

Try the TOAST package in your browser

Any scripts or data that you put into this service are public.

TOAST documentation built on Nov. 8, 2020, 5:55 p.m.