MergeSumCounts: MergeSumCounts

View source: R/MergeSumCounts.R

MergeSumCountsR Documentation

MergeSumCounts

Description

Creates a table of sums of maternal and paternal alellic counts for given replicates.

Usage

MergeSumCounts(df, reps = NA, thr = NA, thrUP = NA, thrType = "each")

Arguments

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

Value

A table with IDs and calculated allelic counts for each of the given replicates

Examples

MeanCoverage(allelicCountsTable, reps=c(1,2))


gimelbrantlab/Qllelic documentation built on Dec. 30, 2024, 4:02 p.m.