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 deeparg #6646

Open
wants to merge 22 commits into
base: main
Choose a base branch
from
Open

Add deeparg #6646

wants to merge 22 commits into from

Conversation

hugolefeuvre
Copy link
Contributor

@hugolefeuvre hugolefeuvre commented Dec 19, 2024

FOR CONTRIBUTOR:

  • I have read the CONTRIBUTING.md document and this tool is appropriate for the tools-iuc repo.
  • License permits unrestricted use (educational + commercial)
  • This PR adds a new tool or tool collection
  • This PR updates an existing tool or tool collection
  • This PR does something else (explain below)

@hugolefeuvre
Copy link
Contributor Author

Problem when using deepARG in a container with the Theano package: IOError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/site-packages/Theano-0.8.2-py2.7.egg-info/PKG-INFO'
This problem has already been reported and closed in this issue: nf-core/funcscan#23 but there's no clear explanation of how they solved the problem, so I have restarted the discussion to try to get more information.

@jfy133
Copy link

jfy133 commented Dec 20, 2024

Just so it doesn't get lost in the closed funcscan thread:

We ended up mounting a dummy file (the bash binary of the execution node) but with the name PKG_INFO:

https://github.com/nf-core/funcscan/blob/master/modules%2Fnf-core%2Fdeeparg%2Fpredict%2Fmain.nf#L10-L18

Also I see lower down in the script execution that we also make a directory for theanos which you may also have to do for cases of singularity (if you use that)

    # Theano needs a writable space and uses the home directory by default,
    # but the latter is not always writable, for instance when Singularity
    # is run in --no-home mode
    mkdir -p theano
    export THEANO_FLAGS="base_compiledir=\$PWD/theano"

deeparg predict <...>

I hope that helps/works for you!

@hugolefeuvre
Copy link
Contributor Author

Thank you for your answer @jfy133 ! I'll see if it works for me !

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