cigar-utilities: realCigarPosition

Description Usage Arguments Details Value Author(s) Examples

Description

From a GAlignments calculate the real corresponding position for each read based on its cigar.

Usage

1
2
3
4
5

Arguments

RleCigar

An Rle containing cigar information

BpPos

the absolute position on the chromosome of interest

RleCigarList

An RleList containing cigar information

Details

The main intention for these functions are to be the internal functions for scanForHeterozygotes and getAlleleCount.

Value

realCigarPosition returns the new position realCigarPositions returns a vector with the corrected positions to be subsetted from a read. realCigarPositionsList returns a list where each element i a vector with the corrected positions to be subsetted from a read.

Author(s)

Jesper R. Gadin

Examples

1
2
3
4
5
6
  RleCigarList <-  cigarToRleList('3M4I93M')
  BpPos <- 5

  newPos <- realCigarPosition.old(RleCigar=RleCigarList[[1]], BpPos)
  newPositions <- realCigarPositions.old(RleCigar=RleCigarList[[1]])
  newPositionsList <- realCigarPositionsList.old(RleCigarList=RleCigarList)

AllelicImbalance documentation built on Nov. 8, 2020, 6:52 p.m.