para: Parallel Analysis of Data

View source: R/para.R

paraR Documentation

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, pmMethod = "constant")

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

pmMethod

character method for creating the recombination matrix

Details

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

Value

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

Examples

# Please run demo(hsphase)


hsphase documentation built on May 29, 2024, 2:20 a.m.