-
I'm attempting to implement nextflow for some complex processes and I keep running into an error that I don't understand. I'm testing subsections of the overall workflow and the first is TEcurate_setup.nf, which is invoked using TEcurate_setup.sh. The error I keep getting is:
While I'm new to nextflow, this is the correct syntax as far as I can tell. Three " are required to establish the bash code block I'm trying to run. What am I missing? It's probably something very simple but I'm completely missing it if that's the case. David |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 5 replies
-
can you share TEcurate_setup.nf file? or at least lines between 27-31 |
Beta Was this translation helpful? Give feedback.
-
Of course. See below and thank you for the quick response.
|
Beta Was this translation helpful? Give feedback.
-
I think you need single quote marks, because of the |
Beta Was this translation helpful? Give feedback.
-
Problem comes because some lines have spaces after the for example:
the first line it's ok but the second line ends with '\ ' and the parse fails P.d.
|
Beta Was this translation helpful? Give feedback.
-
@jorgeaguileraseqera as a sidenote, it would be nice to better report this kind of problem. I've noticed when moving from the groovy 2 to 3, it becomes more cryptic this syntax error reporting |
Beta Was this translation helpful? Give feedback.
-
Thank you for the help. I fixed the problem with the spaces. (I'd never have found that.) Unfortunately, I'm now getting a different error: $ nextflow run TEcurate_setup.nf This is a new one. I've run it with and without the "$" with params as suggested and get the same error either way. |
Beta Was this translation helpful? Give feedback.
-
After downloading some dependencies, it attempted to run, which is progress. But.... see attached log file. It appears to be a file not found error. However, the file TEcurate_setup.sh is in the current working directory and executable. $ ls -lhrt |
Beta Was this translation helpful? Give feedback.
-
That did the trick. I wasn't aware that I needed to provide the full path to invoke the script. I've tested the _setup portion and it ran properly. I'll make the same changes to the remaining processes and try them out. Thank you for the help. |
Beta Was this translation helpful? Give feedback.
That did the trick. I wasn't aware that I needed to provide the full path to invoke the script.
I've tested the _setup portion and it ran properly.
I'll make the same changes to the remaining processes and try them out.
Thank you for the help.