Learn R Programming

hsphase (version 1.2.4)

para: Parallel Analysis of Data

Description

This function uses the list of matrices (the output of cs) and runs one of the options, on each element of the list, in parallel.

Usage

para(halfsibs, cpus = 1, option = "bmh", type = "SOCK", bmh_forwardVectorSize = 30,
bmh_excludeFP = TRUE, bmh_nsap = 3)

Arguments

halfsibs
list list of matrices of half-sibs (can be generated with hss and cs functions)
cpus
numeric number of CPUs (thread)
option
character type of analysis
type
character type of cluster for parallel analysis
bmh_forwardVectorSize
Integer number of heterozygous sites used to validate recombination events or check for genotyping errors
bmh_excludeFP
logical exclude SNPs that may cause heterozygous sites in the sire due to genotyping errors or map errors
bmh_nsap
Integer number of SNPs per block

Value

  • Returns a list of matrices with the results (formats specific to the option selected).

Details

Type of analysis can be bmh, ssp, aio, or rec (refer to pm, rplot and vignette for more information about rec).

Examples

Run this code
# Please run demo(hsphase)

Run the code above in your browser using DataLab