|
3 | 3 | #for $j, $repeat2 in enumerate( $repeat.software_cond.output ) |
4 | 4 | @CREATE_REPEAT_DIR_1@ |
5 | 5 | #if str($repeat2.type) == "align" |
6 | | - #for $file in $repeat2.input |
7 | | - @ESCAPE_IDENTIFIER@ |
8 | | - #set file_path = os.path.join($repeat_dir, str($identifier) + '_SE_report.txt') |
9 | | - ln -s '$file' '$file_path' && |
10 | | - #end for |
| 6 | + #if str($repeat2.input) != "None" |
| 7 | + #set $at_least_one_input="T" |
| 8 | + #for $file in $repeat2.input |
| 9 | + @ESCAPE_IDENTIFIER@ |
| 10 | + #set file_path = os.path.join($repeat_dir, str($identifier) + '_SE_report.txt') |
| 11 | + ln -s '$file' '$file_path' && |
| 12 | + #end for |
| 13 | + #end if |
11 | 14 | #elif str($repeat2.type) == "dedup" |
12 | | - #for $file in $repeat2.input |
13 | | - @ESCAPE_IDENTIFIER@ |
14 | | - #set file_path = os.path.join($repeat_dir, str($identifier) + '_deduplication_report.txt') |
15 | | - ln -s '$file' '$file_path' && |
16 | | - #end for |
| 15 | + #if str($repeat2.input) != "None" |
| 16 | + #set $at_least_one_input="T" |
| 17 | + #for $file in $repeat2.input |
| 18 | + @ESCAPE_IDENTIFIER@ |
| 19 | + #set file_path = os.path.join($repeat_dir, str($identifier) + '_deduplication_report.txt') |
| 20 | + ln -s '$file' '$file_path' && |
| 21 | + #end for |
| 22 | + #end if |
17 | 23 | #elif str($repeat2.type) == "meth_extract" |
18 | | - #for $file in $repeat2.input |
19 | | - @ESCAPE_IDENTIFIER@ |
20 | | - #set file_path = os.path.join($repeat_dir, str($identifier) + '_splitting_report.txt') |
21 | | - ln -s '$file' '$file_path' && |
22 | | - #end for |
| 24 | + #if str($repeat2.input) != "None" |
| 25 | + #set $at_least_one_input="T" |
| 26 | + #for $file in $repeat2.input |
| 27 | + @ESCAPE_IDENTIFIER@ |
| 28 | + #set file_path = os.path.join($repeat_dir, str($identifier) + '_splitting_report.txt') |
| 29 | + ln -s '$file' '$file_path' && |
| 30 | + #end for |
| 31 | + #end if |
23 | 32 | #elif str($repeat2.type) == "m_bias" |
24 | | - #for $file in $repeat2.input |
25 | | - @ESCAPE_IDENTIFIER@ |
26 | | - #set file_path = os.path.join($repeat_dir, str($identifier) + '_M-bias.txt') |
27 | | - ln -s '$file' '$file_path' && |
28 | | - #end for |
| 33 | + #if str($repeat2.input) != "None" |
| 34 | + #set $at_least_one_input="T" |
| 35 | + #for $file in $repeat2.input |
| 36 | + @ESCAPE_IDENTIFIER@ |
| 37 | + #set file_path = os.path.join($repeat_dir, str($identifier) + '_M-bias.txt') |
| 38 | + ln -s '$file' '$file_path' && |
| 39 | + #end for |
| 40 | + #end if |
29 | 41 | #elif str($repeat2.type) == "bam2nuc" |
30 | | - #for $file in $repeat2.input |
31 | | - @ESCAPE_IDENTIFIER@ |
32 | | - #set file_path = os.path.join($repeat_dir, str($identifier) + '.nucleotide_stats.txt') |
33 | | - ln -s '$file' '$file_path' && |
34 | | - #end for |
| 42 | + #if str($repeat2.input) != "None" |
| 43 | + #set $at_least_one_input="T" |
| 44 | + #for $file in $repeat2.input |
| 45 | + @ESCAPE_IDENTIFIER@ |
| 46 | + #set file_path = os.path.join($repeat_dir, str($identifier) + '.nucleotide_stats.txt') |
| 47 | + ln -s '$file' '$file_path' && |
| 48 | + #end for |
| 49 | + #end if |
35 | 50 | #end if |
36 | 51 | #end for |
37 | 52 | ]]></token> |
|
44 | 59 | <option value="m_bias">m_bias file</option> |
45 | 60 | <option value="bam2nuc">bam2nuc file</option> |
46 | 61 | </param> |
47 | | - <param name="input" type="data" format="txt" multiple="true" label="Bismark output"/> |
| 62 | + <param name="input" type="data" format="txt" multiple="true" label="Bismark output" optional="true"/> |
48 | 63 | </repeat> |
49 | 64 | </xml> |
50 | 65 | <!-- add here your test files and tests, the more stringent the better --> |
|
0 commit comments