R/get.module.data.file.R

Defines functions get.module.data.file

get.module.data.file <- function(
    resultPath, moduleNum, use.Hartemink, partition=NULL) 
{
    result <- list()
    modulePath <- file.path(resultPath, paste("mod", moduleNum, sep=""))
    if (!is.null(partition))
        modulePath <- file.path(modulePath, paste("part", partition, sep=""))
    dir.create(path=modulePath, recursive=TRUE, showWarnings=FALSE)
    moduleFile <-  file.path(modulePath, paste("module", moduleNum, "H", 
                                               as.numeric(use.Hartemink), ".RData", sep=""))
    result[["modulePath"]] <- modulePath
    result[["moduleFile"]] <- moduleFile
    return(result)
}

Try the Pigengene package in your browser

Any scripts or data that you put into this service are public.

Pigengene documentation built on Nov. 8, 2020, 6:47 p.m.