Description Usage Arguments Details Value Examples
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.
1 | tfrdpub(genotype, K, map, f)
|
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. |
Please download datasets from GitHub See README.
A list contains g, q, f which can be used for calculation.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.