Open
Description
I have this idea that you should be able to create a very generic component for producing combinations of parameters and file names, to feed downstream processes.
The specification for the combinations could either be some kind of text format, or a Go function.
A quick sketch of a Go version could be:
combinator := scipipe.NewCombinator()
combinator.Func = func() map[string]string {
out := map[string][]string{
"x": []string{},
"y": []string{},
}
for _, x := range []string{"1", "2", "3"} {
for _, y := range []string{"4", "5", "6"} {
out["x"].append(x)
out["y"].append(y)
}
}
return out
}
While a text version might be:
combinator := scipipe.NewCombinator()
combinator.Spec = `
outfiles = glob("somefolder/*.fa")
x = 1,2,3,4,5
y = a,b,c,d,e,f,gh
`
// The indentation here could specify "folding", similar to how one would solve this using loops.
Metadata
Assignees
Labels
No labels