Description Usage Arguments Value
View source: R/estimate_quality.R
Counts the discordance of genotypes imputed.
1 | EstimateQuality(origin, masks, imputed, id = NULL)
|
origin |
path to original unmasked file |
masks |
path/to/masks.RDS, where masks.RDS keeps the masks created upstream with GenerateMaskSet and saved as *.RDS. |
imputed |
vector of paths to files imputed. In the case of fastPHASE, the elements are path/to/*_genotypes.out. In the case of vcf files, the elements are path/to/*.vcf or path/to/*.vcf.gz. The order of elements of vector and masks should coincide. |
id |
character or numeric, id of computational experiment. If you run several calculations with different model parameter to find the optimal one, you can mark each run with id for the convinience of further visualization. The argument is optional. |
A data frame with two columns: "discordance" and "id". If id argument is not provided, only "discordance" is returned. It contains a proportion of wrognly imputed genotypes. By this we mean that one or two alleles are not coincided with the original ones. The function returns the values for one set of test files.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.