powered by
Given a vector of marker names or numbers, this function returns the chromosome on which each marker lives.Covariates are assigned to chromosome 0.
get_marker_chr(data_obj, markers, character_names = TRUE)
A vector the same length as the input markers vector indicating which chromosome each marker in markers lives on.
a Cape object
Cape
A vector of marker names
A logical value indicating whether the marker names are characters (TRUE) or numbers (FALSE)
if (FALSE) { marker_names <- dimnames(geno_obj)[[3]] marker_chr <- get_marker_chr(data_obj, marker_names) }
Run the code above in your browser using DataLab