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

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

Arguments

x

a RAIDSparam object.

value

a single character string corresponding to the type of file with the genotype and the allele information of the profile that will be provided in the 'profileFile' slot. The valid options are: "VCF", "generic", "snp-pileup", and "bam".

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 the new study type to the genoSource slot in the object
genoSource(paramDemo) <- "bam"