Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pattern to input field #832

Merged
merged 3 commits into from
Feb 19, 2025
Merged

Add pattern to input field #832

merged 3 commits into from
Feb 19, 2025

Conversation

pinin4fjords
Copy link
Member

@pinin4fjords pinin4fjords commented Feb 18, 2025

Adding a pattern to the input field. Closes #831.

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 pipeline conventions in the contribution docs
  • If necessary, also make a PR on the nf-core/ampliseq branch on the nf-core/test-datasets repository.
  • Make sure your code lints (nf-core pipelines lint).
  • Ensure the test suite passes (nextflow run . -profile test,docker --outdir <OUTDIR>).
  • Check for unexpected warnings in debug mode (nextflow run . -profile debug,test,docker --outdir <OUTDIR>).
  • Usage Documentation in docs/usage.md is updated.
  • Output Documentation in docs/output.md is updated.
  • CHANGELOG.md is updated.
  • README.md is updated (including new tool citations and authors/contributors).

@pinin4fjords pinin4fjords marked this pull request as draft February 18, 2025 10:23
@nf-core-bot
Copy link
Member

Warning

Newer version of the nf-core template is available.

Your pipeline is using an old version of the nf-core template: 3.0.2.
Please update your pipeline to the latest version.

For more documentation on how to update your pipeline, please see the nf-core documentation and Synchronisation documentation.

Copy link

github-actions bot commented Feb 18, 2025

nf-core pipelines lint overall result: Passed ✅ ⚠️

Posted for pipeline commit d121b0d

+| ✅ 305 tests passed       |+
#| ❔   6 tests were ignored |#
!| ❗   4 tests had warnings |!

❗ Test warnings:

  • readme - README did not have a Nextflow minimum version badge.
  • pipeline_todos - TODO string in main.nf: Optionally add in-text citation tools to this list.
  • pipeline_todos - TODO string in main.nf: Optionally add bibliographic entries to this list.
  • pipeline_todos - TODO string in main.nf: Only uncomment below if logic in toolCitationText/toolBibliographyText has been filled!

❔ Tests ignored:

✅ Tests passed:

Run details

  • nf-core/tools version 3.0.2
  • Run at 2025-02-19 09:47:51

@pinin4fjords pinin4fjords changed the title Update nextflow_schema.json to demo type issue Add pattern to input field Feb 18, 2025
@pinin4fjords pinin4fjords marked this pull request as ready for review February 18, 2025 10:35
@d4straub
Copy link
Collaborator

Thanks! However, that will prevent the current flexibility?

Path to sample sheet, either tab-separated (.tsv), comma-separated (.csv), or in YAML format (.yml/.yaml)

csv and yml/yaml will be not accepted then?

@pinin4fjords
Copy link
Member Author

pinin4fjords commented Feb 18, 2025

Thanks! However, that will prevent the current flexibility?

Path to sample sheet, either tab-separated (.tsv), comma-separated (.csv), or in YAML format (.yml/.yaml)

csv and yml/yaml will be not accepted then?

Sorry, yes, you're right, I was too hasty.

The right fix is probably something flexible like this: https://github.com/nf-core/differentialabundance/blob/3dd360fed0dca1780db1bdf5dce85e5258fa2253/nextflow_schema.json#L35

There is currently a bug in Platform that will also prevent that working correctly with datasets, but that will be addressed in due course.

@d4straub
Copy link
Collaborator

Require all parameters that point to files a pattern? Because there are a few more...

@pinin4fjords
Copy link
Member Author

pinin4fjords commented Feb 18, 2025

Require all parameters that point to files a pattern? Because there are a few more...

If you want them to be pickable from datasets in Platform, yes.

Copy link
Collaborator

@d4straub d4straub left a comment

Choose a reason for hiding this comment

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

LGTM!

@d4straub
Copy link
Collaborator

Alright, we add that for input now and keep the issue open for now. The aim would be to add a pattern for all, or at least most, file inputs.

@d4straub d4straub merged commit 89336e1 into dev Feb 19, 2025
19 of 33 checks passed
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.

3 participants