R/RAIDSparam_class.R
pedStudy-set-RAIDSparam-method.RdA function for replacement of pedStudy slot in a
RAIDSparam class.
# S4 method for class 'RAIDSparam'
pedStudy(x) <- valuethe modified RAIDSparam object when the new value is valid.
## Create a RAIDSparam object
paramDemo <- RAIDSparam()
## Demo PED study
pedStudy <- data.frame(Name.ID=c("TEST11", "Test12"),
Case.ID=c("Case1", "Case2"),
Sample.Type=c("Cancer", "Cancer"),
Diagnosis=c("sarcoma", "sarcoma"),
Source=c("CSHL", "CSHL"), stringsAsFactors=FALSE,
row.names=c("TEST11", "Test12"))
## Assign the new PED study to the pedStudy slot in the object
pedStudy(paramDemo) <- pedStudy