gt_tab_per_sample: Genotype table per sample.

Description Usage Arguments Value See Also Examples

Description

gt_tab_per_sample reads in the genotype variables from the variant file and returns the number of different genotypes in each of these variables.

Usage

1

Arguments

vars

The data frame of vars.

rowSums

logical: should the sum of genotypes per sample (row) be output (default: TRUE)?

Value

A data frame with the samples in rows and the different genotypes in columns, and the counts of each genotype per sample in the cells. A value of NA means that the sample did not have the specific genotype.

See Also

table.

Examples

1
2
3
4
## Not run: 
gt_tab_per_sample(vars, rowSums = TRUE) # assumes you have a vars data frame

## End(Not run)

bahlolab/varpr documentation built on May 11, 2019, 5:26 p.m.