R/classFromRunline.R

Defines functions classFromRunline

Documented in classFromRunline

#' Derive the module class from a given runline
#'
#' @inheritParams aliasFromRunline
#'
#' @return the class of the module specified by the runline
#' 
#' @seealso aliasFromRunline
#' 
classFromRunline <- function(line){
    class=NA
    if ( BioLockR::isReadableValue(line) ){
        mainline = unlist(strsplit(line, " AS ", fixed=TRUE))[1]
        classPlus = gsub("#BioModule", "", mainline)
        class = trimws(classPlus)
    }
    return(class)
}
IvoryC/shinyBioLockJ documentation built on May 29, 2021, 7:40 a.m.