Skip to content

Commit f8b29fb

Browse files
committed
Updated README and usage instructions
1 parent 988ec88 commit f8b29fb

File tree

2 files changed

+63
-8
lines changed

2 files changed

+63
-8
lines changed

README.md

Lines changed: 56 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,15 @@ mv ./nextflow ~/bin
1212
### Run the pipeline
1313

1414
```bash
15-
nextflow run NBISweden/wgs-structvar --project <uppmax_project_id> --bam <bamfile.bam> --run_all
15+
nextflow run NBISweden/wgs-structvar --project <uppmax_project_id> --bam <bamfile.bam> --steps manta,fermikit,vep
1616
```
1717

18-
This will run both manta and fermikit and create summary files for everything
19-
in the `results` subdirectory.
18+
This will run both manta and fermikit, annotate the results with variant
19+
effect predictor and create summary files for everything in the `results`
20+
subdirectory.
2021

21-
It is recommended that you set the environment variable `NXF_WORK` to something like
22+
It is recommended that you set the environment variable `NXF_WORK` to
23+
something like
2224

2325
```bash
2426
export NXF_WORK=$SNIC_NOBACKUP/work
@@ -41,6 +43,56 @@ The pipeline will use the following mask files to remove known artifacts:
4143
* From [cc2qe/speedseq](https://github.com/cc2qe/speedseq): https://github.com/cc2qe/speedseq/raw/master/annotations/ceph18.b37.lumpy.exclude.2014-01-15.bed
4244
* From [lh3/varcmp](https://github.com/lh3/varcmp): https://github.com/lh3/varcmp/raw/master/scripts/LCR-hs37d5.bed.gz
4345

46+
47+
## Detailed usage
48+
49+
### Command line options
50+
51+
```
52+
Usage:
53+
nextflow main.nf --bam <bamfile> [more options]
54+
55+
Options:
56+
Required
57+
--bam Input bamfile
58+
--project Uppmax project to log cluster time to
59+
Optional:
60+
(default values in parenthesis where applicable)
61+
--help Show this message and exit
62+
--fastq Input fastqfile (default is bam but with fq as fileending)
63+
Used by fermikit, will be created from the bam file if
64+
missing.
65+
--steps Specify what steps to run, comma separated (manta,vep):
66+
Callers: manta, fermikit
67+
Annotation: vep, snpeff
68+
--outdir Directory where resultfiles are stored (results)
69+
--prefix Prefix for result filenames ()
70+
```
71+
72+
73+
### Customization
74+
75+
The file `nextflow.config` can be used to make some further customizations to
76+
the workflow.
77+
78+
It's probably only the `params` scope of the config file that is of interest
79+
to customize.
80+
81+
The first part has the default values for the command line parameters, see the
82+
usage message for information on them.
83+
84+
The next section has the reference assembly to use, both as fasta and assembly
85+
name.
86+
87+
The `modules` section contains all modules used by the workflow and their
88+
versions, change modules here not in the `main.nf` file.
89+
90+
Finally the `runtime` section has the different runtimes for the different
91+
parts of the workflow. `fermikit` has it's own timespec since that is a very
92+
long running program, otherwise the workflow differentiates between `callers`
93+
and other supporting `simple` single-core jobs.
94+
95+
4496
## External links
4597

4698
* [NextFlow website](http://www.nextflow.io)

main.nf

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -360,13 +360,16 @@ def usage_message() {
360360
log.info ' --bam Input bamfile'
361361
log.info ' --project Uppmax project to log cluster time to'
362362
log.info ' Optional'
363+
log.info ' (default values in parenthesis where applicable)'
363364
log.info ' --help Show this message and exit'
365+
log.info ' Used by fermikit, will be created from the bam file if'
366+
log.info ' missing.'
364367
log.info ' --fastq Input fastqfile (default is bam but with fq as fileending)'
365368
log.info ' --steps Specify what steps to run, comma separated:'
366-
log.info ' Callers: manta, fermikit (choose one or many)'
367-
log.info ' Annotation: vep OR snpeff'
368-
log.info ' --outdir Directory where resultfiles are stored'
369-
log.info ' --prefix Prefix for result filenames'
369+
log.info ' Callers: manta, fermikit
370+
log.info ' Annotation: vep, snpeff'
371+
log.info ' --outdir Directory where resultfiles are stored (results)'
372+
log.info ' --prefix Prefix for result filenames (empty)'
370373
log.info ''
371374
}
372375

0 commit comments

Comments
 (0)