Learn R Programming

qtl2pleio (version 1.2.3)

add_pmap: 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

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab