Comments (7)
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.
Having similar error, curious if this was ever figured out?
from maaslin2.
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.
Aynone had a solution for this? Did you manage to run it?
from maaslin2.
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.
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.
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)
- Order changes of category variables in x-axis HOT 2
- Filtering of features by abundance HOT 1
- Edit Maaslin2 plot font sizes HOT 3
- Clarification for min_prevalence option HOT 3
- Version numbers are inconsistent between Github and Bioconductor HOT 1
- Install Maaslin2 in TSD HOT 1
- Confusion over factors of the "value" column in significant_results.tsv HOT 2
- Add `scatter_first_n` HOT 1
- Include version in log file? HOT 1
- ERROR: dependency 'lpsymphony' is not available for package 'Maaslin2' HOT 1
- Add options to choose colour and/or shape of point in scatterplot HOT 4
- xtfrm.data.frame issue HOT 1
- "Please provide the reference for the variable" error when running Maaslin2 HOT 1
- Use weight in the Maaslin2 HOT 1
- a HOT 3
- NOTE: Instead of opening issues in github, please consider creating a new topic in https://forum.biobakery.org/. Please read for more details. HOT 1
- rCLR transformation HOT 1
- Update maaslin2 bioconda recipe HOT 1
- Issue with windows system: cannot open file './Scratch/tmp_1/maaslin2.log HOT 1
- Please provide the reference for the variable 'diagnosis' which includes more than 2 levels: UC, CD, nonIBD HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from maaslin2.