Subset data objects by line names, chromosomes, linkage groups, markers or positions
# S4 method for imputed
subset(x, ...)# S4 method for probabilities
subset(x, ...)
# S4 method for mpcross
subset(x, ...)
# S4 method for mpcrossMapped
subset(x, ...)
# S4 method for mpcrossRF
subset(x, ...)
# S4 method for mpcrossLG
subset(x, ...)
# S4 method for lg
subset(x, ...)
# S4 method for geneticData
subset(x, ...)
# S4 method for hetData
subset(x, ...)
# S4 method for rf
subset(x, ...)
# S4 method for rawSymmetricMatrix
subset(x, ...)
The object to be subset
A method to use to subset (markers, lines, positions or chromosomes), and values for that method.
A subsetted object, of the same type as the input.
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.