findConsensusReads: Find consensus reads A function to analyze consensus read...

Description Usage Arguments Value Examples

View source: R/alignment.R

Description

Find consensus reads A function to analyze consensus read tables generated with parseBamFiles or a UMIexperiment object containing reads.

Usage

1
2
3
4
5
6
findConsensusReads(
  object,
  consDepth = 0,
  groupBy = c("none", "sample", "position", "both"),
  pattern = NULL
)

Arguments

object

Either a tibble generated with parseBamFiles or a UMIexperiment object

consDepth

Minimum consensus depth to keep. Default is 0.

groupBy

Should data be grouped by position, sample, both or not at all.

pattern

Regular expression

Value

A data table

Examples

1
2
3
4
5
6
library(umiAnalyzer)
main <- system.file("extdata", package = "umiAnalyzer")
simsen <- createUmiExperiment(main, importBam = TRUE)

reads <- findConsensusReads(simsen)
reads

umiAnalyzer documentation built on Nov. 25, 2021, 9:07 a.m.