0
$\begingroup$

main.nf is

#!/usr/bin/env nextflow

params.input = ''
tchan = Channel.fromFile(params.input)

tchan.println()

I have a.bam, b.bam and c.bam

I run:

nextflow run main.nf --input *bam

But it only prints a.bam

According to the documentation, wildcard character it is interpreted as a glob path matcher

What am I doing wrong?

Thank you

$\endgroup$
1
  • 2
    $\begingroup$ Shell expands wildcards, try ls * vs ls "*" . $\endgroup$
    – pditommaso
    Apr 1, 2020 at 4:49

1 Answer 1

1
$\begingroup$

got it!

I should run:

nextflow run main.nf --input "*bam"

instead of

nextflow run main.nf --input *bam
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.