A multiple alignment is trimmed by removing columns with too many indels (gap-symbols). Any
columns containing a fraction of gaps larger than gap.mid
are discarded. For this reason, gap.mid
should always be farily close to 1.0 therwise too many columns may be discarded, destroying the alignment.
Due to the heuristics of multiple alignment methods, both ends of the alignment tend to be uncertain and most
of the trimming should be done at the ends. Starting at each end, columns are discarded as long as their fraction of gaps
surpasses gap.end
. Typically gap.end
can be much smaller than gap.mid
, but if
set too low you risk that all columns are discarded!