Skip to content

Commit

Permalink
switched to using ln -s -r instead of absolute paths
Browse files Browse the repository at this point in the history
  • Loading branch information
remomomo committed May 19, 2022
1 parent fddcd8f commit 54f3e3c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ rule link_genotypes:
run:
if not os.path.isdir('data/genotypes'):
os.makedirs('data/genotypes')
shell('ln -s "$(readlink -f {input.bim})" {output.bim} && ln -s "$(readlink -f {input.fam})" {output.fam} && ln -s "$(readlink -f {input.bed})" {output.bed}')
shell('ln -s -r "{input.bim}" {output.bim} && ln -s -r "{input.fam}" {output.fam} && ln -s -r "{input.bed}" {output.bed}')

rule link_reference:
input:
Expand All @@ -90,7 +90,7 @@ rule link_reference:
run:
if not os.path.isdir('data/reference'):
os.makedirs('data/reference')
shell('ln -s "$(readlink -f {input})" {output}')
shell('ln -s -r "{input}" {output}')

rule link_gene_annotation:
input:
Expand All @@ -100,7 +100,7 @@ rule link_gene_annotation:
run:
if not os.path.isdir('data/reference'):
os.makedirs('data/reference')
shell('ln -s "$(readlink -f {input})" {output}')
shell('ln -s -r "{input}" {output}')

rule link_all:
# checks if all the input files are present and links some of them to the working directory
Expand Down

0 comments on commit 54f3e3c

Please sign in to comment.