aboutsummaryrefslogtreecommitdiff
path: root/tools/sambamba.nix
blob: 3c1d1fdfcb1d18eaec4f5d8825451b803ffee15a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{ bionix }:

with bionix;

let
  gen = callBionixE ./sambamba-generic.nix;

in {
  /* Sort aligned reads
  Type: { nameSort :: bool, ... } -> bam -> bam
  */
  sort = callBionixE ./sambamba-sort.nix;

  /* Build an index
  Type: { ... } -> bam -> index
  */
  index = def gen {tool = "index"; };

  /* Merge bam files
  Type: { ... } -> [bam] -> bam
  */
  merge = def gen {tool = "merge"; };

  /* Slice a region out of a bam file
  Type: { region, ... } -> bam -> bam
  */
  slice = def gen {tool = "slice"; };

  /* Compute flag statistics
  Type: { ... } -> bam -> flagstat
  */
  flagstat = def gen {tool = "flagstat"; };

  /* Mark duplicates
  Type: { ... } -> bam -> bam
  */
  markdup = def gen {tool = "markdup"; };
}