createMarkerSets: Create Marker Sets

View source: R/genomic_matrix.R

createMarkerSetsR Documentation

Create Marker Sets

Description

This function creates sets of markers surrounding a list of SNPs (rsids) from the given Glist.

Usage

createMarkerSets(
  Glist = NULL,
  rsids = NULL,
  upstream = 1000,
  downstream = 1000,
  kb = NULL,
  cm = NULL
)

Arguments

Glist

A list containing 'pos', 'map', 'chr', and 'rsids'.

rsids

A character vector of SNP identifiers (e.g., rsIDs).

upstream

Integer specifying the number of markers upstream of each rsid.

downstream

Integer specifying the number of markers downstream of each rsid.

kb

(Optional) Not currently implemented.

cm

(Optional) Not currently implemented.

Value

A named list where each element contains markers surrounding the corresponding rsid.


psoerensen/qgg documentation built on March 29, 2025, 6:36 p.m.