Provides a detailed summary of an SNPDataLong object, including sample and SNP counts, proportion of missing data, and SNP distribution by chromosome if mapping information is available.

# S4 method for class 'SNPDataLong'
summary(object, ...)

Arguments

object

An object of class SNPDataLong.

...

Further arguments passed to methods.

Value

An object of class summary.SNPDataLong, which is a list with the following elements:

n_individuals

Integer. Number of individuals (rows of geno).

n_snps

Integer. Number of SNPs (columns of geno).

n_missing

Integer. Total number of missing genotype calls.

prop_missing

Numeric. Proportion of missing genotype calls.

by_chromosome

Either a table of SNP counts per chromosome (when the map provides Name and Chromosome) or NULL.

missing_by_chromosome

Either a table of SNPs with at least one missing call per chromosome, or NULL.

The object also has a dedicated print method that displays the summary on the console.