Unable to parse config file

nextflow.config has a syntax error, usually an unbalanced brace or quote

why

The config is Groovy, not plain key=value, so an unclosed {, a smart/curly quote pasted from a document, or a missing comma breaks the whole file. The reported line number is where the parser gave up, which is often after the real mistake.

what to do

Look above the reported line for the last block you edited, and check braces balance and that every quote is a plain ASCII ' or \". Bisect by commenting out blocks until it parses — that finds it faster than re-reading.

Nextflow config syntax
This is one entry from BioErrors, a catalogue of bioinformatics error messages that point at the wrong thing. Every entry was traced to its real cause before it was written down.
If your error is not in it, paste it there and it gets traced and added.