Description Usage Arguments Value See Also Examples
A function to remove rows with a high ratio of missing data from a dataframe. (e.g. variants from genotype)
1 | OmitPoorVariants(gt, min.qual, dp = NULL, verbose = TRUE)
|
gt |
A dataframe to process (e.g. a genotype dataframe) |
min.qual |
The minimum present data ratio under which the row will be deleted from the dataframe (from 0 to 1) |
dp |
An optionnal dataframe on which the process of |
verbose |
Logical. If TRUE (default), report status of the process along the execution. |
A dataframe or a list of dataframes.
If the parameter dp
is not set, return the gt
dataframe
without its rows where the missing data ratio was too high.
If the dp
is set, return the modified gt
as list$gt
;
list$dp
is the modified dp
dataframe with the same missing
rows as list$gt
.
1 2 3 4 5 6 | ## Not run:
OmitPoorVariants(genotype, 0.15)
OmitPoorVariants(genotype, 0.2, dp = depth)
OmitPoorVariants(genotype, 0.2, verbose = FALSE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.