R/MOTIFBREAKR_make_id.R

Defines functions MOTIFBREAKR_make_id

Documented in MOTIFBREAKR_make_id

#' MOTIFBREAKR: make ID
#' 
#' MOTIFBREAKR support function.
#' @inheritParams MOTIFBREAKR_filter
#' @keywords internal
#' @returns Motif disruption predictions in 
#'  \link[GenomicRanges]{GRanges} format.
MOTIFBREAKR_make_id <- function(mb_res){
    mb_res$id <- paste(mb_res$SNP_id,
                       mb_res$dataSource, 
                       mb_res$providerId, 
                       sep='_')
    return(mb_res)
}
RajLabMSSM/echoannot documentation built on Oct. 26, 2023, 2:41 p.m.