You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](http://bioconda.github.io/)
@@ -54,13 +54,15 @@ ii. Install one of [`docker`](https://docs.docker.com/engine/installation/), [`s
54
54
iii. Download the pipeline and test it on a minimal dataset with a single command
55
55
56
56
```bash
57
-
nextflow run nf-core/chipseq -profile test,<docker/singularity/conda>
57
+
nextflow run nf-core/chipseq -profile test,<docker/singularity/conda/institute>
58
58
```
59
59
60
+
> Please check [nf-core/configs](https://github.com/nf-core/configs#documentation) to see if a custom config file to run nf-core pipelines already exists for your Institute. If so, you can simply use `-profile institute` in your command. This will enable either `docker` or `singularity` and set the appropriate execution settings for your local compute environment.
61
+
60
62
iv. Start running your own analysis!
61
63
62
64
```bash
63
-
nextflow run nf-core/chipseq -profile <docker/singularity/conda> --input design.csv --genome GRCh37
65
+
nextflow run nf-core/chipseq -profile <docker/singularity/conda/institute> --input design.csv --genome GRCh37
64
66
```
65
67
66
68
See [usage docs](docs/usage.md) for all of the available options when running the pipeline.
@@ -98,4 +100,3 @@ You can cite the `nf-core` pre-print as follows:
98
100
> Ewels PA, Peltzer A, Fillinger S, Alneberg JA, Patel H, Wilm A, Garcia MU, Di Tommaso P, Nahnsen S. **nf-core: Community curated bioinformatics pipelines**. *bioRxiv*. 2019. p. 610741. [doi: 10.1101/610741](https://www.biorxiv.org/content/10.1101/610741v1).
99
101
100
102
An extensive list of references for the tools used by the pipeline can be found in the [`CITATIONS.md`](CITATIONS.md) file.
Copy file name to clipboardExpand all lines: docs/output.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,7 @@
3
3
This document describes the output produced by the pipeline. Most of the plots are taken from the MultiQC report, which summarises results at the end of the pipeline.
4
4
5
5
## Pipeline overview
6
+
6
7
The pipeline is built using [Nextflow](https://www.nextflow.io/). See [`main README.md`](../README.md) for a condensed overview of the steps in the pipeline, and the bioinformatics tools used at each step.
7
8
8
9
See [Illumina website](https://emea.illumina.com/techniques/sequencing/dna-sequencing/chip-seq.html) for more information regarding the ChIP-seq protocol, and for an extensive list of publications.
Copy file name to clipboardExpand all lines: docs/usage.md
+56-4Lines changed: 56 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,8 +66,8 @@
66
66
*[`--multiqc_config`](#--multiqc_config)
67
67
<!-- TOC END -->
68
68
69
-
70
69
## Introduction
70
+
71
71
Nextflow handles job submissions on SLURM or other environments, and supervises running the jobs. Thus the Nextflow process must run until the pipeline is finished. We recommend that you put the process running in the background through `screen` / `tmux` or similar tool. Alternatively you can run nextflow within a cluster job submitted your job scheduler.
72
72
73
73
It is recommended to limit the Nextflow Java virtual machines memory. We recommend adding the following line to your environment (typically in `~/.bashrc` or `~./bash_profile`):
@@ -77,6 +77,7 @@ NXF_OPTS='-Xms1g -Xmx4g'
77
77
```
78
78
79
79
## Running the pipeline
80
+
80
81
The typical command for running the pipeline is as follows:
When you run the above command, Nextflow automatically pulls the pipeline code from GitHub and stores it as a cached version. When running the pipeline after this, it will always use the cached version if available - even if the pipeline has been updated since. To make sure that you're running the latest version of the pipeline, make sure that you regularly update the cached version of the pipeline:
99
101
100
102
```bash
101
103
nextflow pull nf-core/chipseq
102
104
```
103
105
104
106
### Reproducibility
107
+
105
108
It's a good idea to specify a pipeline version when running the pipeline on your data. This ensures that a specific version of the pipeline code and software are used when you run your pipeline. If you keep using the same tag, you'll be running the same version of the pipeline, even if there have been changes to the code since.
106
109
107
110
First, go to the [nf-core/chipseq releases page](https://github.com/nf-core/chipseq/releases) and find the latest version number - numeric only (eg. `1.3.1`). Then specify this when running the pipeline with `-r` (one hyphen) - eg. `-r 1.3.1`.
108
111
109
112
This version number will be logged in reports when you run the pipeline, so that you'll know what you used when you look back in the future.
110
113
111
-
112
114
## Main arguments
113
115
114
116
### `-profile`
117
+
115
118
Use this parameter to choose a configuration profile. Profiles can give configuration presets for different compute environments. Note that multiple profiles can be loaded, for example: `-profile docker` - the order of arguments is important!
116
119
117
120
If `-profile` is not specified at all the pipeline will be run locally and expects all software to be installed and available on the `PATH`.
@@ -132,6 +135,7 @@ If `-profile` is not specified at all the pipeline will be run locally and expec
132
135
* Includes links to test data so needs no other parameters
133
136
134
137
### `--input`
138
+
135
139
You will need to create a design file with information about the samples in your experiment before running the pipeline. Use this parameter to specify its location. It has to be a comma-separated file with 6 columns, and a header row as shown in the examples below.
136
140
137
141
```bash
@@ -217,24 +221,29 @@ Example design files have been provided with the pipeline for [paired-end](../as
217
221
## Generic arguments
218
222
219
223
### `--single_end`
224
+
220
225
By default, the pipeline expects paired-end data. If you have single-end data, specify `--single_end` on the command line when you launch the pipeline.
221
226
222
227
It is not possible to run a mixture of single-end and paired-end files in one run.
223
228
224
229
### `--seq_center`
230
+
225
231
Sequencing center information that will be added to read groups in BAM files.
226
232
227
233
### `--fragment_size`
234
+
228
235
Number of base pairs to extend single-end reads when creating bigWig files (Default: `200`).
229
236
230
237
### `--fingerprint_bins`
238
+
231
239
Number of genomic bins to use when generating the deepTools fingerprint plot. Larger numbers will give a smoother profile, but take longer to run (Default: `500000`).
232
240
233
241
## Reference genomes
234
242
235
243
The pipeline config files come bundled with paths to the illumina iGenomes reference index files. If running with docker or AWS, the configuration is set up to use the [AWS-iGenomes](https://ewels.github.io/AWS-iGenomes/) resource.
236
244
237
245
### `--genome` (using iGenomes)
246
+
238
247
There are 31 different species supported in the iGenomes references. To run the pipeline, you must specify which to use with the `--genome` flag.
239
248
240
249
You can find the keys to specify the genomes in the [iGenomes config file](../conf/igenomes.config). Common genomes that are supported are:
@@ -266,61 +275,71 @@ params {
266
275
```
267
276
268
277
### `--fasta`
278
+
269
279
Full path to fasta file containing reference genome (*mandatory* if `--genome` is not specified). If you don't have a BWA index available this will be generated for you automatically. Combine with `--save_reference` to save BWA index for future runs.
270
280
271
281
```bash
272
282
--fasta '[path to FASTA reference]'
273
283
```
274
284
275
285
### `--gtf`
286
+
276
287
The full path to GTF file for annotating peaks (*mandatory* if `--genome` is not specified). Note that the GTF file should resemble the Ensembl format.
277
288
278
289
```bash
279
290
--gtf '[path to GTF file]'
280
291
```
281
292
282
293
### `--bwa_index`
294
+
283
295
Full path to an existing BWA index for your reference genome including the base name for the index.
The full path to BED file for genome-wide gene intervals. This will be created from the GTF file if not specified.
291
304
292
305
```bash
293
306
--gene_bed '[path to gene BED file]'
294
307
```
295
308
296
309
### `--tss_bed`
310
+
297
311
The full path to BED file for genome-wide transcription start sites. This will be created from the gene BED file if not specified.
298
312
299
313
```bash
300
314
--tss_bed '[path to tss BED file]'
301
315
```
302
316
303
317
### `--macs_gsize`
318
+
304
319
[Effective genome size](https://github.com/taoliu/MACS#-g--gsize) parameter required by MACS2. These have been provided when `--genome` is set as *GRCh37*, *GRCh38*, *GRCm38*, *WBcel235*, *BDGP6*, *R64-1-1*, *EF2*, *hg38*, *hg19* and *mm10*. For other genomes, if this parameter is not specified then the MACS2 peak-calling and differential analysis will be skipped.
305
320
306
321
```bash
307
322
--macs_gsize 2.7e9
308
323
```
309
324
310
325
### `--blacklist`
326
+
311
327
If provided, alignments that overlap with the regions in this file will be filtered out (see [ENCODE blacklists](https://sites.google.com/site/anshulkundaje/projects/blacklists)). The file should be in BED format. Blacklisted regions for *GRCh37*, *GRCh38*, *GRCm38*, *hg19*, *hg38*, *mm10* are bundled with the pipeline in the [`blacklists`](../assets/blacklists/) directory, and as such will be automatically used if any of those genomes are specified with the `--genome` parameter.
312
328
313
329
```bash
314
330
--blacklist '[path to blacklisted regions]'
315
331
```
316
332
317
333
### `--save_reference`
334
+
318
335
If the BWA index is generated by the pipeline use this parameter to save it to your results folder. These can then be used for future pipeline runs, reducing processing times.
319
336
320
337
### `--igenomes_ignore`
338
+
321
339
Do not load `igenomes.config` when running the pipeline. You may choose this option if you observe clashes between custom parameters and those supplied in `igenomes.config`.
322
340
323
341
## Adapter trimming
342
+
324
343
The pipeline accepts a number of parameters to change how the trimming is done, according to your data type.
325
344
You can specify custom trimming parameters as follows:
326
345
@@ -336,41 +355,51 @@ You can specify custom trimming parameters as follows:
336
355
* This enables the option Cutadapt `--nextseq-trim=3'CUTOFF` option via Trim Galore, which will set a quality cutoff (that is normally given with -q instead), but qualities of G bases are ignored. This trimming is in common for the NextSeq- and NovaSeq-platforms, where basecalls without any signal are called as high-quality G bases.
337
356
338
357
### `--skip_trimming`
358
+
339
359
Skip the adapter trimming step. Use this if your input FastQ files have already been trimmed outside of the workflow or if you're very confident that there is no adapter contamination in your data.
340
360
341
361
### `--save_trimmed`
362
+
342
363
By default, trimmed FastQ files will not be saved to the results directory. Specify this flag (or set to true in your config file) to copy these files to the results directory when complete.
343
364
344
365
## Alignments
345
-
narrow_peak
366
+
346
367
### `--keep_dups`
368
+
347
369
Duplicate reads are not filtered from alignments.
348
370
349
371
### `--keep_multi_map`
372
+
350
373
Reads mapping to multiple locations in the genome are not filtered from alignments.
351
374
352
375
### `--save_align_intermeds`
376
+
353
377
By default, intermediate BAM files will not be saved. The final BAM files created after the appropriate filtering step are always saved to limit storage usage. Set to true to also save other intermediate BAM files.
354
378
355
379
## Peaks
356
380
357
381
### `--narrow_peak`
382
+
358
383
MACS2 is run by default with the [`--broad`](https://github.com/taoliu/MACS#--broad) flag. Specify this flag to call peaks in narrowPeak mode.
359
384
360
385
### `--broad_cutoff`
386
+
361
387
Specifies broad cut-off value for MACS2. Only used when `--narrow_peak` isnt specified (Default: `0.1`).
362
388
363
389
### `--min_reps_consensus`
390
+
364
391
Number of biological replicates required from a given condition for a peak to contribute to a consensus peak . If you are confident you have good reproducibility amongst your replicates then you can increase the value of this parameter to create a "reproducible" set of consensus of peaks. For example, a value of 2 will mean peaks that have been called in at least 2 replicates will contribute to the consensus set of peaks, and as such peaks that are unique to a given replicate will be discarded.
365
392
366
393
```bash
367
394
-- min_reps_consensus 1
368
395
```
369
396
370
397
### `--save_macs_pileup`
398
+
371
399
Instruct MACS2 to create bedGraph files using the `-B --SPMR` parameters.
372
400
373
401
### `--skip_diff_analysis`
402
+
374
403
Skip read counting and differential analysis step.
375
404
376
405
## Skipping QC steps
@@ -390,61 +419,77 @@ The following options make this easy:
390
419
|`--skip_multiqc`| Skip MultiQC |
391
420
392
421
## Job resources
422
+
393
423
### Automatic resubmission
424
+
394
425
Each step in the pipeline has a default set of requirements for number of CPUs, memory and time. For most of the steps in the pipeline, if the job exits with an error code of `143` (exceeded requested resources) it will automatically resubmit with higher requests (2 x original, then 3 x original). If it still fails after three times then the pipeline is stopped.
395
426
396
427
### Custom resource requests
428
+
397
429
Wherever process-specific requirements are set in the pipeline, the default value can be changed by creating a custom config file. See the files hosted at [`nf-core/configs`](https://github.com/nf-core/configs/tree/master/conf) for examples.
398
430
399
431
If you are likely to be running `nf-core` pipelines regularly it may be a good idea to request that your custom config file is uploaded to the `nf-core/configs` git repository. Before you do this please can you test that the config file works with your pipeline of choice using the `-c` parameter (see definition below). You can then create a pull request to the `nf-core/configs` repository with the addition of your config file, associated documentation file (see examples in [`nf-core/configs/docs`](https://github.com/nf-core/configs/tree/master/docs)), and amending [`nfcore_custom.config`](https://github.com/nf-core/configs/blob/master/nfcore_custom.config) to include your custom profile.
400
432
401
433
If you have any questions or issues please send us a message on [Slack](https://nf-co.re/join/slack/).
402
434
403
435
## AWS Batch specific parameters
436
+
404
437
Running the pipeline on AWS Batch requires a couple of specific parameters to be set according to your AWS Batch configuration. Please use the `-awsbatch` profile and then specify all of the following parameters.
438
+
405
439
### `--awsqueue`
440
+
406
441
The JobQueue that you intend to use on AWS Batch.
442
+
407
443
### `--awsregion`
444
+
408
445
The AWS region to run your job in. Default is set to `eu-west-1` but can be adjusted to your needs.
409
446
410
447
Please make sure to also set the `-w/--work-dir` and `--outdir` parameters to a S3 storage bucket of your choice - you'll get an error message notifying you if you didn't.
411
448
412
449
## Other command line parameters
413
450
414
451
### `--outdir`
452
+
415
453
The output directory where the results will be saved.
416
454
417
455
### `--email`
456
+
418
457
Set this parameter to your e-mail address to get a summary e-mail with details of the run sent to you when the workflow exits. If set in your user config file (`~/.nextflow/config`) then you don't need to specify this on the command line for every run.
419
458
420
459
### `--email_on_fail`
460
+
421
461
This works exactly as with `--email`, except emails are only sent if the workflow is not successful.
422
462
423
463
### `--max_multiqc_email_size`
424
-
Theshold size for MultiQC report to be attached in notification email. If file generated by pipeline exceeds the threshold, it will not be attached (Default: `25MB`).
464
+
465
+
Threshold size for MultiQC report to be attached in notification email. If file generated by pipeline exceeds the threshold, it will not be attached (Default: `25MB`).
425
466
426
467
### `-name`
468
+
427
469
Name for the pipeline run. If not specified, Nextflow will automatically generate a random mnemonic.
428
470
429
471
This is used in the MultiQC report (if not default) and in the summary HTML / e-mail (always).
430
472
431
473
**NB:** Single hyphen (core Nextflow option)
432
474
433
475
### `-resume`
476
+
434
477
Specify this when restarting a pipeline. Nextflow will used cached results from any pipeline steps where the inputs are the same, continuing from where it got to previously.
435
478
436
479
You can also supply a run name to resume a specific run: `-resume [run-name]`. Use the `nextflow log` command to show previous run names.
437
480
438
481
**NB:** Single hyphen (core Nextflow option)
439
482
440
483
### `-c`
484
+
441
485
Specify the path to a specific config file (this is a core NextFlow command).
442
486
443
487
**NB:** Single hyphen (core Nextflow option)
444
488
445
489
Note - you can use this to override pipeline defaults.
446
490
447
491
### `--custom_config_version`
492
+
448
493
Provide git commit id for custom Institutional configs hosted at `nf-core/configs`. This was implemented for reproducibility purposes. Default is set to `master`.
449
494
450
495
```bash
@@ -453,6 +498,7 @@ Provide git commit id for custom Institutional configs hosted at `nf-core/config
453
498
```
454
499
455
500
### `--custom_config_base`
501
+
456
502
If you're running offline, nextflow will not be able to fetch the institutional config files
457
503
from the internet. If you don't need them, then this is not a problem. If you do need them,
458
504
you should download the files from the repo and tell nextflow where to find them with the
@@ -473,22 +519,28 @@ nextflow run /path/to/pipeline/ --custom_config_base /path/to/my/configs/configs
473
519
> files + singularity containers + institutional configs in one go for you, to make this process easier.
474
520
475
521
### `--max_memory`
522
+
476
523
Use to set a top-limit for the default memory requirement for each process.
477
524
Should be a string in the format integer-unit. eg. `--max_memory '8.GB'`
478
525
479
526
### `--max_time`
527
+
480
528
Use to set a top-limit for the default time requirement for each process.
481
529
Should be a string in the format integer-unit. eg. `--max_time '2.h'`
482
530
483
531
### `--max_cpus`
532
+
484
533
Use to set a top-limit for the default CPU requirement for each process.
485
534
Should be a string in the format integer-unit. eg. `--max_cpus 1`
486
535
487
536
### `--plaintext_email`
537
+
488
538
Set to receive plain-text e-mails instead of HTML formatted.
489
539
490
540
### `--monochrome_logs`
541
+
491
542
Set to disable colourful command line output and live life in monochrome.
492
543
493
544
### `--multiqc_config`
545
+
494
546
Specify a path to a custom MultiQC configuration file.
0 commit comments