Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
RNA-seq
Manage
Activity
Members
Labels
Plan
Issues
12
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
GUDMAP_RBK
RNA-seq
Commits
785c4858
Commit
785c4858
authored
4 years ago
by
Gervaise Henry
Browse files
Options
Downloads
Patches
Plain Diff
Change bdbag to use cookie locally
parent
3324d1ea
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!76
Develop
,
!70
Dnanexus
Pipeline
#9241
failed with stages
in 2 minutes and 7 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
conf/bdbag.json
+28
-0
28 additions, 0 deletions
conf/bdbag.json
rna-seq.nf
+7
-5
7 additions, 5 deletions
rna-seq.nf
workflow/scripts/bdbag_fetch.sh
+2
-2
2 additions, 2 deletions
workflow/scripts/bdbag_fetch.sh
with
37 additions
and
7 deletions
conf/bdbag.json
0 → 100644
+
28
−
0
View file @
785c4858
{
"fetch_config"
:
{
"http"
:
{
"http_cookies"
:
{
"file_names"
:
[
"*cookies.txt"
],
"scan_for_cookie_files"
:
true
,
"search_paths"
:
[
"."
],
"search_paths_filter"
:
"*cookies.txt"
}
},
"https"
:
{
"http_cookies"
:
{
"file_names"
:
[
"*cookies.txt"
],
"scan_for_cookie_files"
:
true
,
"search_paths"
:
[
"."
],
"search_paths_filter"
:
"*cookies.txt"
}
}
}
}
This diff is collapsed.
Click to expand it.
rna-seq.nf
+
7
−
5
View file @
785c4858
...
...
@@ -72,6 +72,7 @@ spikeForce = params.spikeForce
email = params.email
// Define fixed files and variables
bdbagConfig = Channel.fromPath("${baseDir}/conf/bdbag.json")
replicateExportConfig = Channel.fromPath("${baseDir}/conf/Replicate_For_Input_Bag.json")
executionRunExportConfig = Channel.fromPath("${baseDir}/conf/Execution_Run_For_Output_Bag.json")
if (params.source == "dev") {
...
...
@@ -239,8 +240,9 @@ process getData {
tag "${repRID}"
input:
path bdbagConfig
path script_bdbagFetch
path cookies from bdbag
path cookies
, stageAs: "deriva-cookies.txt"
from bdbag
path inputBag from inputBag_getData
output:
...
...
@@ -256,10 +258,10 @@ process getData {
ulimit -a >> ${repRID}.getData.log
# link deriva cookie for authentication
echo -e "LOG: linking deriva cookie" >> ${repRID}.getData.log
mkdir -p ~/.bdbag
cp `readlink -e cookies.txt` ~/.bdbag/deriva-cookies.txt
echo -e "LOG: linked" >> ${repRID}.getData.log
#
echo -e "LOG: linking deriva cookie" >> ${repRID}.getData.log
#
mkdir -p ~/.bdbag
#
cp `readlink -e cookies.txt` ~/.bdbag/deriva-cookies.txt
#
echo -e "LOG: linked" >> ${repRID}.getData.log
# get bag basename
replicate=\$(basename "${inputBag}")
...
...
This diff is collapsed.
Click to expand it.
workflow/scripts/bdbag_fetch.sh
+
2
−
2
View file @
785c4858
...
...
@@ -9,7 +9,7 @@ then
n
=
0
until
[
"
${
n
}
"
-ge
"3"
]
do
bdbag
--resolve-fetch
missing
--validate
full
${
1
}
--debug
&&
validate
=
$(
tail
-n
validate.txt |
grep
-o
'is valid'
)
&&
break
bdbag
--resolve-fetch
missing
--validate
full
${
1
}
--debug
--config-file
bdbag.json
&&
validate
=
$(
tail
-n
validate.txt |
grep
-o
'is valid'
)
&&
break
n
=
$((
n+1
))
sleep
15
done
...
...
@@ -22,4 +22,4 @@ for i in $(find */ -name "*[_.]R[1-2].fastq.gz")
do
path
=
${
2
}
.
$(
echo
${
i
##*/
}
|
grep
-o
"R[1,2].fastq.gz"
)
cp
${
i
}
./
${
path
}
done
\ No newline at end of file
done
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment