Phyloseq R error: Error in if (xi > xj) 1L else -1L : missing value where TRUE/FALSE needed
0
0
Entering edit mode
5.8 years ago
arsilan324 ▴ 90

Hi all,

I am trying to use phyloseq package in R for plotting 16S amplicon sequencing results. But I get this error after running the command.

> plot_bar(physeq2, fill = "Annotaton")   
> Error in if (xi > xj) 1L else -1L : missing value where TRUE/FALSE needed

I am using the data whose subset looks like this,

SR2_S84 SR3_S85 SR4_S89 SR5_S90 SR6_S91
0   0   0   0   0
0   0.000666183 0   0   0
0   0   0   0   0
0.007258343 0.005995643 0.001528514 0.002698655 0.002695369

Can you please comment what mistake I am doing? Thanks

phyloseq R 16S amplicon • 2.2k views
ADD COMMENT
0
Entering edit mode

Could you please post example data?

ADD REPLY
0
Entering edit mode

A subset looks like this

SR2_S84 SR3_S85 SR4_S89 SR5_S90 SR6_S91
0   0   0   0   0
0   0.000666183 0   0   0
0   0   0   0   0
0.007258343 0.005995643 0.001528514 0.002698655 0.002695369

When I use the actual numbers, it works; but when i use the percent data (re-standardized), it gives error.

Thanks

ADD REPLY
0
Entering edit mode

Please edit your question and add this detail in.

ADD REPLY

Login before adding your answer.

Traffic: 2517 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6