Using the take_named_seqs app we can select sequences from a collection that match provided names. For instance, we could be interested in an alignment of sequences from Humans with those from our two closest relatives.
Creating the take_named_seqs app with the argument negate=True will exclude sequences that match the provided names. For instance, perhaps the Galago has got to go.
from cogent3 import get_appno_galagos = get_app("take_named_seqs", "Galago", negate=True)no_galago_aln = no_galagos(hrg_aln)no_galago_aln.names