get_marker_location: Get marker genomic position

Description Usage Arguments Value Examples

View source: R/get_marker_location.R

Description

Given a vector of marker names or numbers, this function returns the genomic coordinates for each marker, not including the chromosome number, which is retrieved using get_marker_chr.

Usage

1
get_marker_location(data_obj, markers)

Arguments

data_obj

a Cape object

markers

A vector of marker names

Value

A vector the same length as the input markers vector indicating the genomic coordinate of each marker.

Examples

1
2
3
4
5
## Not run: 
marker_names <- dimnames(geno_obj)[[3]]
marker_loc <- get_marker_location(data_obj, marker_names)

## End(Not run)

cape documentation built on Feb. 10, 2021, 5:06 p.m.