Groovy primers

Hello,

I was wondering if in addition to current nextflow training curses/resources there some groovy primers with Nextflow developers in mind?

I come from python and rust and find groovy a little challenging to tackle due to the lack of focused tutorials.

@GeraldineVdA

Thank you for your time,

Marcello

Hello! Personally, I don’t think that learning Groovy is essential to write Nextflow pipelines. This page with operators can be used as a manual for channel mainipulation: Operators — Nextflow documentation

Other than this, you can use the nf-core/modules repository: modules/modules/nf-core at master · nf-core/modules · GitHub
as inspiration to start using existing, or writing your own modules.

Chances are that the logic you are trying to code, has already been used someplace else. Just search and/or ask for it :wink:

Hi @Marcello_Beltrami, thanks for posting your question. I think what would probably help you most is this Side Quest on Nextflow scripting patterns: Essential Nextflow Scripting Patterns - training.nextflow.io

Evangelos is correct in that you don’t really need to learn Groovy itself (unless you really want to). This lesson takes the approach of looking at what essential patterns do you need to know, what bits of Groovy are important, and where are the boundaries.

Let me know if this addresses your need or if you’d like to see something different.