From Coglan (2011) A little book of R for bioinformatics. https://a-little-book-of-r-for-bioinformatics.readthedocs.io/en/latest/# (Originally called printMsa)

clean_alignment(alignment, minpcnongap, minpcid)

Arguments

alignment

Alignment object

minpcnongap

Minimum percentage of non-gap

minpcid

Minimum percentage of identical bases