selfing: Get or set a pedigree to have finite or infinite generations...

Description Usage Arguments Details Value Examples

Description

Get or set a pedigree to have finite or infinite generations of selfing

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
selfing(object) <- value

selfing(object)

## S4 method for signature 'pedigree'
selfing(object)

## S4 replacement method for signature 'detailedPedigree'
selfing(object) <- value

## S4 replacement method for signature 'pedigree'
selfing(object) <- value

Arguments

object

The pedigree object for which to get or set the generations of selfing, as finite or infinite.

value

The new value

Details

A pedigree object contains details about the genetic relationships between individuals in a population. Many experiments will include a finite number of generations of inbreeding by selfing, and this information will also be contained in the pedigree. However, when it comes time to actually analyse the poulation, it can be sensible to assume that an infinite number of generations of selfing have actually been performed, as this is computationally quicker.

This extra information about whether to assume infinite generations of selfing, or the finite number of generations given in the pedigree, is stored in an extra slot, which must have value "finite" or "infinite". If "finite" is specified, then in subsequent analysis (e.g. computation of IBD genotypes or probabilities) the number of generations of selfing for each line is taken from the pedigree.

Value

Dimensions of selfing, either "finite" or "infinite".

Examples

1
2
3
4
pedigree <- eightParentPedigreeImproperFunnels(initialPopulationSize = 10,
     selfingGenerations = 0, nSeeds = 1)
selfing(pedigree)
selfing(pedigree) <- "finite"

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