Giter Club home page Giter Club logo

Comments (7)

himelmallick avatar himelmallick commented on August 10, 2024

Hi @negin1986 - sorry for the delay in getting back to you. Could you please send a minimum reproducible example so that I can debug?

from maaslin2.

jmlue avatar jmlue commented on August 10, 2024

Having similar error, curious if this was ever figured out?

from maaslin2.

tamburinif avatar tamburinif commented on August 10, 2024

I had the same Error in FUN(newX[, i], ...) : invalid 'type' (character) of argument error when I was trying to run Maaslin2 by supplying data frames as input instead of the string filepaths to the input files as in the demo (running in Rstudio).

I got a different error when I tried to read the demo files into data frames and run Maaslin2. To me, it seems ideal that the function would accept either data frames or filepaths as input.

from maaslin2.

yilmazbah avatar yilmazbah commented on August 10, 2024

Aynone had a solution for this? Did you manage to run it?

from maaslin2.

yilmazbah avatar yilmazbah commented on August 10, 2024

I have tried with your example files too and have the same output error:

2020-01-27 17:56:16 INFO::Running selected normalization method: TSS
Error in FUN(newX[, i], ...) : invalid 'type' (character) of argument
In addition: Warning message:
In vegan::decostand(features_norm, method = "total", MARGIN = 1, :
input data contains negative entries: result may be non-sense

Have no idea what's happening because I was using it until recently.

Thank you so much for the help.

Bahti

from maaslin2.

jacodela avatar jacodela commented on August 10, 2024

I have had the same issue, even with the test data the package provides, but only when the input is a data frame from R; otherwise it works when providing the path to a file. I found a workaround by writing my tables to a tmp file and then executing the function, although it is kind of annoying having to do this

# Write files to tmp and execute
tmp_data = tempfile(pattern = "data")
write_delim(Relabund_data, tmp_data, delim = "\t")


tmp_metadata = tempfile(pattern = "metadata")
write_delim(Metadata_LMs, tmp_metadata, delim = "\t")

fit_data <- Maaslin2(tmp_data, tmp_metadata, "out/dir")

from maaslin2.

yilmazbah avatar yilmazbah commented on August 10, 2024

Dear Jacobo,
Thank you so much. Actually I managed to do as you suggested. I am so sorry that I forgot to add my working commands here. But I really appreciate your help too.
Cheers,
Bahti

from maaslin2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.