diff options
author | Justin Bedo <cu@cua0.org> | 2022-10-07 15:51:34 +1100 |
---|---|---|
committer | Justin Bedo <cu@cua0.org> | 2022-10-10 11:02:21 +1100 |
commit | 8c29f7d34fd713d7630ef081fd8cefbb83ef201b (patch) | |
tree | 18edf4af2c1ac0c909c138e7b6969aabf9d751b1 /day2/ex4-bwa/solution.nix | |
parent | 4e71791f46031ed248030efed90b6d5ed53ae50c (diff) |
add ex4
Diffstat (limited to 'day2/ex4-bwa/solution.nix')
-rw-r--r-- | day2/ex4-bwa/solution.nix | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/day2/ex4-bwa/solution.nix b/day2/ex4-bwa/solution.nix new file mode 100644 index 0000000..79fc7dc --- /dev/null +++ b/day2/ex4-bwa/solution.nix @@ -0,0 +1,19 @@ +{bionix}: +with bionix; let + input = { + input1 = fetchFastQ { + url = "https://raw.githubusercontent.com/PapenfussLab/bionix/master/examples/sample1-1.fq"; + sha256 = "sha256-qE6s8hKowiz3mvCq8/7xAzUz77xG9rAcsI2E50xMAk4="; + }; + input2 = fetchFastQ { + url = "https://raw.githubusercontent.com/PapenfussLab/bionix/master/examples/sample1-2.fq"; + sha256 = "sha256-s02R49HX/qeJp4t/eZwsKwV9D07uLGId8CEpU2dB8zM="; + }; + }; + + ref = fetchFastA { + url = "https://raw.githubusercontent.com/PapenfussLab/bionix/master/examples/ref.fa"; + sha256 = "sha256-V3zqOJFuGtukDRQttK/pGfKofgOlKrridHaWYhGGyWs="; + }; +in + samtools.sort {} (bwa.align {inherit ref;} input) |