This works a bit like subsetting a list. If you use the '[' construct you will get another snppicker object with a subset of the elements. The ability to plot that subset should remain. If you use the '[[' construct it will extract just that element, and return an object of class groups. No plotting ability is retained, but a single groups object is easy to inspect and manipulate.

# S4 method for snppicker,ANY,missing,missing
[(x, i)

# S4 method for snppicker,ANY
[[(x, i)

Arguments

x

snppicker object

i

numeric, logical or character vector to index SNPs

Value

subsetted snppicker object