sgkit.display_genotypes#

sgkit.display_genotypes(ds, max_variants=60, max_samples=10)#

Display genotype calls.

Display genotype calls in a tabular format, with rows for variants, and columns for samples. Genotypes are displayed in the same manner as in VCF. For example, 1/0 is a diploid call of the first alternate allele and the reference allele (0). Phased calls are denoted by a | separator. Missing values are denoted by ..

Parameters:
ds Dataset

The dataset containing genotype calls in the call/genotype variable, and (optionally) phasing information in the call/genotype_phased variable. If no phasing information is present genotypes are assumed to be unphased.

max_variants int (default: 60)

The maximum number of variants (rows) to display. If there are more variants than this then the table is truncated.

max_samples int (default: 10)

The maximum number of samples (columns) to display. If there are more samples than this then the table is truncated.

Return type:

GenotypeDisplay

Returns:

: A printable object to display genotype information.