Learn R Programming

statgenIBD (version 1.0.9)

c.IBDprob: Concatenate function for objects of class IBDprob

Description

Concatenates objects of class IBDprob. All objects that are concatenated should have the same population type and the same map. The function is mainly meant for combining information for multiple crosses with overlapping parents.

Usage

# S3 method for IBDprob
c(...)

Value

An object of class IBDprob containing data for all concatenated objects.

Arguments

...

Objects of class IBDprob.

Examples

Run this code
## Compute IBD probabilties for AxB.
AB <- calcIBD(popType = "F4DH",
             markerFile = system.file("extdata/multipop", "AxB.txt",
                                  package = "statgenIBD"),
             mapFile = system.file("extdata/multipop", "mapfile.txt",
                                  package = "statgenIBD"))
## Compute IBD probabilties for Axc.
AC <- calcIBD(popType = "F4DH",
              markerFile = system.file("extdata/multipop", "AxC.txt",
                                      package = "statgenIBD"),
              mapFile = system.file("extdata/multipop", "mapfile.txt",
                                   package = "statgenIBD"))

## Combine results.
ABC <- c(AB, AC)

## Check summary.
summary(ABC)

Run the code above in your browser using DataLab