View source: R/ThresholdingCounts.R
ThresholdingCounts | R Documentation |
Takes allelic counts table and returns table, where all genes that don't pass a given coverage threshold have NA coverage. Can be restricted to particular replicates.
ThresholdingCounts(df, reps = NA, thr = NA, thrUP = NA, thrType = "each")
df |
Allele counts dataframe: with 2n+1 columns, "ID" and 2n columns with ref & alt counts (rep1_ref, rep1_alt, rep2_ref, rep2_alt, ...) |
reps |
Optional (default=NA, all replicates), a vector of replicate numbers for which the analysis should be applied |
thr |
Optional (default=NA), threshold on the overall number of counts for a gene to be considered in the analysis |
thrUP |
Optional (default=NA), threshold for max gene coverage (default = NA) |
thrType |
Optional (default = "each", also can be "average" for average coverage on replicates), threshold type |
Allelic counts table with masked with NA undercovered genes, for selected replicates
ThresholdingCounts(df = allelicCountsTable, reps = c(1,2), thr = 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.