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

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

Arguments

x

a RAIDSparam object.

value

a character string representing the name of the column in the data frame that contains the inferred super-population ancestry for the samples. The column should be present in the data frame.

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 fieldPopInfAnc slot in the object
fieldPopInfAnc(paramDemo) <-  "superPOPULATION"