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
0883570c
Commit
0883570c
authored
4 years ago
by
Gervaise Henry
Browse files
Options
Downloads
Patches
Plain Diff
Change datahub ref ci form get to ls
parent
160b314c
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!58
Develop
,
!45
Resolve "Move references to GUDMAP/RBK"
Pipeline
#8122
failed with stages
in 2 minutes and 29 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+8
-5
8 additions, 5 deletions
.gitlab-ci.yml
workflow/scripts/extractRefData.py
+11
-1
11 additions, 1 deletion
workflow/scripts/extractRefData.py
with
19 additions
and
6 deletions
.gitlab-ci.yml
+
8
−
5
View file @
0883570c
...
...
@@ -239,8 +239,10 @@ 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)
-
singularity run 'docker://gudmaprbk/deriva1.3:1.0.0' deriva-hatrac-cli --host ${referenceBase} get ${refURL}
-
refURL=$(python ./workflow/scripts/extractRefData.py --return URL)
-
refMD5=$(python ./workflow/scripts/extractRefData.py --return 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
mousenDataHub
:
stage
:
reference
...
...
@@ -260,9 +262,10 @@ 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)
-
pip install --user deriva==1.3.0
-
singularity run 'docker://gudmaprbk/deriva1.3:1.0.0' deriva-hatrac-cli --host ${referenceBase} get ${refURL}
-
refURL=$(python ./workflow/scripts/extractRefData.py --return URL)
-
refMD5=$(python ./workflow/scripts/extractRefData.py --return 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
integration_se
:
...
...
This diff is collapsed.
Click to expand it.
workflow/scripts/extractRefData.py
+
11
−
1
View file @
0883570c
...
...
@@ -5,10 +5,20 @@ import pandas as pd
import
warnings
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
)
args
=
parser
.
parse_args
()
return
args
def
main
():
args
=
get_args
()
refQuery
=
pd
.
read_json
(
"
refQuery.json
"
)
if
refQuery
[
"
File_URL
"
].
count
()
==
1
:
print
(
refQuery
[
"
File_URL
"
].
values
[
0
])
if
args
.
return
==
"
URL
"
:
print
(
refQuery
[
"
File_URL
"
].
values
[
0
])
elif
args
.
return
==
"
MD5
"
:
print
(
refQuery
[
"
File_MD5
"
].
values
[
0
])
else
:
raise
Exception
(
"
Multple references found:
\n
%s
"
%
refQuery
[
"
RID
"
])
...
...
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