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

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

Arguments

x

a RAIDSparam object.

value

a single character string representing the genotype ancestry inference method. The two possible values are 'PCAknn' and 'haploAdmixture'.

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 a new value to the inferenceType slot in the object
inferenceType(paramDemo) <- "haploAdmixture"