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

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

Arguments

x

a RAIDSparam object.

value

NULL or a vector of character strings that represent a subset of sample identifiers from the GDS Reference File. Those samples will be used for the ancestry inference. If NULL, all the samples are retained.

Value

the modified RAIDSparam object when the new value is valid.

Author

Pascal Belleau, Astrid Deschênes and Alexander Krasnitz

Examples


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

## Assign new values to the sampleRef slot in the object
sampleRef(paramDemo) <- c("Sample1", "Sample2")