Description Usage Arguments Details Value Author(s) Examples
From a GAlignments calculate the real corresponding position for each read based on its cigar.
1 2 3 4 5 | realCigarPosition.old(RleCigar, BpPos)
realCigarPositions.old(RleCigar)
realCigarPositionsList.old(RleCigarList)
|
RleCigar |
An |
BpPos |
the absolute position on the chromosome of interest |
RleCigarList |
An |
The main intention for these functions are to be the internal functions for
scanForHeterozygotes
and getAlleleCount
.
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.
Jesper R. Gadin
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.