Skip to content

New module: parsesdrf/convert#11514

Open
jonasscheid wants to merge 6 commits intonf-core:masterfrom
jonasscheid:sdrfpipelines-parsesdrf
Open

New module: parsesdrf/convert#11514
jonasscheid wants to merge 6 commits intonf-core:masterfrom
jonasscheid:sdrfpipelines-parsesdrf

Conversation

@jonasscheid
Copy link
Copy Markdown
Contributor

@jonasscheid jonasscheid commented May 4, 2026

Adds a new module sdrfpipelines/parsesdrf wrapping the parse_sdrf CLI from bigbio/sdrf-pipelines (bioconda sdrf-pipelines=0.1.3). The module converts an SDRF (Sample and Data Relationship Format) file into pipeline-specific samplesheets and search-preset files.
The conversion subcommand (e.g. convert-mhcquant, convert-openms) and its output flags are injected via task.ext.args rather than hardcoded, so the same module can serve different downstream proteomics pipelines. Pairs naturally with #11513

PR checklist

  • This comment contains a description of changes (with reason).
  • If you've fixed a bug or added code that should be tested, add tests!
  • If you've added a new tool - have you followed the module conventions in the contribution docs
  • If necessary, include test data in your PR.
  • Remove all TODO statements.
  • Broadcast software version numbers to topic: versions - See version_topics
  • Follow the naming conventions.
  • Follow the parameters requirements.
  • Follow the input/output options guidelines.
  • Add a resource label
  • Use BioConda and BioContainers if possible to fulfil software requirements.
  • Ensure that the test works with either Docker / Singularity. Conda CI tests can be quite flaky:
    • For modules:
      • nf-core modules test <MODULE> --profile docker
      • nf-core modules test <MODULE> --profile singularity
      • nf-core modules test <MODULE> --profile conda

…drf-pipelines

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

@LouisLeNezet LouisLeNezet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi,

Could you follow the nf-core convention with the meta map ?
This will allow to better control how the output tsv are named.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As both output are expected they should be hardcoded in the script block.
Could you also use prefix = meta.id ?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please pass convert-mhcquant as params.module_args

@LouisLeNezet
Copy link
Copy Markdown
Contributor

LouisLeNezet commented May 4, 2026

Also there is other files that can be passed to parse-sdrf could you add them as input ?
But after further reading it might be better to name the tool PARSESDRF_CONVERTMHCQUANT ?

@jonasscheid
Copy link
Copy Markdown
Contributor Author

jonasscheid commented May 4, 2026

Thanks @LouisLeNezet for the hint, I initially wasn't sure how exactly to do it since the tool is very versatile, but I think you are right to rename to PARSESDRF_CONVERTMHCQUANT.

Edit: Should it be SDRFPIPELINES_CONVERTMHCQUANT or PARSESDRF_CONVERTMHCQUANT @LouisLeNezet 🤔

…to convert-mhcquant subcommand, add meta map and prefix-based outputs

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@jonasscheid jonasscheid changed the title New module: sdrfpipelines/parsesdrf New module: sdrfpipelines/convertmhcquant May 4, 2026
…ign meta.yml output patterns with main.nf prefix

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@LouisLeNezet
Copy link
Copy Markdown
Contributor

LouisLeNezet commented May 4, 2026

Edit: Should it be SDRFPIPELINES_CONVERTMHCQUANT or PARSESDRF_CONVERTMHCQUANT

Good question 🤔

@jonasscheid
Copy link
Copy Markdown
Contributor Author

Ok suggestion: Since CONVERTMHCQUANT is basically a pipeline specific module (local module), I guess it makes more sense to have a more generic nf-core module. Maybe makes more sense to cover e.g. the "convert-" subcommands (convert-openms, convert-mhcquant etc.) What do you think about SDRPIPELINES_CONVERT?

@LouisLeNezet
Copy link
Copy Markdown
Contributor

LouisLeNezet commented May 4, 2026

What do you think about SDRPIPELINES_CONVERT?

I would agree at first thought, by adding a val(format), but I prefer to ask first other maintainers to be sure !

@LouisLeNezet
Copy link
Copy Markdown
Contributor

After discussing with other maintainers, PARSESDRF_CONVERT might be best.
I have to admit that the people naming the package and tool could have choose only one 😄

@jonasscheid
Copy link
Copy Markdown
Contributor Author

jonasscheid commented May 4, 2026

I have to admit that the people naming the package and tool could have choose only one 😄

💯 😄

Thanks for the effort! Really appreciated

@jonasscheid jonasscheid changed the title New module: sdrfpipelines/convertmhcquant New module: parsesdrf/convert May 8, 2026
jonasscheid and others added 2 commits May 8, 2026 15:11
…test, emit versions topic, bump sdrf-pipelines 0.1.3->0.1.4

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants