Description Usage Arguments Value
silently get what you can out of an expression
silently get what you can out of an expression
Pull the GT (maximum likelihood genotype) from a vcf file snp row.
Pull the DS (alternate allele dosage) from a vcf file snp row.
Pull the GP (genotype probabilities) from a vcf file snp row.
1 2 3 4 5 6 7 8 9 |
expr |
the expression to try to evaluate |
snp_row |
the snp row from the VCF file (first cell is FORMAT) |
min_gt_count |
minimum number of observations required to keep a genotype group in the study. Five is the default, but I advocate a slightly higher value for research (10 or 20 maybe). |
If the expression evaluates without error, the evaluated expression. If there is an error in evaluating the expression, NA. Warnings are suppresssed.
If the expression evaluates without error, the evaluated expression. If there is an error in evaluating the expression, NULL. Warnings are suppresssed.
a data.frame where the first column is the ID and the second column is the genotype
a data.frame where the first column is the ID and the second column is the genotype
a data.frame where the first column is the ID and the second and third columns are genotype probabilities
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.