Skip to content

Commit 263fd76

Browse files
authored
Merge pull request #72 from VEuPathDB/repeat-masker-root-and-sl-fix
RepeatMasker Root and SL Fix
2 parents 0de36ab + c6272bf commit 263fd76

File tree

6 files changed

+43
-1
lines changed

6 files changed

+43
-1
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
package ApiCommonWorkflow::Main::WorkflowSteps::TouchFile;
2+
3+
@ISA = (ApiCommonWorkflow::Main::WorkflowSteps::WorkflowStep);
4+
5+
use strict;
6+
use ApiCommonWorkflow::Main::WorkflowSteps::WorkflowStep;
7+
8+
9+
sub run {
10+
my ($self, $test, $undo) = @_;
11+
12+
my $fileName = $self->getParamValue('fileName');
13+
14+
my $workflowDataDir = $self->getWorkflowDataDir();
15+
16+
my $cmd = "touch $workflowDataDir/$fileName";
17+
18+
if ($undo) {
19+
$self->runCmd(0, "rm -f $workflowDataDir/$fileName");
20+
} else {
21+
$self->runCmd($test, $cmd);
22+
}
23+
}
24+
25+
1;

Main/lib/xml/workflow/globalGraph.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@
3737
<depends name="initUserGroupProject"/>
3838
</step>
3939

40+
<step name="repeatMaskerRoot" stepClass="ApiCommonWorkflow::Main::WorkflowSteps::TouchFile">
41+
<paramValue name="fileName">$$dataDir$$/repeatMaskerRootFile</paramValue>
42+
<depends name="initUserGroupProject"/>
43+
</step>
44+
4045

4146
<subgraph name="GO_RSRC" xmlFile="loadDataset.xml">
4247
<paramValue name="datasetName">GO_RSRC</paramValue>
@@ -330,4 +335,6 @@
330335
<depends name="registerPlugins"/>
331336
</subgraph>
332337

338+
339+
333340
</workflowGraph>

Main/lib/xml/workflow/makeAndBlockAssemblySeqs.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
<paramValue name="analysisDir">$$analysisDirectory$$</paramValue>
7676
<paramValue name="entry"></paramValue>
7777
<depends name="makeRepeatMaskerNextflowConfig"/>
78+
<dependsGlobal name="repeatMaskerRoot"/>
7879
</subgraph>
7980

8081

Main/lib/xml/workflow/mapClonedInsertEnds.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
<paramValue name="nextflowWorkflow">VEuPathDB/repeat-masker-nextflow</paramValue>
8080
<paramValue name="entry"></paramValue>
8181
<depends name="makeRepeatMaskerNextflowConfig"/>
82+
<dependsGlobal name="repeatMaskerRoot"/>
8283
</subgraph>
8384

8485
<subgraph name="blat" xmlFile="blatDnaAgainstGenome.xml">

Main/lib/xml/workflow/maskGenome.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@
8484
<paramValue name="nextflowWorkflow">VEuPathDB/repeat-masker-nextflow</paramValue>
8585
<paramValue name="entry"></paramValue>
8686
<depends name="makeRepeatMaskerNextflowConfig"/>
87+
<dependsGlobal name="repeatMaskerRoot"/>
8788
</subgraph>
8889

8990

Main/lib/xml/workflow/rnaSeqSplicedLeaderAndPolyASitesProfiles.xml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<param name="gusConfigFile"/>
1313

1414

15-
<constant name="dataDir">$$parentDataDir$$/processSplicedLeaderAndPolyASitesExperiment</constant>
15+
<constant name="dataDir">$$parentDataDir$$/processSplicedLeaderAndPolyASitesExperiment/profiles</constant>
1616
<constant name="analysisDirectory">$$dataDir$$/analysisDir</constant>
1717
<constant name="resultsDirectory">$$analysisDirectory$$/results</constant>
1818

@@ -23,8 +23,15 @@
2323
<constant name="nextflowResultsDir">$$nextflowAnalysisDir$$/nextflow_output</constant>
2424
<constant name="analysisOutputDir">$$nextflowResultsDir$$/analysis_output</constant>
2525

26+
27+
<step name="makeDataDir" stepClass="ReFlow::StepClasses::MakeDataDir">
28+
<paramValue name="dataDir">$$dataDir$$</paramValue>
29+
</step>
30+
31+
2632
<step name="makeAnslysisDir" stepClass="ReFlow::StepClasses::MakeDataDir">
2733
<paramValue name="dataDir">$$nextflowAnalysisDir$$</paramValue>
34+
<depends name="makeDataDir"/>
2835
</step>
2936

3037
<!-- This step makes the nextflow config file -->

0 commit comments

Comments
 (0)