Error in FUN(newX[, i], ...) : trait is binary?

test-transposed_copy.txt (4.5 MB)


I am attempting to run melonpann predict on my own UniRef90 annotation data (produced via Humann3) that I (believe) I have formatted correctly (see attachment).

The file looks to be in the proper input format, however, the following error message results when trying to run it.

Rscript ~/melonnpan/predict_metabolites.R -i test-transposed_copy.txt -o Output/

Error in FUN(newX[, i], …) : trait is binary
Calls: → apply → FUN

I was able to run melonpann successfully on the test data provided by the tutorial.

I was curious if there is something wrong with my input file perhaps?

Any guidance would be appreciated.

Thank you,

Hi @Rachael - any chance you have binary features in your data? If yes, you need to remove them as discussed here and here.

Please let me know if you encounter any other issues.


Hello Himel,

There were binary features in my data, and I was able to successfully remove them.

Thank you for your help!

1 Like