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

Use Jinja2 to get process/module name in main script of module template #1284

Closed
drpatelh opened this issue Oct 11, 2021 · 1 comment
Closed

Comments

@drpatelh
Copy link
Member

The idea would be to remove the need for any custom functions to get the process and module name here:

cat <<-END_VERSIONS > versions.yml
${getProcessName(task.process)}:
${getSoftwareName(task.process)}: \$( samtools --version 2>&1 | sed 's/^.*samtools //; s/Using.*\$//' )
END_VERSIONS

We would replace these lines with some Jinja Ninja replacement. That way the correct fields will be verbosely populated there and we won't have to invoke a function.

@drpatelh
Copy link
Member Author

FIxed in Fixed in #1327

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Hackathon-October-2021
nf-core DSL2 v2.0 / Tools
Development

No branches or pull requests

2 participants