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

new variable auto restart #1

Open
wants to merge 2 commits into
base: automatic_restart
Choose a base branch
from

Conversation

nickhsmith
Copy link

@nickhsmith nickhsmith commented Jun 8, 2022

The issue is that params is a nextflow variable that can't be overridden in the script. When we wrote params.input = csv_from_old_run It doesn't actually update the params map.

However if we introduce a new variable params.step_input = csv_from_old_run if params.input is null or "" AND the mapping step matches. Then we can have a check

input_csv = params.input ? params.input : params.step_input
ch_input_sample = extract_csv(file(input_csv, checkIfExists: true))    

csv_input will be the same as params.input if it is non null/empty. OR it will be the csv determined by the retrieveInput function

FriederikeHanssen pushed a commit that referenced this pull request Jul 4, 2022
FriederikeHanssen pushed a commit that referenced this pull request Mar 29, 2023
Merge from dev into forked dev
FriederikeHanssen pushed a commit that referenced this pull request Apr 25, 2024
FriederikeHanssen pushed a commit that referenced this pull request Dec 10, 2024
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.

1 participant