Learn R Programming

qtl (version 1.38-4)

subset.map: Subsetting chromosomes for a genetic map

Description

Pull out a specified set of chromosomes from a map object.

Usage

## S3 method for class 'map':
subset(x, \dots)
## S3 method for class 'map':
[(x, \dots)

Arguments

x
A list whose components are vectors of marker locations.
...
Vector of chromosome indices.

Value

  • The input map object, but with only the specified subset of chromosomes.

See Also

subset.cross

Examples

Run this code
data(map10)
map10 <- subset(map10, chr=1:5)

# you can also use brackets
map10 <- map10[2:3]

Run the code above in your browser using DataLab