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

[DO NOT MERGE] Test PR to see how the template would look like when creating a new modules #7430

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

mirpedrol
Copy link
Member

Example for tools PR adding EDAM ontologies nf-core/tools#3418

The information from bio.tools is used to generate meta.yml and main.nf information when a module is created.

⚠️ This PR is an example to visualise how the new template would look like. It's not for merging!

description: raw_sequence file
pattern: "*.{fastq-like,sam,fastq,bam}"
ontologies:
- edam: "http://edamontology.org/data_0848"
Copy link
Member

Choose a reason for hiding this comment

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

For each of these, it might be nice to have a comment saying which one they are for - makes it easier for people to copy and paste very common ones (fastq, fasta, bam etc)

Copy link
Member Author

Choose a reason for hiding this comment

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

yes! it's planned, I forgot to implement it now 😄 thanks for the suggestion!

Comment on lines 22 to 24
// TODO nf-core: List required Conda package(s).
// Software MUST be pinned to channel (i.e. "bioconda"), version (i.e. "1.10").
// For Conda, the build (i.e. "h9402c20_2") must be EXCLUDED to support installation on different operating systems.
Copy link
Contributor

Choose a reason for hiding this comment

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

This TODO should be in environment.yml?

Comment on lines +46 to +49
// TODO nf-core: Where possible, a command MUST be provided to obtain the version number of the software e.g. 1.10
// If the software is unable to output a version number on the command-line then it can be manually specified
// e.g. https://github.com/nf-core/modules/blob/master/modules/nf-core/homer/annotatepeaks/main.nf
// Each software used MUST provide the software name and version number in the YAML version file (versions.yml)
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we explain how we do this when this is NOT possible?

Copy link
Member Author

Choose a reason for hiding this comment

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

It is already explained, we mention it can be added manually. Would you rephrase it?

Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm, yes, it is on the line below, not sure why I said this, maybe I completely missed the following line.
We don't have great consistency where that VERSION string ends up in the file though, maybe it would be helpful to have it somewhere in the template.

input:
- - meta:
type: map
description: |
Groovy Map containing sample information
e.g. [ id:'test', single_end:false ]
- reads:
e.g. `[ id:'sample1', single_end:false ]`
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we remove this from the template? It isn't often required and gets left and clutters things up.

Suggested change
e.g. `[ id:'sample1', single_end:false ]`
e.g. `[ id:'sample1]`

- "*.zip":
e.g. `[ id:'sample1', single_end:false ]`
- sequence_report:
# TODO nf-core: Update the information obtained form bio.tools and make sure that it is correct
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
# TODO nf-core: Update the information obtained form bio.tools and make sure that it is correct
# TODO nf-core: Update the information obtained from bio.tools and make sure that it is correct

@ewels ewels marked this pull request as draft February 10, 2025 13:09
@ewels ewels added the WIP Work in progress label Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WIP Work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants