tfrdpub: Transfer personal genotype raw data according public dataset

Description Usage Arguments Details Value Examples

Description

Transfer personal genotype raw data to g matrix which the number of row is 1 and the number of column is the number of SNPs used here.

Usage

1
tfrdpub(genotype, K, map, f)

Arguments

genotype

A data.frame contains your genotype information.

K

The number of populations

map

A data.frame, it should contain rsid, major allele and minor allele information for both plus and minus strands. You should download datasets from GitHub.

f

Frequency matrix learned from reference panel. You should download datasets from GitHub.

Details

Please download datasets from GitHub See README.

Value

A list contains g, q, f which can be used for calculation.

Examples

1
2
3
4
5
6
7
## download.file(url = 'https://github.com/wegene-llc/radmixture/
## raw/master/data/globe4.alleles.RData', destfile = 'K4.RData')
## download.file(url = 'https://github.com/wegene-llc/radmixture/
## raw/master/data/globe4.4.F.RData', destfile = 'K4f.RData')
## load('K4.RData')
## load('K4f.RData')
## res <- tfrdpub(genotype, 4, globe4.alleles, globe4.4.F)

Example output



radmixture documentation built on May 2, 2019, 6:11 a.m.