aboutsummaryrefslogtreecommitdiff
path: root/examples/ex-tnpair/tnpair
diff options
context:
space:
mode:
authorJustin Bedo <cu@cua0.org>2020-04-10 09:47:44 +1000
committerJustin Bedo <cu@cua0.org>2020-04-10 09:47:44 +1000
commitcdb7056a14915354d879c519dd396204e4af3959 (patch)
tree8eb04d09f00c1c29455c9344c43307c85be8ebad /examples/ex-tnpair/tnpair
parentd4fe5ce2aaea3f951fe21094ccfa90360c12c760 (diff)
update tnpair example to run on colo828
Diffstat (limited to 'examples/ex-tnpair/tnpair')
-rwxr-xr-xexamples/ex-tnpair/tnpair58
1 files changed, 0 insertions, 58 deletions
diff --git a/examples/ex-tnpair/tnpair b/examples/ex-tnpair/tnpair
deleted file mode 100755
index d90374b..0000000
--- a/examples/ex-tnpair/tnpair
+++ /dev/null
@@ -1,58 +0,0 @@
-#!/bin/sh
-
-set -e
-
-if [[ $# -ne 5 ]] ; then
- echo "Usage: $0 ref normal1 normal2 tumour1 tumour2"
- exit 1
-fi
-
-function cleanup {
- if [[ -e tnpair-$$ ]]; then
- rm tnpair-$$
- fi
-}
-trap cleanup INT TERM EXIT
-
-ref=`readlink -f $1`
-norm1=`readlink -f $2`
-norm2=`readlink -f $3`
-tumour1=`readlink -f $4`
-tumour2=`readlink -f $5`
-
-refhash=`nix-hash --base32 --type sha256 --flat $ref`
-norm1hash=`nix-hash --base32 --type sha256 --flat $norm1`
-norm2hash=`nix-hash --base32 --type sha256 --flat $norm2`
-tumour1hash=`nix-hash --base32 --type sha256 --flat $tumour1`
-tumour2hash=`nix-hash --base32 --type sha256 --flat $tumour2`
-
-cat > tnpair-$$ <<EOF
-import ./tnpair.nix {
- normal = {
- input1={
- url="file://$norm1";
- sha256="$norm1hash";
- };
- input2={
- url="file://$norm2";
- sha256="$norm2hash";
- };
- };
- tumour = {
- input1={
- url = "file://$tumour1";
- sha256 = "$tumour1hash";
- };
- input2={
- url = "file://$tumour2";
- sha256 = "$tumour2hash";
- };
- };
- ref = {
- url = "file://$ref";
- sha256 = "$refhash";
- };
-}
-EOF
-
-nix build --keep-going "(import ./tnpair-$$)" --no-sandbox