-
Notifications
You must be signed in to change notification settings - Fork 751
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 STIMULUS/CHECKTORCHMODEL #6898
base: master
Are you sure you want to change the base?
Conversation
The nf-test fails because the current version of the Python script expects a JSON and the test data is YAML. It will be fixed soon. |
Co-authored-by: alessiovignoli <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some comments here and there. Not sure about the container, if it can be in nf-core modules with just that. Is there a similar module?
container "docker.io/mathysgrapotte/stimulus-py:0.2.4.dev" | ||
|
||
input: | ||
path(data) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no meta? :(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've found a way to put it back in, it might be useful
# initialize Ray | ||
ray start --head --port=6379 --temp-dir /tmp/ray | ||
|
||
# wait or it to start |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# wait or it to start | |
# wait for it to start |
I've addressed the comments. I'm still working on the Conda tests. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost there. Some more comments, and to find out why the test are failing!
tuple val(meta), path(data), path(data_config) | ||
tuple val(meta), path(model), path(model_config), path(initial_weights) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tuple val(meta), path(data), path(data_config) | |
tuple val(meta), path(model), path(model_config), path(initial_weights) | |
tuple val(meta) , path(data), path(data_config) | |
tuple val(meta2), path(model), path(model_config), path(initial_weights) |
@@ -0,0 +1,60 @@ | |||
process STIMULUS_CHECKTORCHMODEL { | |||
tag "$data_config - $data" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not just:
tag "$meta.id"
|
||
script: | ||
def args = task.ext.args ?: '' | ||
prefix = task.ext.prefix ?: model.baseName.replaceFirst(/\.py/, "") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a suggestion here. Instead of trying to parse the model's file name, shouldn't we just use the meta.id
as in every other module? You can feed the module the python filename as a meta then, when calling the module.
pattern: "*.{yml,yaml}" | ||
ontologies: | ||
- edam: "http://edamontology.org/format_3464" | ||
- - meta: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- - meta: | |
- - meta2: |
I've addressed the second review comments. We're aware of failing conda tests and linting and we're working to get the package to conda-forge to fix the problems. If there are any more issues, we'll address them afterwards. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll be on standby to do a final check after the conda env is fixed.
Closes #6872
Closes nf-core/deepmodeloptim#197
PR checklist
versions.yml
file.label
nf-core modules test <MODULE> --profile docker
nf-core modules test <MODULE> --profile singularity
nf-core modules test <MODULE> --profile conda