aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorl-d-s <distefano.l@wehi.edu.au>2018-09-24 12:04:51 +1000
committerl-d-s <distefano.l@wehi.edu.au>2018-09-24 12:04:51 +1000
commit9c99509719704112c786c194f715c64aaa5b03de (patch)
tree0dca0ee2cac04564b701835dd3ff69b1c94ea8bf /tools
parent1e4495d2a6d322c190aedce48d5c31b36e210c70 (diff)
Working test-tnpair
Diffstat (limited to 'tools')
-rw-r--r--tools/samtools-faidx.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/samtools-faidx.nix b/tools/samtools-faidx.nix
index 0dc03ee..a399857 100644
--- a/tools/samtools-faidx.nix
+++ b/tools/samtools-faidx.nix
@@ -13,6 +13,8 @@ stdenv.mkDerivation {
name = "samtools-faidx";
buildInputs = [ samtools ];
buildCommand = ''
- samtools faidx ${optionalString (flags != null) flags} ${input} > $out
+ ln -s ${input} input.fasta
+ samtools faidx ${optionalString (flags != null) flags} input.fasta
+ cp input.fasta.fai $out
'';
}