chr_lengths: Calculate chromosome lengths

Description Usage Arguments Details Value See Also

View source: R/chr_lengths.R

Description

Calculate chromosome lengths for a map object

Usage

1
chr_lengths(map, collapse_to_AX = FALSE)

Arguments

map

A list of vectors, each specifying locations of the markers.

collapse_to_AX

If TRUE, collapse to the total lengths of the autosomes and X chromosome.

Details

We take diff(range(v)) for each vector, v.

Value

A vector of chromosome lengths. If collapse_to_AX=TRUE, the result is a vector of length 2 (autosomal and X chromosome lengths).

See Also

scan1perm()


rqtl/qtl2scan documentation built on May 28, 2019, 2:36 a.m.