This function maps sets to rsids. If a `Glist` is provided, `rsids` are extracted from the `Glist`. It returns a list of matched RSIDs for each set.
mapSets(sets = NULL, rsids = NULL, Glist = NULL, index = TRUE)
A list where each element represents a set and contains matched RSIDs or their indices.
A list of character vectors where each vector represents a set of items. If the names of the sets are not provided, they are named as "Set1", "Set2", etc.
A character vector of RSIDs. If `Glist` is provided, this parameter is ignored.
A list containing an element `rsids` which is a character vector of RSIDs.
A logical. If `TRUE` (default), it returns indices of RSIDs; otherwise, it returns the RSID names.