pull_markers: Drop all but a specified set of markers

Description Usage Arguments Value See Also Examples

Description

Drop all markers from a cross2 object expect those in a specified vector.

Usage

1
pull_markers(cross, markers)

Arguments

cross

Object of class "cross2". For details, see the R/qtl2 developer guide.

markers

A vector of marker names.

Value

The input cross with only the specified markers.

See Also

drop_markers(), drop_nullmarkers()

Examples

1
2
3
grav2 <- read_cross2(system.file("extdata", "grav2.zip", package="qtl2geno"))
markers2drop <- c("BH.342C/347L-Col", "GH.94L", "EG.357C/359L-Col", "CD.245L", "ANL2")
grav2_rev <- pull_markers(grav2, markers2drop)

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