Skip to contents

A dataset containing example genotype data for 20 SNPs, including 10 indels. This data shows genotype calls for multiple samples using numeric encoding (0, 1, 2).

Usage

example_genotypes

Format

A data frame with 20 rows and 4 columns:

probeset_id

Character. SNP identifier (SNP1 to SNP20)

Sample1

Numeric. Genotype codes (0, 1, 2) for Sample1

Sample2

Numeric. Genotype codes (0, 1, 2) for Sample2

Sample3

Numeric. Genotype codes (0, 1, 2) for Sample3

Details

Genotype encoding: 0 = homozygous reference, 1 = heterozygous, 2 = homozygous alternative. For indels (SNP11-SNP20): 0 = D/D, 1 = D/I, 2 = I/I.

Examples

data(example_genotypes)
head(example_genotypes)
#>   probeset_id Sample1 Sample2 Sample3
#> 1        SNP1       0       2       2
#> 2        SNP2       0       1       1
#> 3        SNP3       1       1       0
#> 4        SNP4       1       0       2
#> 5        SNP5       2       0       0
#> 6        SNP6       1       1       2
table(example_genotypes$Sample1)
#> 
#>  0  1  2 
#>  7 10  3