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

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

Arguments

x

a RAIDSparam object.

value

a single positive integer that represents the maximum basepairs (bp) in the sliding window. This parameter is used for the LD pruning done by the snpgdsLDpruning function.

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 slideWindowMaxBP slot in the object
slideWindowMaxBP(paramDemo) <- 1000L