noGapToGap: Convenience function to convert ungapped coordinates in a...

View source: R/plotDNA.R

noGapToGapR Documentation

Convenience function to convert ungapped coordinates in a reference function to what the coordinates would be in the gapped reference sequence

Description

Take a reference sequence with gaps and coordinates in the ungapped reference sequence and translate the coordinates to the corresponding positions in the gapped sequence

Usage

noGapToGap(refSeq, coords, gapChars = c("*", ".", "-"))

Arguments

refSeq

the sequence containing gaps

coords

coordinates on the ungapped refSeq to be converted into equivalent gapped coordinates

gapChars

characters interpreted as gaps

Value

A vector of coordinates in the gapped reference sequence

Examples

noGapToGap('AA--AA-A',c(1:5))

sherrillmix/dnaplotr documentation built on Oct. 29, 2022, 4:42 p.m.