show_genotypes: Show the genotypes of a 'gen_tibble'

View source: R/show_genotypes.R

show_genotypesR Documentation

Show the genotypes of a gen_tibble

Description

Extract the genotypes (as a matrix) from a gen_tibble.

Usage

show_genotypes(.x, indiv_indices = NULL, loci_indices = NULL, ...)

## S3 method for class 'tbl_df'
show_genotypes(.x, indiv_indices = NULL, loci_indices = NULL, ...)

## S3 method for class 'vctrs_bigSNP'
show_genotypes(.x, indiv_indices = NULL, loci_indices = NULL, ...)

Arguments

.x

a vector of class vctrs_bigSNP (usually the genotype column of a gen_tibble object), or a gen_tibble.

indiv_indices

indices of individuals

loci_indices

indices of loci

...

currently unused.

Value

a matrix of counts of the alternative alleles (see show_loci()) to extract information on the alleles for those loci from a gen_tibble.

Examples

example_gt <- load_example_gt("gen_tbl")

example_gt %>% show_genotypes()

tidypopgen documentation built on Aug. 28, 2025, 1:08 a.m.