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

Implement "csv" string expansion #29

Open
epruesse opened this issue Feb 5, 2018 · 0 comments
Open

Implement "csv" string expansion #29

epruesse opened this issue Feb 5, 2018 · 0 comments
Milestone

Comments

@epruesse
Copy link
Owner

epruesse commented Feb 5, 2018

Array values, e.g. multiple input files, should be expandable as CSV as is often needed for tools accepting many input files.

rule bla:
  input:
    r1 = "{dir}/{:sources:}.{:pairnames[0]:}.fq.gz",
    r2 = "{dir}/{:sources:}.{:pairnames[1]:}.fq.gz"
 params:
    r1  = "{input.r1:,}"
    r2 = "{input.r2:,}"

This probably won't be possible for expansion in shell: directly in a robust manner. It should be doable from within SnakemakeExpander though to have in params etc. Since it would depend on already concretized input, it'd have to run as a function, so essentially limited to params.

@epruesse epruesse added this to the future milestone Jun 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant