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

LDA Effect Size (LefSE) Error Message #2816

Open
cmk6jm opened this issue Jan 23, 2020 · 1 comment
Open

LDA Effect Size (LefSE) Error Message #2816

cmk6jm opened this issue Jan 23, 2020 · 1 comment

Comments

@cmk6jm
Copy link

@cmk6jm cmk6jm commented Jan 23, 2020

Hello,

First of all thank you for all of your hard work developing such an informative and intuitive tool.
I have been successful in running the LEfSE analyses for some of my data, but unfortunately,
for the majority I get an error message when it comes to the step where the Effect size is calculated.
The error message is copied below:

/galaxy_venv/local/lib/python2.7/site-packages/rpy2/rinterface/init.py:185: RRuntimeWarning:
Error in (function (file = "", n = NULL, text = NULL, prompt = "?", keep.source = getOption("keep.source"), :
:1:47: unexpected numeric constant
1: effect.size <- abs(mean(LD[sub_d[,"class"]==""1
^

warnings.warn(x, RRuntimeWarning)
Traceback (most recent call last):
File "/shed_tools/testtoolshed.g2.bx.psu.edu/repos/george-weingart/lefse/a6284ef17bf3/lefse/run_lefse.py", line 89, in
if params['rank_tec'] == 'lda': lda_res,lda_res_th = test_lda_r(cls,feats,class_sl,params['n_boots'],params['f_boots'],
params['lda_abs_th'],0.0000000001,params['nlogs'])
File "/export/shed_tools/testtoolshed.g2.bx.psu.edu/repos/george-weingart/lefse/a6284ef17bf3/lefse/lefse.py",
line 199, in test_lda_r
robjects.r('effect.size <- abs(mean(LD[sub_d[,"class"]=="'+p[0]+'"]) - mean(LD[sub_d[,"class"]=="'+p[1]+'"]))')
File "/galaxy_venv/local/lib/python2.7/site-packages/rpy2/robjects/init.py", line 358, in call
p = _rparse(text=StrSexpVector((string,)))
rpy2.rinterface.RRuntimeError: Error in (function (file = "", n = NULL, text = NULL, prompt = "?",
keep.source = getOption("keep.source"), :
:1:47: unexpected numeric constant
1: effect.size <- abs(mean(LD[sub_d[,"class"]==""1
^

For your reference, I am using this tool to analyze human gut microbiome data.

Also, I cross-posted to the forum (link: https://help.galaxyproject.org/t/lda-effect-size-error/2840)

Any guidance would be greatly appreciated.

all the best,
Caroline

@bernt-matthias
Copy link
Contributor

@bernt-matthias bernt-matthias commented Sep 17, 2020

Replied on help.galaxyproject.org

Loading

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

Successfully merging a pull request may close this issue.

None yet
2 participants