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
8062d7cb
Commit
8062d7cb
authored
Oct 15, 2019
by
Kevin Kunzmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
made snakefile more robust to filename changes
parent
fbe14c11
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
Snakefile
Snakefile
+7
-6
No files found.
Snakefile
View file @
8062d7cb
...
...
@@ -30,13 +30,14 @@ rule download_imputed_genotype_chromosome:
shell:
"""
mkdir -p output/imputed-genotypes
gsutil cp gs://fimm-horizon-outgoing-data/CENTER_TBI_data_freeze_190829/Imputed_data/CENTER_TBI_imputed_3695_1K_MAC1_freeze_190829_chr{wildcards.i}.vcf.gz \
output/imputed-genotypes/CENTER_TBI_imputed_3695_1K_MAC1_freeze_190829_chr{wildcards.i}.vcf.gz
gsutil cp gs://fimm-horizon-outgoing-data/CENTER_TBI_data_freeze_191014/Imputed_data/CENTER.TBI_imputed_N3741_hg19_HRC_MAC1_freeze_191014_chr1.vcf.gz
\
output/imputed-genotypes/CENTER_TBI_imputed_genotype_chr{wildcards.i}.vcf.gz
"""
rule download_imputed_genotypes:
input:
expand("output/imputed-genotypes/CENTER_TBI_imputed_
3695_1K_MAC1_freeze_190829
_chr{i}.vcf.gz",
expand("output/imputed-genotypes/CENTER_TBI_imputed_
genotype
_chr{i}.vcf.gz",
i = list(map(str, range(1, 23))) + ['X']
)
...
...
@@ -53,7 +54,7 @@ rule download_container:
rule vcf_to_dosages:
input:
"container.sif",
vcf_gz_file = "output/imputed-genotypes/CENTER_TBI_imputed_
3695_1K_MAC1_freeze_190829
_chr{i}.vcf.gz"
vcf_gz_file = "output/imputed-genotypes/CENTER_TBI_imputed_
genotype
_chr{i}.vcf.gz"
output:
"{output_dir}/dosages/chr{i}.dosage.txt.gz"
singularity:
...
...
@@ -79,7 +80,7 @@ rule vcf_to_dosages:
rule generate_samples_file:
input:
"container.sif",
vcf_gz_file = "output/imputed-genotypes/CENTER_TBI_imputed_
3695_1K_MAC1_freeze_190829
_chr1.vcf.gz"
vcf_gz_file = "output/imputed-genotypes/CENTER_TBI_imputed_
genotype
_chr1.vcf.gz"
output:
"{output_dir}/dosages/samples.txt"
singularity:
...
...
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