Build a charging count matrix for differential charging analysis.
Source:R/deseq.R
charging_count_matrix.RdCreate a count matrix with two columns per sample (charged and uncharged), suitable for a DESeq2 interaction design that tests for differences in charging ratios between conditions.
Arguments
- charging_data
A tibble of combined charging data with columns
ref,counts_charged,counts_uncharged, andsample_id(as returned byread_charging_multi()).- min_count
Minimum total count across all columns for a tRNA to be retained. Default
10.
Value
An integer matrix with tRNA names as row names. Column names
are {sample_id}_charged and {sample_id}_uncharged.
Examples
if (FALSE) { # \dontrun{
charging <- read_charging_multi(paths)
mat <- charging_count_matrix(charging)
} # }