text: user8660: I want to pass a series of files (e.g., a, b) to a program prog like: prog a,b.
  Is there a way to do this in Snakemake?
  My attempt is:
  rule run_prog:
    input: "a", "b"
    output: "output"
    run: "prog {input}"
  
  But the actual command Snakemake generated is prog a b instead of prog a,b.
  Any solution to pass a comma concatenated file names to Snakemake?
  
  user439: You can use join to convert the list of input file into a string. 
  I think this would work as expected.:
  rule run_prog:
      input: "a", "b"
      output: "output"
      run: f"prog {','.join(input)}"
  
  
original_text: 8660: <p>I want to pass a series of files (e.g., <code>a</code>, <code>b</code>) to a program <code>prog</code> like: <code>prog a,b</code>.</p>
  
  <p>Is there a way to do this in Snakemake?</p>
  
  <p>My attempt is:</p>
  
  <pre><code>rule run_prog:
    input: "a", "b"
    output: "output"
    run: "prog {input}"
  </code></pre>
  
  <p>But the actual command Snakemake generated is <code>prog a b</code> instead of <code>prog a,b</code>.</p>
  
  <p>Any solution to pass a comma concatenated file names to Snakemake?</p>
   439: <p>You can use join to convert the list of input file into a string. 
  I think this would work as expected.:</p>
  
  <pre class="lang-py prettyprint-override"><code>rule run_prog:
      input: "a", "b"
      output: "output"
      run: f"prog {','.join(input)}"
  </code></pre>
  