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

Enhanced output val declaration adding support for value literals and value expressions #59

Closed
pditommaso opened this issue Jul 25, 2015 · 2 comments

Comments

@pditommaso
Copy link
Member

Currently an output val declaration is able only to capture a value defined in the process script context.

However it'd be useful to allow to use also value literals and value expression. For example:

x = 100 

process foo {
  input: 
  file fastq from 'dummy'

  output: 
  val 'Hello' into str_channel 
  val "${fastq.baseName}-${x}.out" into exp_channel

  """
  echo bar 
  """
} 

str_channel.println { "str: $it" }
exp_channel.println { "exp: $it" }

It should print:

str: Hello
exp: input-100.out
@pditommaso
Copy link
Member Author

This is related to issue #42

@pditommaso
Copy link
Member Author

Released with version 0.15.0

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

No branches or pull requests

1 participant