getPath: GetPath function

View source: R/getPath.R

getPathR Documentation

GetPath function

Description

Function to automatically make a unique and descriptive path name based on the properties of the epigenetic set.

Usage

getPath(
  x,
  subName = "",
  subDir = "minfi_sets",
  extension = ".Rdata",
  mainDir = ".."
)

Arguments

x

Epigenetic set object.

subName

Name of the file.

subDir

Directory of the file. The default is the "minfi_sets" directory.

extension

Extension of the file. Default is ".Rdata".

mainDir

Main directory to save the file to. The default is the directory upstream from the working directory.

Value

Returns a filepath.

Examples

getPath(list(name="test", params=list(combatChip = TRUE, combatRow=TRUE, recalibrate=FALSE)))
getPath("rgset", "plot3", "output")


GregoireCoppens/LICMEpigenetics documentation built on April 24, 2023, 10:02 a.m.