blob: 17e3c46b0cb0110950de4716b3ff70840f74624e (
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
|
{ bionix
, nixpkgs
, thresholdCoverage ? 10000
, flags ? null
, config ? null
, heapSize ? "1G"
}:
with nixpkgs;
with lib;
with bionix.types;
input:
let
ref = matchFiletype "gridss-collectMetrics" { bam = x: x.ref; } input;
in
stdenv.mkDerivation rec {
name = "gridss-collectMetrics";
buildInputs = [ jre R ];
buildCommand = ''
mkdir $out
java -Xmx${heapSize} -cp ${bionix.gridss.jar} \
gridss.analysis.CollectGridssMetrics \
${optionalString (config != null) ("OPTIONS_FILE=" + bionix.gridss.gridssConfig config)} \
I=${input}\
O=$out/input \
AS=true \
THRESHOLD_COVERAGE=${toString thresholdCoverage}
'';
}
|