get_marker_chr: Get chromosome numbers for markers

Description Usage Arguments Value Examples

View source: R/get_marker_chr.R

Description

Given a vector of marker names or numbers, this function returns the chromosome on which each marker lives.Covariates are assigned to chromosome 0.

Usage

1
get_marker_chr(data_obj, markers, character_names = TRUE)

Arguments

data_obj

a Cape object

markers

A vector of marker names

character_names

A logical value indicating whether the marker names are characters (TRUE) or numbers (FALSE)

Value

A vector the same length as the input markers vector indicating which chromosome each marker in markers lives on.

Examples

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

## End(Not run)

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