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
17df0fa5
Commit
17df0fa5
authored
4 years ago
by
Gervaise Henry
Browse files
Options
Downloads
Patches
Plain Diff
Fix extractRefData arg
parent
0883570c
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!58
Develop
,
!45
Resolve "Move references to GUDMAP/RBK"
Pipeline
#8124
failed with stages
in 2 minutes and 8 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+4
-4
4 additions, 4 deletions
.gitlab-ci.yml
workflow/scripts/extractRefData.py
+3
-3
3 additions, 3 deletions
workflow/scripts/extractRefData.py
with
7 additions
and
7 deletions
.gitlab-ci.yml
+
4
−
4
View file @
17df0fa5
...
...
@@ -239,8 +239,8 @@ humanDataHub:
-
GENCODE=$(echo ${references} | grep -o ${refName}.* | cut -d '.' -f3)
-
query=$(echo 'https://'${referenceBase}'/ermrest/catalog/2/entity/RNASeq:Reference_Genome/Reference_Version='${GRCv}'.'${GRCp}'/Annotation_Version=GENCODE%20'${GENCODE})
-
curl --request GET ${query} > refQuery.json
-
refURL=$(python ./workflow/scripts/extractRefData.py --return URL)
-
refMD5=$(python ./workflow/scripts/extractRefData.py --return MD5)
-
refURL=$(python ./workflow/scripts/extractRefData.py --return
Param
URL)
-
refMD5=$(python ./workflow/scripts/extractRefData.py --return
Param
MD5)
-
test=$(singularity run 'docker://gudmaprbk/deriva1.3:1.0.0' deriva-hatrac-cli --host ${referenceBase} ls /hatrac/resources/rnaseq/pipeline/reference_genome/ | grep -o ${refMD5})
-
if [ "${test}" == "" ]; then exit 1; fi
...
...
@@ -262,8 +262,8 @@ mousenDataHub:
-
GENCODE=$(echo ${references} | grep -o ${refName}.* | cut -d '.' -f3)
-
query=$(echo 'https://'${referenceBase}'/ermrest/catalog/2/entity/RNASeq:Reference_Genome/Reference_Version='${GRCv}'.'${GRCp}'/Annotation_Version=GENCODE%20'${GENCODE})
-
curl --request GET ${query} > refQuery.json
-
refURL=$(python ./workflow/scripts/extractRefData.py --return URL)
-
refMD5=$(python ./workflow/scripts/extractRefData.py --return MD5)
-
refURL=$(python ./workflow/scripts/extractRefData.py --return
Param
URL)
-
refMD5=$(python ./workflow/scripts/extractRefData.py --return
Param
MD5)
-
test=$(singularity run 'docker://gudmaprbk/deriva1.3:1.0.0' deriva-hatrac-cli --host ${referenceBase} ls /hatrac/resources/rnaseq/pipeline/reference_genome/ | grep -o ${refMD5})
-
if [ "${test}" == "" ]; then exit 1; fi
...
...
This diff is collapsed.
Click to expand it.
workflow/scripts/extractRefData.py
+
3
−
3
View file @
17df0fa5
...
...
@@ -7,7 +7,7 @@ warnings.simplefilter(action='ignore', category=FutureWarning)
def
get_args
():
parser
=
argparse
.
ArgumentParser
()
parser
.
add_argument
(
'
-r
'
,
'
--return
'
,
help
=
"
The parameter to return (URL or MD5).
"
,
required
=
True
)
parser
.
add_argument
(
'
-r
'
,
'
--return
Param
'
,
help
=
"
The parameter to return (URL or MD5).
"
,
required
=
True
)
args
=
parser
.
parse_args
()
return
args
...
...
@@ -15,9 +15,9 @@ def main():
args
=
get_args
()
refQuery
=
pd
.
read_json
(
"
refQuery.json
"
)
if
refQuery
[
"
File_URL
"
].
count
()
==
1
:
if
args
.
return
==
"
URL
"
:
if
args
.
return
Param
==
"
URL
"
:
print
(
refQuery
[
"
File_URL
"
].
values
[
0
])
elif
args
.
return
==
"
MD5
"
:
elif
args
.
return
Param
==
""
:
print
(
refQuery
[
"
File_MD5
"
].
values
[
0
])
else
:
raise
Exception
(
"
Multple references found:
\n
%s
"
%
...
...
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