A function for replacement of fileReferenceGDS slot in a RAIDSparam class.

# S4 method for class 'RAIDSparam'
fileReferenceGDS(x) <- value

Arguments

x

a RAIDSparam object.

value

NULL or a single character string representing the file name of the Reference GDS file. If specified, the file must exist.

Value

the modified RAIDSparam object when the new value is valid.

Author

Pascal Belleau, Astrid Deschênes and Alexander Krasnitz

Examples


## Directory where demo GDS files are located
dataDir <- system.file("extdata", package="RAIDS")

## Create a RAIDSparam object
paramDemo <- RAIDSparam()

## Assign the existing file to the fileReferenceGDS slot in the object
fileReferenceGDS(paramDemo) <- file.path(dataDir, 
    "tests/ex1_good_small_1KG.gds")