R/orderAnnotation.R

Defines functions orderAnnotation

Documented in orderAnnotation

#' Order Annotations
#'
#' @keywords internal
#'
#'
#' @import data.table
#'
#' @return
orderAnnotation <- function(annotSubnetDT, names) {
  newDT <- annotSubnetDT[name == names[1]]
  for (i in 2:length(names)) {
    newDT <- rbind(newDT, annotSubnetDT[name == names[i]])
  }
  return(newDT)
}
krumsiek/MoDentify documentation built on March 25, 2021, 8:32 a.m.