gwl-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gwl-devel] variable interpolation in code snippets


From: zimoun
Subject: Re: [gwl-devel] variable interpolation in code snippets
Date: Tue, 26 Feb 2019 18:35:46 +0100

On Tue, 26 Feb 2019 at 09:12, Ricardo Wurmus <address@hidden> wrote:
>
> I thought about adding support for selectors, but I don’t know if I
> should.  Maybe it would be better to allow for named inputs instead,
> which would result in process-local bindings.

`data-inputs` is often a list, say the genome (genome.fa) and the
sequences (R1.fq and R2.fq); then the procedure uses each as e.g.
    my-tool -i genome.fa -1 R1.fq -2 R2.fq

Personnally, I find the Snakemake notation clear:
  input:
     genome = genome.fa
     seqA = R1.fq
     seqB = R2.fq
  shell:
    my-tool -i {input.genome} -1 {input.seqA} -2 {input.seqB}

Well, I do not know which will be the best design.
process-local bindings with a "big let"?
procedure-local binding with let?
read macro with which "syntax"?
etc.

> This would probably require changes to the records macro that we took
> from Guix.  I’d prefer that over implementing a small language in a
> reader macro.

Hum? ok...
I am not sure to see what should be the final result?


In any case, the string interpolation already improves a lot compared
to the string-append. :-)



All the best
--
simon



reply via email to

[Prev in Thread] Current Thread [Next in Thread]