-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakeDnaSeqLoadNextflowConfig.pm
More file actions
39 lines (31 loc) · 999 Bytes
/
MakeDnaSeqLoadNextflowConfig.pm
File metadata and controls
39 lines (31 loc) · 999 Bytes
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
package ApiCommonWorkflow::Main::WorkflowSteps::MakeDnaSeqLoadNextflowConfig;
@ISA = (ApiCommonWorkflow::Main::WorkflowSteps::WorkflowStep);
use strict;
use warnings;
use ApiCommonWorkflow::Main::WorkflowSteps::WorkflowStep;
sub run {
my ($self, $test, $undo) = @_;
my $indelDir = $self->getParamValue("indelDir");
my $extDbRlsSpec = $self->getParamValue("extDbRlsSpec");
my $genomeExtDbRlsSpec = $self->getParamValue("genomeExtDbRlsSpec");
my $configPath = $self->getWorkflowDataDir() . "/" . $self->getParamValue("nextflowConfigFile");
if ($undo) {
$self->runCmd(0, "rm -rf $configPath");
} else {
open(F, ">", $configPath) or die "$! :Can't open config file '$configPath' for writing";
print F
"
params {
indelDir = \"$indelDir\"
extDbRlsSpec = '\"$extDbRlsSpec\"'
genomeExtDbRlsSpec = '\"$genomeExtDbRlsSpec\"'
}
singularity {
enabled = true
autoMounts = true
}
";
close(F);
}
}
1;