Skip to content

Commit

Permalink
add merge and decode as individual step in nextflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rxu17 committed Oct 25, 2024
1 parent 883e972 commit 4b26dff
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ workflow BPC_PIPELINE {
if (params.step == "update_potential_phi_fields_table") {
update_potential_phi_fields_table(ch_comment, params.production)
// validate_data.out.view()
} else if (params.step == "merge_and_uncode_rca_uploads"){
merge_and_uncode_rca_uploads("default", ch_cohort, params.production)
}
} else if (params.step == "genie_bpc_pipeline"){
update_potential_phi_fields_table(ch_comment, params.production)
run_quac_upload_report_error(update_potential_phi_fields_table.out, ch_cohort)
Expand Down
2 changes: 1 addition & 1 deletion modules/merge_and_uncode_rca_uploads.nf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ process merge_and_uncode_rca_uploads {
if (production) {
"""
cd /usr/local/src/myscripts/
Rscript merge_and_uncode_rca_uploads.R -c $cohort -u -v
Rscript merge_and_uncode_rca_uploads.R -c $cohort -v --production
"""
}
else {
Expand Down
1 change: 1 addition & 0 deletions nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ profiles {
params {
// docker image parameters, see nextflow_schema.json for details
references_docker = "sagebionetworks/genie-bpc-pipeline-references"
uploads_docker = "sagebionetworks/genie-bpc-pipeline-uploads"
}
}
}
4 changes: 4 additions & 0 deletions nextflow_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@
"type": "string",
"description": "Name of docker to use in processes in scripts/references"
},
"uploads_docker":{
"type": "string",
"description": "Name of docker to use in processes in scripts/uploads"
},
"schema_ignore_params": {
"type": "string",
"description": "Put parameters to ignore for validation here separated by comma",
Expand Down
2 changes: 1 addition & 1 deletion scripts/uploads/merge_and_uncode_rca_uploads.R
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ main <- function(){
help="Save output to Synapse"),
make_option(c("-a", "--synapse_auth"), type = "character", default = NA,
help="Path to .synapseConfig file or Synapse PAT (default: normal synapse login behavior)"),
make_option(c("-p", "--production"), action="store_true", default = FALSE,
make_option(c("--production"), action="store_true", default = FALSE,
help="Whether to run in production mode or not (staging mode)."),
make_option(c("-v", "--verbose"), action="store_true", default = FALSE,
help="Print out verbose output on script progress")
Expand Down

0 comments on commit 4b26dff

Please sign in to comment.