Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
impute-gene-expression
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Kevin Kunzmann
impute-gene-expression
Commits
5ecad663
Commit
5ecad663
authored
Aug 24, 2019
by
kevin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
externalized container download
parent
58b7208c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
23 deletions
+2
-23
Snakefile
Snakefile
+1
-20
config.yml
config.yml
+0
-3
scripts/download_container.sh
scripts/download_container.sh
+1
-0
No files found.
Snakefile
View file @
5ecad663
...
@@ -31,30 +31,11 @@ rule clean:
...
@@ -31,30 +31,11 @@ rule clean:
# download the required singularity container from zenodo.org
# download the required singularity container from zenodo.org
rule download_container:
rule download_container:
output:
"container_unchecked.sif"
shell:
"""
wget https://zenodo.org/record/{config[zenodo_record_id]}/files/container.sif -O container_unchecked.sif
"""
# check md5
rule check_container:
input:
"container_unchecked.sif"
output:
output:
"container.sif"
"container.sif"
singularity:
"container_unchecked.sif"
shell:
shell:
"""
"""
set -e
bash scripts/download_container.sh
checksum=($(md5sum container_unchecked.sif))
if [ $checksum != {config[container_mdf5]} ]; then
echo md5 mismatch for container, download corrupted!
exit 1
fi
mv container_unchecked.sif container.sif
"""
"""
# extract dosages in custom PrediXcan format from vcf file
# extract dosages in custom PrediXcan format from vcf file
...
...
config.yml
View file @
5ecad663
...
@@ -23,6 +23,3 @@ brain_regions:
...
@@ -23,6 +23,3 @@ brain_regions:
-
'
Putamen_basal_ganglia'
-
'
Putamen_basal_ganglia'
-
'
Spinal_cord_cervical_c-1'
-
'
Spinal_cord_cervical_c-1'
-
'
Substantia_nigra'
-
'
Substantia_nigra'
zenodo_record_id
:
'
3376504'
container_mdf5
:
'
1f5aada82c1aeb8e00b0328421ed009b'
scripts/download_container.sh
0 → 100644
View file @
5ecad663
wget https://zenodo.org/record/3376504/files/container.sif
-O
container.sif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment