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

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

Arguments

x

a RAIDSparam object.

value

a data.frame containing the information TODO with those mandatory columns: "Name.ID", "Case.ID", "Sample.Type", "Diagnosis", and "Source". All columns must be character strings (no factors). All row names should correspond to the values in the "Name.ID" column.

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()

## 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