R/removeSeedInfo.R

#' removeSeedInfo
#' @description This gets rid of the "(and other miRNAs w/seed GGAAUGU)"-like info after all the miRNAs
#' @param urlists Upstream regulator lists to fix.
#'
#' @importFrom stringr str_remove
#' @importFrom purrr map
#' @return list
#' @export
#'
#' @examples
removeSeedInfo <- function(urlists){
  map(urlists, function(j){
    j[['Upstream Regulator']] %<>% str_remove(pattern = " \\([0-9a-zA-Z\\/ ]+\\)")
    j
  })
}
milescsmith/IPAPlots documentation built on May 28, 2019, 1:21 p.m.