Skip to content

Commit

Permalink
Merge pull request #583 from AlexsLemonade/allyhawkins/run-multiple-p…
Browse files Browse the repository at this point in the history
…rojects

Accommodate running multiple projects
  • Loading branch information
allyhawkins committed Nov 17, 2023
2 parents 01f6b19 + 280428e commit b865a3a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions main.nf
Expand Up @@ -73,6 +73,8 @@ workflow {
if (params.project){
// projects will use all runs in the project & supersede run_ids
run_ids = []
// allow for processing of multiple projects at once
project_ids = params.project?.tokenize(',')
}else{
run_ids = params.run_ids?.tokenize(',') ?: []
}
Expand Down Expand Up @@ -127,8 +129,8 @@ workflow {
|| (it.run_id in run_ids)
|| (it.library_id in run_ids)
|| (it.sample_id in run_ids)
|| (it.submitter == params.project)
|| (it.project_id == params.project)
|| (it.submitter in project_ids)
|| (it.project_id in project_ids)
}
.branch{
bulk: it.technology in bulk_techs
Expand Down

0 comments on commit b865a3a

Please sign in to comment.