Commit ade8a2d
committed
fix(dram): pass boolean string to FORMAT_KEGG_DB skip_gene_ko_link
The companion fix for the bash condition in format_kegg_db.nf requires
that skip_gene_ko_link be the string "true" or "false" rather than the
integer 1 or 0.
In bash:
`if [ "0" ]` -> true (non-empty string)
`if [ "false" ]` -> true (still non-empty - also wrong)
The correct pattern used in format_kegg_db.nf is:
`if [ "${skip_gene_ko_link}" = "true" ]`
which requires this value to be exactly the string "true" or "false".
Changed `params.skip_gene_ko_link ? 1 : 0` to
`params.skip_gene_ko_link ? "true" : "false"`.1 parent 516c9ad commit ade8a2d
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
206 | | - | |
| 206 | + | |
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
| |||
0 commit comments