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

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

Arguments

x

a RAIDSparam object.

value

a character string representing the path pf the software ADMIXTURE and the binary. 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 path to the pathADMIXTURE slot in the object
pathADMIXTURE(paramDemo) <- file.path(dataDir)