diff --git a/README.md b/README.md index df5e0ee859e160f3b72802fc7cbde990cf640dc2..cab03de46f2c5c7a9408511c29ad98385b3c8394 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ To get the last commits from this repository into your fork use the following co For the first time: ```sh -git remote add upstream git@gitbio.ens-lyon.fr:pipelines/nextflow.git +git remote add upstream git@gitbio.ens-lyon.fr:LBMC/nextflow.git git pull upstream master ``` diff --git a/doc/building_your_pipeline.md b/doc/building_your_pipeline.md index f6d05a9478a015344ee51c16cb8cc663c7104419..3aa8196fbc1f86997621ed20fe2ffd23e3ed4872 100644 --- a/doc/building_your_pipeline.md +++ b/doc/building_your_pipeline.md @@ -57,10 +57,10 @@ Here is an example of **process**: ```Groovy process sample_fasta { input: - file fasta + path fasta output: - file "sample.fasta", emit: fasta_sample + path "sample.fasta", emit: fasta_sample script: """ @@ -69,20 +69,20 @@ head ${fasta} > sample.fasta } ``` -We have the process `sample_fasta` that takes fasta `file` input and as output a fasta `file`. The `process` task itself is defined in the `script:` block and within `"""`. +We have the process `sample_fasta` that takes fasta `path` input and as output a fasta `path`. The `process` task itself is defined in the `script:` block and within `"""`. ```Groovy input: -file fasta +path fasta ``` -When we zoom on the `input:` block, we see that we define a variable `fasta` of type `file`. +When we zoom on the `input:` block, we see that we define a variable `fasta` of type `path`. This means that the `sample_fasta` `process` is going to get a flux of fasta file(s). Nextflow is going to write a file named as the content of the variable `fasta` in the root of the folder where `script:` is executed. ```Groovy output: -file "sample.fasta", emit: fasta_sample +path "sample.fasta", emit: fasta_sample ``` At the end of the script, a file named `sample.fasta` is found in the root the folder where `script:` is executed and will be emitted as `fasta_sample`. @@ -201,7 +201,7 @@ Every `fasta_sampler` process write a `sample.fasta` file. We need to make the n ```Groovy output: -file "*_sample.fasta", emit: fasta_sample +path "*_sample.fasta", emit: fasta_sample script: """