Dear all,
I am new to nextflow, but am enthusiatically writing my own modules for modular custom pipelines. When it comes to bulk and single-cell multiomics, tools are divided between R and Python, raising the question of input file formats.
For example, nf-core modules exist for differential expression with limma, edgeR and DESeq2. These consume tsv-files and are therefore language agnostic.
Then the decoupler-module does the same. But I use decoupler with single-cell datasets, which are large, sparse, and shouldnt be converted to tsv or csv files.
Processing for multiomics may require the aforementioned differential expression in R, but processing before and after is preferred (by me) in muon, and intermediate processing steps may again be used from R. I let muon modules emit h5mu or zarr files, which then require conversion or extraction steps for several tsv/csv files (expression, metadata), or back from several files to anndata/mudata, which works for bulk data, but not large single-cell matrices.
How may I handle this better, and in a way that will hold up modularity with other existing (limma, deseq2) and future nf-core modules, i.e. , muon, sva, RUVSeq, and more? (looking at the mlomix proposal using some of these)
Modules and subworkflows for common conversions adn extraction like nf-core/anndata?