aboutsummaryrefslogtreecommitdiff
path: root/tools/sambamba.nix
blob: 77289fefed8b64b8e0ef38fe2149cc0e67a196a7 (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
39
{ 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"; };
}