R/RAIDSparam_class.R
specificSNV-set-RAIDSparam-method.RdA function for replacement of specificSNV slot in a
RAIDSparam class.
# S4 method for class 'RAIDSparam'
specificSNV(x) <- valuea RAIDSparam object.
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.
the modified RAIDSparam object when the new value is valid.
## 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))