pull_genotype: Pull the genotype data for a named locus

View source: R/geno_functions.R

pull_genotypeR Documentation

Pull the genotype data for a named locus

Description

Pull the genotype data for a named locus

Usage

pull_genotype(genome, geno, loci)

Arguments

genome

An object of class genome.

geno

Genotype data on a population to phenotype. Must be a matrix of dimensions n.ind x n.loci, the elements of which must be z 0, 1, 2.

loci

A character vector of loci to subset from the geno matrix.

Value

A matrix of genotypes from the geno matrix, only for the loci requested.


neyhartj/qgsim documentation built on Nov. 11, 2023, 4:08 p.m.