nextflow run tutorial.nf --str Hola Hello Aloha
I know I could put them in a quoted string -- the reason I'd like to be able to pass multiple items is to leverage bash filename expansion when starting the script from the command line.
Thanks in advance.--
You received this message because you are subscribed to the Google Groups "Nextflow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nextflow+u...@googlegroups.com.
Visit this group at https://groups.google.com/group/nextflow.
For more options, visit https://groups.google.com/d/optout.
params.str = 'Hi'str_list = params.str.tokenize(' ')
I don't think so - I've asked Paolo the same question previously. Nextflow is able to handle positional arguments at the end of the command, not not multiple items for a param. If you do figure out a solution please let us know as one of the most common modes of error on our pipelines is people forgetting to use quotes around filenames ;)Phil
On Thursday, 13 April 2017 at 06:58, Owen S. wrote:
Is there any way to pass a list of arguments as input parameters?--For example:nextflow run tutorial.nf --str Hola Hello AlohaI know I could put them in a quoted string -- the reason I'd like to be able to pass multiple items is to leverage bash filename expansion when starting the script from the command line.Thanks in advance.
You received this message because you are subscribed to the Google Groups "Nextflow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nextflow+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/nextflow.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Nextflow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nextflow+unsubscribe@googlegroups.com.
No (yet). This is one of the many CLI improvements we would like to implement.However this's a quick workaround for that.Supposing you want to specify a list a values as you are suggesting, eg.nextflow run tutorial.nf --str Hola Hello AlohaYou can have in your script:params.str = 'Hi'str_list = params.str.tokenize(' ')Then `str_list` can be used in place of the `params.str` and it contains the list of values you have specified on the command line.Hope it helpsCheers,
Paolo
On Thu, Apr 13, 2017 at 8:32 AM, Phil Ewels <phil....@scilifelab.se> wrote:
I don't think so - I've asked Paolo the same question previously. Nextflow is able to handle positional arguments at the end of the command, not not multiple items for a param. If you do figure out a solution please let us know as one of the most common modes of error on our pipelines is people forgetting to use quotes around filenames ;)Phil
On Thursday, 13 April 2017 at 06:58, Owen S. wrote:
Is there any way to pass a list of arguments as input parameters?--For example:nextflow run tutorial.nf --str Hola Hello AlohaI know I could put them in a quoted string -- the reason I'd like to be able to pass multiple items is to leverage bash filename expansion when starting the script from the command line.Thanks in advance.
You received this message because you are subscribed to the Google Groups "Nextflow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nextflow+u...@googlegroups.com.
Visit this group at https://groups.google.com/group/nextflow.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Nextflow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nextflow+u...@googlegroups.com.
inputFileListClass = inputFileList.getClass().toString()if (inputFileListClass == "class java.util.LinkedList")
..
if ( inputFileList.class instanceof List )..
switch( inputFileList.class ) {
case List:
..
break
case Path:
..
break
default:..
}
--
You received this message because you are subscribed to the Google Groups "Nextflow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nextflow+unsubscribe@googlegroups.com.