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

feat: add a function to find unnamed arguments #38

Closed
wants to merge 2 commits into from

Conversation

SilasK
Copy link

@SilasK SilasK commented Nov 9, 2023

This function was quite usefull in snakemake/snakemake-wrappers#1322

I would like to make a new general wrapper where it will also be useful.

I hope it will not change with snakemake v8

@dlaehnemann dlaehnemann changed the title Add a function to find unnamed arguements feature: add a function to find unnamed arguments Nov 9, 2023
@dlaehnemann dlaehnemann changed the title feature: add a function to find unnamed arguments feat: add a function to find unnamed arguments Nov 9, 2023
@dlaehnemann
Copy link
Contributor

I just edited the title to conform to conventional commits, that we use to automate releases and changelogs via release-please. I guess this should be documented somewhere prominently, maybe in a pull request template...

_get_unnamed_arguments(snakemake.input)

"""
keys_with_positions = parameter_list._names
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't like that this uses private attibutes of NamedList. I think the functionality should rather be directly implemented in NamedList. Can you please file a PR in the main Snakemake repository?

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