Skip to content
Snippets Groups Projects
Commit a36c189e authored by Gervaise Henry's avatar Gervaise Henry :cowboy:
Browse files

Add source param for getBag #50

parent 178ac5c0
Branches
Tags
2 merge requests!37v0.0.1,!33Resolve "process_qc"
Pipeline #6862 passed with stages
in 6 minutes
......@@ -13,6 +13,7 @@ params.deriva = "${baseDir}/../test_data/auth/credential.json"
params.bdbag = "${baseDir}/../test_data/auth/cookies.txt"
//params.repRID = "16-1ZX4"
params.repRID = "Q-Y5JA"
params.source = "dev"
params.refMoVersion = "38.p6.vM22"
params.refHuVersion = "38.p12.v31"
params.refERCCVersion = "92"
......@@ -34,6 +35,13 @@ logsDir = "${outDir}/Logs"
// Define fixed files
derivaConfig = Channel.fromPath("${baseDir}/conf/replicate_export_config.json")
if (params.source == "dev") {
source = "dev.gudmap.org"
} else if (params.source == "staging") {
source = "staging.gudmap.org"
} else if (params.source == "production") {
source = "www.gudmap.org"
}
//referenceBase = "s3://bicf-references"
referenceBase = "/project/BICF/BICF_Core/shared/gudmap/references"
referenceInfer = Channel.fromList(["ERCC","GRCh","GRCm"])
......@@ -100,7 +108,7 @@ process getBag {
# deriva-download replicate RID
echo -e "LOG: fetching bagit for ${repRID} in GUDMAP" >> ${repRID}.getBag.log
deriva-download-cli staging.gudmap.org --catalog 2 ${derivaConfig} . rid=${repRID}
deriva-download-cli ${source} --catalog 2 ${derivaConfig} . rid=${repRID}
echo -e "LOG: fetched" >> ${repRID}.getBag.log
"""
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment