subset: Subset data

Description Usage Arguments Details Value

Description

Subset data objects by line names, chromosomes, linkage groups, markers or positions

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
## S4 method for signature 'imputed'
subset(x, ...)

## S4 method for signature 'probabilities'
subset(x, ...)

## S4 method for signature 'mpcross'
subset(x, ...)

## S4 method for signature 'mpcrossMapped'
subset(x, ...)

## S4 method for signature 'mpcrossRF'
subset(x, ...)

## S4 method for signature 'mpcrossLG'
subset(x, ...)

## S4 method for signature 'lg'
subset(x, ...)

## S4 method for signature 'geneticData'
subset(x, ...)

## S4 method for signature 'hetData'
subset(x, ...)

## S4 method for signature 'rf'
subset(x, ...)

## S4 method for signature 'rawSymmetricMatrix'
subset(x, ...)

Arguments

x

The object to be subset

...

A method to use to subset (markers, lines, positions or chromosomes), and values for that method.

Details

mpMap2 objects can be subset in a number of different ways, depending on the particular class of the object that is contained.

Subsetting by "lines" subsets by the genetic lines in the final population. Line names or line indices can be used, although line names should be preferred. Any information about recombination fractions will be discarded. Subsetting by "chromosomes" keeps only certain chromosomes, and requires that the object have a genetic map. Subsetting by "markers" keeps only certain genetic markers. Data about imputed IBD genotypes and IBD genotype probabilities is discarded. Subsetting by "positions" only subsets the imputed IBD genotypes and IBD probability data, and does not subset the underlying markers. Subestting by "groups" retains only certain linkage groups.

An object of class mpcross can be subset by genetic lines or markers.

Objects of classes mpcrossLG or mpcrossRF can be subset by genetic lines, markers or linkage groups.

An object of class mpcrossMapped can be subset by genetic lines, markers or chromosomes.

The remainder of the subsetting methods are not expected to be called directly by the user. They subset internal components, and are used internally by the top-level methods.

Value

A subsetted object, of the same type as the input.


mpMap2 documentation built on Sept. 13, 2020, 5:17 p.m.