gapToNoGap | R Documentation |
Take a reference sequence with gaps and coordinates in that gapped reference sequence and translate the coordinates to the corresponding positions in the gap free sequence. Note that positions landing on a gap are converted to the first 5' nongap position e.g. the fifth position of 'G—–G' is converted to 1 and the second position of '–G–GG' is converted to 0
gapToNoGap(refSeq, coords, gapChars = c("*", ".", "-"))
refSeq |
the sequence containing gaps |
coords |
coordinates on the gapped refSeq to be converted into equivalent nongap coordinates |
gapChars |
characters interpreted as gaps |
A vector of coordinates in the gap free reference sequence
gapToNoGap('AA--AA-A',c(1:8))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.