Skip to content

Commit 26a65e5

Browse files
committed
Frog output files weren't detected properly #29
1 parent d64cec2 commit 26a65e5

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

frog.nf

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ if (params.inputformat == "folia") {
6969
val virtualenv from params.virtualenv
7070

7171
output:
72-
file "*.xml" into foliadocuments_output mode flatten
72+
file "output/*.xml" into foliadocuments_output mode flatten
7373

7474
script:
7575
"""
@@ -88,8 +88,9 @@ if (params.inputformat == "folia") {
8888
mkdir input
8989
mv *.xml input/
9090
91-
#output will be in cwd
92-
frog \$opts --inputclass "${inputclass}" --outputclass "${outputclass}" --xmldir "." --threads 1 --nostdout --testdir input/ -x
91+
#output will be in output/
92+
mkdir output
93+
frog \$opts --inputclass "${inputclass}" --outputclass "${outputclass}" --xmldir "output" --threads 1 --nostdout --testdir input/ -x
9394
"""
9495
}
9596

@@ -114,7 +115,7 @@ if (params.inputformat == "folia") {
114115
val virtualenv from params.virtualenv
115116

116117
output:
117-
file "*.xml" into foliadocuments_output mode flatten
118+
file "output/*.xml" into foliadocuments_output mode flatten
118119

119120
script:
120121
"""
@@ -137,7 +138,8 @@ if (params.inputformat == "folia") {
137138
mv *.$extension input/
138139
139140
#output will be in cwd
140-
frog \$opts --outputclass "${outputclass}" --xmldir "." --threads 1 --nostdout --testdir input/
141+
mkdir output
142+
frog \$opts --outputclass "${outputclass}" --xmldir "output" --threads 1 --nostdout --testdir input/
141143
"""
142144
}
143145

0 commit comments

Comments
 (0)