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

Add carveme #1446

Draft
wants to merge 15 commits into
base: master
Choose a base branch
from
Draft

Add carveme #1446

wants to merge 15 commits into from

Conversation

lhtxa
Copy link

@lhtxa lhtxa commented Jul 4, 2024

Hi @bgruening !
I saw your previous comments, it just took me a little time to review and fix the issues.
Thank you for the suggestions, here is the updated wrapper.

@bgruening
Copy link
Owner

Can you please reduce the size of the test data? Then please look at the failing linting tests ...

 .. WARNING: Missing shed metadata field [remote_repository_url] for repository
.. WARNING: Missing shed metadata field [homepage_url] for repository

tools/carveme/carveme.xml Outdated Show resolved Hide resolved
tools/carveme/carveme.xml Outdated Show resolved Hide resolved
@bgruening
Copy link
Owner

https://anaconda.org/bioconda/carveme/files 1.6.1 is the version that you need.

@bgruening
Copy link
Owner

We now have this error message:

/usr/local/lib/python3.12/site-packages/reframed/core/parser.py:9: SyntaxWarning: invalid escape sequence '\w'
  id_re = '[a-zA-Z]\w*'
/usr/local/lib/python3.12/site-packages/reframed/core/parser.py:10: SyntaxWarning: invalid escape sequence '\d'
  pos_float_re = '\d+(?:\.\d+)?(?:e[+-]?\d+)?'
/usr/local/lib/python3.12/site-packages/reframed/core/parser.py:11: SyntaxWarning: invalid escape sequence '\d'
  float_re = '-?\d+(?:\.\d+)?(?:e[+-]?\d+)?'
/usr/local/lib/python3.12/site-packages/reframed/core/parser.py:13: SyntaxWarning: invalid escape sequence '\s'
  compound = '(?:' + pos_float_re + '\s+)?' + id_re
/usr/local/lib/python3.12/site-packages/reframed/core/parser.py:14: SyntaxWarning: invalid escape sequence '\s'
  expression = compound + '(?:\s*\+\s*' + compound + ')*'
/usr/local/lib/python3.12/site-packages/reframed/core/parser.py:15: SyntaxWarning: invalid escape sequence '\['
  bounds = '\[\s*(?P<lb>' + float_re + ')?\s*,\s*(?P<ub>' + float_re + ')?\s*\]'
/usr/local/lib/python3.12/site-packages/reframed/core/parser.py:15: SyntaxWarning: invalid escape sequence '\s'
  bounds = '\[\s*(?P<lb>' + float_re + ')?\s*,\s*(?P<ub>' + float_re + ')?\s*\]'
/usr/local/lib/python3.12/site-packages/reframed/core/parser.py:15: SyntaxWarning: invalid escape sequence '\s'
  bounds = '\[\s*(?P<lb>' + float_re + ')?\s*,\s*(?P<ub>' + float_re + ')?\s*\]'
/usr/local/lib/python3.12/site-packages/reframed/core/parser.py:17: SyntaxWarning: invalid escape sequence '\s'
  reaction = '^(?P<reaction_id>' + id_re + ')\s*:' + \
/usr/local/lib/python3.12/site-packages/reframed/core/parser.py:18: SyntaxWarning: invalid escape sequence '\s'
  '\s*(?P<substrates>' + expression + ')?' + \
/usr/local/lib/python3.12/site-packages/reframed/core/parser.py:19: SyntaxWarning: invalid escape sequence '\s'
  '\s*(?P<direction>-->|<->)' + \
/usr/local/lib/python3.12/site-packages/reframed/core/parser.py:20: SyntaxWarning: invalid escape sequence '\s'
  '\s*(?P<products>' + expression + ')?' + \
/usr/local/lib/python3.12/site-packages/reframed/core/parser.py:21: SyntaxWarning: invalid escape sequence '\s'
  '\s*(?P<bounds>' + bounds + ')?' + \
/usr/local/lib/python3.12/site-packages/reframed/core/parser.py:22: SyntaxWarning: invalid escape sequence '\s'
  '\s*(?P<objective>' + objective + ')?$'
/usr/local/lib/python3.12/site-packages/reframed/core/parser.py:24: SyntaxWarning: invalid escape sequence '\s'
  self.regex_compound = compile('(?P<coeff>' + pos_float_re + '\s+)?(?P<met_id>' + id_re + ')')
diamond v2.1.9.163 (C) Max Planck Society for the Advancement of Science, Benjamin Buchfink, University of Tuebingen
Documentation, support and updates available at http://www.diamondsearch.org
Please cite: http://dx.doi.org/10.1038/s41592-021-01101-x Nature Methods (2021)

#CPU threads: 4
Scoring parameters: (Matrix=BLOSUM62 Lambda=0.267 K=0.041 Penalties=11/1)
Database input file: /usr/local/lib/python3.12/site-packages/carveme/data/generated/bigg_proteins.faa
Opening the database file... 
Error opening file /usr/local/lib/python3.12/site-packages/carveme/data/generated/bigg_proteins.dmnd: Permission denied
Read-only file system
Error: Error opening temporary file /tmp/tmpu9rg1smj/files/5/1/7/diamond-tmp-tX5Q7D

@bgruening
Copy link
Owner

You can find the planemo output here: https://github.com/bgruening/galaxytools/actions/runs/9806570824?pr=1446

@lhtxa
Copy link
Author

lhtxa commented Jul 5, 2024

@bgruening, the first time CarveMe runs, it creates a database with Diamond. It seems the error is due to the lack of permissions to write that database in CarveMe's directory because when testing there, it is only allowed to write in the working directory. Do you have any suggestions to work around this?

@bgruening
Copy link
Owner

In which folder does careme treis to write?

Only the CWD is writeable in a container setting - which we are testing here.

@lhtxa
Copy link
Author

lhtxa commented Jul 5, 2024

It seems it is inside the CarveMe folder itself. In 'carveme/data/generated/'

@bgruening
Copy link
Owner

That is not allowed. Galaxy is a multi user system and we need to ensure every user can only write to the current job working dir

@bgruening
Copy link
Owner

Do you need help here?

@lhtxa
Copy link
Author

lhtxa commented Jul 14, 2024 via email

@bgruening
Copy link
Owner

Imho a tool installation should be read-only and during runtime no one should be allowed to write into it. This is necessary for reproducibility and to have clean installation environments.

@lhtxa
Copy link
Author

lhtxa commented Jul 15, 2024 via email

@bgruening
Copy link
Owner

@lhtxa anything we can help here?

@lhtxa
Copy link
Author

lhtxa commented Aug 16, 2024 via email

@SaimMomin12
Copy link
Contributor

Hi @lhtxa, you can mark this PR as draft. Please feel to let us know if you know any help with the tool integration.

@bgruening bgruening marked this pull request as draft August 19, 2024 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants