add_pmap: Add physical map contents to tibble

Description Usage Arguments Value Examples

View source: R/calc_profile_lods.R

Description

Add physical map contents to tibble

Usage

1
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

1
2
3
4
5
6
7
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)

fboehm/qtl2pleio documentation built on July 17, 2021, 11:34 p.m.