Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

after run_lefse, plot_cladogram error #94

Open
LeeJH5120 opened this issue Jan 27, 2023 · 4 comments
Open

after run_lefse, plot_cladogram error #94

LeeJH5120 opened this issue Jan 27, 2023 · 4 comments

Comments

@LeeJH5120
Copy link

Using the Phyloseq object, after run_lefse, plot_ef_bar was normally derived.

However, plot_cladogram or microbiomeMarker::plot_cladogram
causes the following problem:

command
microbiomeMarker::plot_cladogram(phyloseq_df_run_lefse, color = c(A="steelblue",B="orange",C="darkgray",D="red",E="pink"))

"Error in if (n <= length(x)) { : missing value where TRUE/FALSE needed"

@SouravDutta79
Copy link

Hi,
I am also getting the same error.

I have used this commands -
mm_lefse <- run_lefse(
ps,
taxa_rank = "Genus",
norm = "rarefy",
group = "bodysite",
subgroup = "genotype"
)

plot_cladogram(mm_lefse, color = c("brown","blue","red","green"))

Error coming:
Error in if (n <= length(x)) { : missing value where TRUE/FALSE needed

Please help!

@BlueK77
Copy link

BlueK77 commented Jun 19, 2023

Hi, I am part of this club. I suffer the same error. In my opinion it seems to depend on taxa names as i manages to solve it filtering unassinged taxa. Unluckly I am facing the same problem again and i've already filtered taxa...I do not mind to share my left_out object if necesary

Thanx

@camcecc
Copy link

camcecc commented Apr 2, 2024

Same issue here after one year from yours, I agree with BlueK77 as I get the error only in the overall lefse output but not from the marker subset...

@zhanxw
Copy link

zhanxw commented May 16, 2024

This issue is likely caused by invalid taxa names. For example, if the "Species" is unknown is the tax_table(ps), put NA there. This resolved our problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants