R/createRCAObject.R

Defines functions createRCAObject

Documented in createRCAObject

#' Create RCA object
#'
#' @param rawData A matrix of expression values
#' @param dataIsNormalized A flag indicating whether the provided data is already normalized
#' @return RCA object.
#' @export
#'
createRCAObject <- function(rawData,dataIsNormalized=FALSE) {

    # Create RCA object using RCAConstruct and the raw data provided
    if (dataIsNormalized){
    rca.obj <- RCAConstruct$new(raw.data = rawData, data=rawData)
    }else
    {
    rca.obj <- RCAConstruct$new(raw.data = rawData)
    }
    # Return RCA object
    return(rca.obj)
}
linquynus/RCAv2-beta documentation built on Aug. 9, 2020, 12:34 a.m.