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

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

Arguments

x

a RAIDSparam object.

value

NULL or a data.frame containing a subset of reference profiles for each sub-population present in the Reference GDS file. The data.frame must have those columns:

sample.id

a character string representing the sample identifier.

pop.group

a character string representing the subcontinental population assigned to the sample.

superPop

a character string representing the super-population assigned to the sample.

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 syntheticRefDF slot in the object
syntheticRefDF(paramDemo) <- data.frame(sample.id=c("A", "B"), 
    pop.group=c("CEU", "CEU"), superPop=c("EUR", "EUR"))