fixStrand: Fixes the strand information

View source: R/ngsTools.R

fixStrandR Documentation

Fixes the strand information

Description

Fixes the strand information by either leaving it as it is, flipping it or setting both.

Usage

fixStrand(strandValues, strandMode = "sense")

flipStrand(strandValues)

Arguments

strandValues

a set of strand values + - and *.

strandMode

a character defining what should be done with the values:

  • sense returns strandValues without modifying them.

  • antisense returns the flipped strandValues.

  • both sets all the strandValues to "*".

Value

Returns a character vector or Rle object containing the strand information.

Functions

  • flipStrand: This function performs the flipping of the strand values.

Author(s)

Rehrauer, Hubert

Schmid, Peter

Examples

strandValues = c("+","+","-","*")
fixStrand(strandValues, "sense")
flipStrand(strandValues)

uzh/ezRun documentation built on Dec. 26, 2024, 9:53 a.m.