Description Usage Arguments Value See Also Examples
gt_tab_per_sample
reads in the genotype variables from the
variant file and returns the number of different genotypes in each of these
variables.
1 | gt_tab_per_sample(vars, rowSums = TRUE)
|
vars |
The data frame of vars. |
rowSums |
logical: should the sum of genotypes per sample (row) be output (default: TRUE)? |
A data frame with the samples in rows and the different genotypes in columns, and the counts of each genotype per sample in the cells. A value of NA means that the sample did not have the specific genotype.
1 2 3 4 | ## Not run:
gt_tab_per_sample(vars, rowSums = TRUE) # assumes you have a vars data frame
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.