R/RAIDSparam_class.R
syntheticRefDF-set-RAIDSparam-method.RdA function for replacement of syntheticRefDF slot in a
RAIDSparam class.
# S4 method for class 'RAIDSparam'
syntheticRefDF(x) <- valuea RAIDSparam object.
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:
a character string representing the sample
identifier.
a character string representing the
subcontinental population assigned to the sample.
a character string representing the
super-population assigned to the sample.
the modified RAIDSparam object when the new value is valid.
## 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"))