I am currently trying to filter specific taxa from my feature table. I have searched the forum and have found some information that has been helpful, but hasn't completely solved my issue. Currently, I want to eliminate the unassigned taxa as well as taxa that does not provide information at phylum level (k__Bacteria;__ and k__Bacteria;p__).
However, if I use the --p-include p__ parameter, the taxa k__Bacteria;p__ is not eliminated. I have tried several ways, but can seem to find a correct way to eliminate them.
I think its the structure of your query. The trick I use when I want to keep a level is to ask for the new lower level.
So include ";c__" should get me anything with at least a class in the string. When you collapse your data, that class information is hidden, but you only have taxa that have a string.
Edit: I love two different solutions to the same problem!