get_snp_genos: takes a data frame of SNP alleles and converts them to a...

Description Usage Arguments Details Value Examples

Description

Let L be the number of loci and N the number of alleles. The data frame should have 2L columns and N rows. The rownames should be the individual names. The locus names should be the odd numbered column names. The even numbered column names are not used.

Usage

1

Arguments

snp_frame

The data frame of SNPs

Details

A SNP allele can be denoted by any string or number or NA. Each SNP must have no more than two alleles.

Value

This returns a list with the following components:

mat

An L x N matrix of 0, 1, 2, or NA's

alle_names

The names of the alleles. The first of these is what the "0" allele is while the second is the name of the "1" allele.

Examples

1
snp_genos <- get_snp_genos(fs_dev_test_data$plain_snp_data)

eriqande/fullsniplings documentation built on May 16, 2019, 8:45 a.m.