probs_qtl2_to_doqtl: Convert R/qtl2 genotype probabilities to DOQTL format

Description Usage Arguments Details Value

View source: R/probs_qtl2_to_doqtl.R

Description

Convert R/qtl2 genotype probabilities to DOQTL format

Usage

1

Arguments

probs

A "calc_genoprob" object (a list of 3d arrays of genotype probabilities), as calculated by qtl2::calc_genoprob().

Details

If the arrays in probs all have 8 columns, they're assumed to be allele dosages and we paste them all together into one big array.

Otherwise, it should be that the autosomes all have 36 columns the X chromosome has 44. In this case, the male hemizygotes on the X are placed where the female homozygotes are, and then we reorder the genotypes into alphabetical order.

Value

A single three-dimensional array, for use with DOQTL.


qtl2convert documentation built on Oct. 7, 2021, 9:27 a.m.