generated from nf-modules-hub/nextflow_hub_process
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* general formatting * add the usage doc, update the code * add stub for the snippy core
- Loading branch information
Showing
3 changed files
with
127 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,63 @@ | ||
# nf_process | ||
# Nextflow wrapper for `snippy` process. | ||
|
||
## Pre-requisites | ||
|
||
- Nextflow | ||
- Docker | ||
|
||
**NOTE** If you plan to setup a basic server, then you can refer [minimal-nextflow-setup](https://github.com/nextflow-hub/minimal-nextflow-setup) | ||
|
||
## Usage | ||
|
||
``` | ||
nextflow run https://github.com/nextflow-hub/snippy | ||
``` | ||
|
||
## Options | ||
|
||
- `refGbk` | ||
|
||
By default, the process assumes the reference file to be `NC000962_3.gbk` which could be customized using this option | ||
|
||
``` | ||
nextflow run https://github.com/nextflow-hub/snippy --refGbk NCxxxxxx.gbk | ||
``` | ||
|
||
- `filePattern` | ||
|
||
By default, the process assumes the files to follow the `*_{R1,R2}.fastq.gz` pattern, which could be customized using this option | ||
|
||
``` | ||
nextflow run https://github.com/nextflow-hub/snippy --filePattern './*_{1,2}.fastq.gz' | ||
``` | ||
|
||
- `resultsDir` | ||
|
||
By default, it stores the result files locally inside the `results` directory. | ||
|
||
``` | ||
nextflow run https://github.com/nextflow-hub/snippy --resultsDir /path/to/custom/resultsDir | ||
``` | ||
|
||
- `saveMode` | ||
|
||
By default, the pipeline publishes the results in the `resultsDir` by copying the relevant output. | ||
|
||
You can update this behavior by simply specifying the alternative such as `move` or `link` etc. | ||
|
||
``` | ||
nextflow run https://github.com/nextflow-hub/snippy --saveMode move | ||
``` | ||
|
||
For more information please refer [Nextflow documentation](https://www.nextflow.io/docs/latest/process.html#publishdir) | ||
|
||
## Customizing the script | ||
|
||
The sole purpose of process wrappers in `nextflow-hub` is to keep the code small, clean and hackable with some basic knowledge of `nextflow` scripting. | ||
|
||
If you have specific requirements, you are encouraged to fork/clone and update your version to accomodate your needs. | ||
|
||
|
||
## Contribution | ||
|
||
Contribution, in all forms, is most welcome! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters