add_pmap {qtl2pleio} | R Documentation |
Add physical map contents to tibble
Description
Add physical map contents to tibble
Usage
add_pmap(tib, pmap)
Arguments
tib |
a tibble with 3 columns: marker, trace, and profile lod values, typically outputted by calc_profile_lods() |
pmap |
a physical map for a single chromosome |
Value
a tibble with 4 columns: marker, trait, profile_lod, marker_position
Examples
pm <- 1:3
names(pm) <- as.character(paste0('m', 1:3))
expand.grid(paste0('m', 1:3), paste0('m', 1:3)) %>%
tibble::as_tibble() %>%
dplyr::mutate(log10lik = rgamma(9, 5)) %>%
calc_profile_lods() %>%
add_pmap(pm)
[Package qtl2pleio version 1.4.3 Index]