aboutsummaryrefslogtreecommitdiff
path: root/day2/ex5-bwa/solution.nix
blob: 79fc7dc5886af27db55e55565aca88ca88597cb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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)