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

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

Arguments

x

a RAIDSparam object.

value

a single character string representing the method that will be used to calculate the linkage disequilibrium in the snpgdsLDpruning() function. The 4 possible values are: "corr", "r", "dprime", and "composite".

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 value to the pruningMethod slot in the object
pruningMethod(paramDemo) <- "r"