conseq: Construct a consensus sequence

Description Usage Arguments Value Examples

View source: R/conseq.R

Description

Construct a consensus sequence

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
conseq(
  x,
  name = "conseq",
  type = c("prob", "ambig", "simple"),
  threshold = NULL,
  suppressAllGaps = FALSE,
  suppressInsGaps = TRUE,
  gapThreshold = NULL,
  columnOccupancy = 0.4,
  ...
)

Arguments

x

pileup object.

name

Name for consensus sequence.

type

One of "prob", "ambig" or "simple".

threshold

If type = "ambig", threshold to call an ambiguous consensus call.

suppressAllGaps

If type = "prob" or type = "ambig", suppress all gaps from consensus calling irrespective of the frequency of the gap.

suppressInsGaps

If type = "prob", suppress gaps at insertion position from consensus calling based on columnOccupancy.

columnOccupancy

Minimum occupancy (1 - fraction of gap) below which bases at insertion position are excluded from from consensus calling.

...

Additional arguments.

Value

A BStringSet object with a metadata list containing the slots:

zscore
freq
ambigs
insertions
deletions
consmat

Examples

1
###

DKMS-LSL/dr2s documentation built on March 14, 2021, 2:46 p.m.