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

Samshee improvements #237

Closed
2 tasks
edmundmiller opened this issue Aug 11, 2024 · 3 comments
Closed
2 tasks

Samshee improvements #237

edmundmiller opened this issue Aug 11, 2024 · 3 comments
Milestone

Comments

@edmundmiller
Copy link
Collaborator

edmundmiller commented Aug 11, 2024

          Is this stub running the same script?

That defeats the purpose of a stub, its should just pass, and I think the rest of it isn't necessary. It can even take in the same sample sheet and json, just don't run the validation.

Originally posted by @edmundmiller in #234 (comment)

@nschcolnicov
Copy link
Contributor

Hi @edmundmiller,
For the stub run I can modify it to be just:

stub:
    """
    cat <<-END_VERSIONS > versions.yml
    "${task.process}":
        samshee: \$( python -m pip show --version samshee | grep "Version" | sed -e "s/Version: //g" )
        python: \$( python --version | sed -e "s/Python //g" )
    END_VERSIONS
    """

About error handling, the script doesn't return an error exit status by itself, which is why I had to add the snippet for making it fail if it returned the "Validation failed" message.
I'm not sure what you mean by having it fail at a workflow level instead of a process level, does this mean to have the process return a value and then add a rule in the workflow to crash depending on the value that is returned by the process? If this is what you mean, what would be the advantage of having this vs having it fail at a process level?

@apeltzer
Copy link
Member

My understanding here was, that the pipeline should fail immediately for this process if it fails. We could handle this also via the modules.config and setting the errorStrategy for samshee to something that https://www.nextflow.io/docs/latest/process.html#errorstrategy immediately fails such as errorStrategy terminate within the samshee process configuration. That should be feasible and make it fail the entire pipeline if it doesn't validate the samplesheet properly ✅

@apeltzer
Copy link
Member

Stub looks good to me 👍

@nschcolnicov nschcolnicov mentioned this issue Aug 12, 2024
11 tasks
@nschcolnicov nschcolnicov moved this from In Progress to On hold in nf-core/demultiplexing project board Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants