I need to create barplot with top ten genus.
The current barplot created with QIIME allows us to check with different taxa level but is there any way to only get top 10 or 20 of a genus or any taxa level?
I saw someone recommend to filter-features but that will only limit the number of samples included in the barplot but not the genus, correct?
filter-features will filter out features, not samples, from your table. So this would be an appropriate method to use:
use qiime taxa collapse to collapse at genus level
use qiime feature-table summarize to view a summary of the feature table and see the top 10 genera
use qiime feature-table filter-features to filter based on sequence depth, selecting a cutoff that will exclude the less abundant taxa.
note that this will adjust the relative frequencies though... so making a customized plot outside of QIIME 2 as @the_dummy recommends is probably the better way to go for making a "top 10" plot that conserves the original relative frequencies.