probs_qtl2_to_array: Convert R/qtl2 genotype probabilities to a 3d array

View source: R/probs_qtl2_to_array.R

probs_qtl2_to_arrayR Documentation

Convert R/qtl2 genotype probabilities to a 3d array

Description

Convert R/qtl2 genotype probabilities to a 3d array

Usage

probs_qtl2_to_array(probs)

Arguments

probs

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

Details

We convert just the autosomal genotype probabilities, because they should all have the same number of genotypes (columns). The main application of this is for identifying possible sample mix-ups among batches of genotype probabilities (e.g., using the R/lineup2 package), and for this the autosomal genotype probabilities should be sufficient.

Value

A single three-dimensional array, with just the autosomal genotype probabilities.


qtl2convert documentation built on July 11, 2022, 5:08 p.m.