Skip to content

Commit

Permalink
[GEN-1330] Setup staging pipeline (#568)
Browse files Browse the repository at this point in the history
* add in staging flag for maf in bed and merge check files

* add staging flags to mafinbed and mutationincis functions

* refactor functions to add and test staging flag

* lint

* fix test

* add logic to not send emails during staging run

* add test for when there are emails

* hardcode in staging project
  • Loading branch information
rxu17 authored Aug 21, 2024
1 parent 9295c5c commit 4a2b9dd
Show file tree
Hide file tree
Showing 7 changed files with 1,062 additions and 70 deletions.
4 changes: 4 additions & 0 deletions R/MAFinBED.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ library(argparse)
parser <- ArgumentParser()
parser$add_argument("filepath", help = "Filepath to write variants")
parser$add_argument("--testing", action = "store_true", help = "Use testing files")
parser$add_argument("--staging", action = "store_true", help = "Use staging files")
args <- parser$parse_args()
testing <- args$testing
staging <- args$staging
filepath <- args$filepath


Expand All @@ -21,6 +23,8 @@ synLogin()
#testing = as.logical(args[1])
if (testing) {
databaseSynIdMappingId = 'syn11600968'
} else if (staging) {
databaseSynIdMappingId = 'syn12094210'
} else {
databaseSynIdMappingId = 'syn10967259'
}
Expand Down
6 changes: 6 additions & 0 deletions R/mergeCheck.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@ parser <- ArgumentParser()
parser$add_argument("--testing",
action = "store_true",
help = "Use testing files")
parser$add_argument("--staging",
action = "store_true",
help = "Use staging files")
args <- parser$parse_args()
testing <- args$testing
staging <- args$staging

library(synapser)
library(VariantAnnotation)
Expand Down Expand Up @@ -37,6 +41,8 @@ tbl_size_limit = 500
#testing = as.logical(args[1])
if (testing) {
databaseSynIdMappingId = 'syn11600968'
} else if (staging) {
databaseSynIdMappingId = 'syn12094210'
} else {
databaseSynIdMappingId = 'syn10967259'
}
Expand Down
Loading

0 comments on commit 4a2b9dd

Please sign in to comment.