Retain all ASVs collapsing to specific genera

Hello!
Please, check filtering tutorial, especially taxonomy based part of it, and this post. You can find right commands in the tutorial and examples in the post.