runLDmixtureModel: Run LDmixtureModel to a dataset

Description Usage Arguments Value

View source: R/runLDmixtureModel.R

Description

This function makes SNP-blocks and pair them. Then, it applies LDmixtureModel to all SNP-block pairs closer than a selected distance.

Usage

1
2
3
4
5
6
7
runLDmixtureModel(
  haplos,
  annot,
  blockSize = 2,
  distance = 10000,
  BPPARAM = BiocParallel::SerialParam()
)

Arguments

haplos

Matrix with the haplotypes (SNPs in columns, samples in rows)

annot

GenomicRanges with the SNPs annotation

blockSize

Numeric with the size of the SNP block (Default: 2)

distance

Numeric with the maximum distance in bases to pair two blocks. (Default: 1e5)

BPPARAM

An object from BiocParallelParam. It allow running the models in parallel. By default, the models are run in serial.

Value

A list with the results of the LDmixture models. Each element is a model and contains the following items:


isglobal-brge/recombClust documentation built on Nov. 30, 2020, 5:26 p.m.