alexpiper / taxreturn

An R package for creating taxonomic reference databases for metabarcoding studies
GNU General Public License v3.0
8 stars 1 forks source link

Add function to check for stop codons #1

Closed alexpiper closed 4 years ago

alexpiper commented 4 years ago

While the PHMM is filtering out most non-homologous loci, some match well enough to make it through, but they have a frameshift mutation. Need to add a further function to check for this.

Potentially could use aligntranslation in decipher: seqs <- AlignTranslation(seqs) ranges <- MaskAlignment(seqs, type="ranges", threshold=0, maxFractionGaps = 0.2, showPlot = TRUE) # Mask columns with majority gaps - caused by pseudogenes seqs <- replaceAt(seqs, ranges) # remove the masked columns

alexpiper commented 4 years ago

This is now implemented in the function codon_filter()