This function scans a set of aligned DNA sequences and returns a matrix with information of the localisations and lengths on alignment gaps.
DNAbin2indel(x)
an object of class "DNAbin"
.
a numeric matrix.
The output matrix has the same dimensions than the input one with, either a numeric value where an alignment gap starts giving the length of the gap, or zero. The rownames are kept.
DNAbin
, as.DNAbin
, del.gaps
,
seg.sites
, image.DNAbin
,
checkAlignment