CombineBaseCounts: Combine BaseCounts

Description Usage Arguments Details Value Examples

View source: R/CombineBaseCounts.R

Description

CombineBaseCounts sums a vector of base counts

Usage

1

Arguments

x

character vector in REDItools BaseCount format

na.rm

logical. Should missing values (including NaN) be removed?

Details

The input to CombineBaseCounts should be a vector of character strings in REDItools BaseCount format: [A, C, G, T] where A, C, G, and T represent the number of reads with As, Cs, Gs, and Ts mapping to that site, respectively

Value

A string with aggregated base counts

Examples

1
2
bc <- c("[6, 0, 4, 0]", "[2, 0, 8, 0]", NA)
CombineBaseCounts(bc, na.rm = TRUE)

okg3/RNAEditingAnalysisTools documentation built on April 2, 2020, 5:04 a.m.