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

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

Arguments

x

a RAIDSparam object.

value

NULL or a data.frame containing 2 columns. The first column, called "snp.chromosome" contains the name of the chromosome wherethe SNV is located. The second column, called "snp.position", contains the position of the SNV on the chromosome. Optionally, the column "snvKeep" contains the SNV index in the reference or -1 if not in the reference.

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 value to the specificSNV slot in the object
specificSNV(paramDemo) <- data.frame(snp.chromosome=c("1", "1"), 
    snp.position=c(13333, 2222213))