ChiLiubio / microeco

An R package for data analysis in microbial community ecology
GNU General Public License v3.0
181 stars 55 forks source link

Taxonomic names in LeFSe plot #316

Closed DpennaS closed 5 months ago

DpennaS commented 5 months ago

Hi!

I am doing a barplot with LeFSe results. I am using all taxa levels, and I have as results, for example, Comamonadaceae as a family and Comamonadaceae Family as a Genus. There is a parameter inside the function to prevent ploting both of them?

Best, Penna

ChiLiubio commented 5 months ago

Hi. You can delete those taxa by manipulating the data res_diff like this.

tmp <- your_object$res_diff 
# filter some
tmp <- tmp[tmp$Taxa != ".............something.............", ]
your_object$res_diff <- tmp
# then plot

Best, Chi

DpennaS commented 5 months ago

Got it, Thanks, Penna