Skip to content

Commit 7730c1f

Browse files
authored
Merge pull request #111 from drpatelh/master
Update markdownlint checks
2 parents dbfc692 + 38c1b9a commit 7730c1f

File tree

5 files changed

+63
-13
lines changed

5 files changed

+63
-13
lines changed

.github/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ If you're not used to this workflow with git, you can start with some [basic doc
2626

2727

2828
## Tests
29-
When you create a pull request with changes, [Travis CI](https://travis-ci.org/) will run automatic tests.
29+
When you create a pull request with changes, [Travis CI](https://travis-ci.com/) will run automatic tests.
3030
Typically, pull-requests are only fully reviewed when these tests are passing, though of course we can help out before then.
3131

3232
There are typically two types of tests that run:

.github/markdownlint.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
# Markdownlint configuration file
22
default: true,
33
line-length: false
4-
no-multiple-blanks: 0
5-
blanks-around-headers: false
6-
blanks-around-lists: false
7-
header-increment: false
84
no-duplicate-header:
95
siblings_only: true

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ![nf-core/chipseq](docs/images/nf-core-chipseq_logo.png)
22

3-
[![Build Status](https://travis-ci.org/nf-core/chipseq.svg?branch=master)](https://travis-ci.org/nf-core/chipseq)
3+
[![Build Status](https://travis-ci.com/nf-core/chipseq.svg?branch=master)](https://travis-ci.com/nf-core/chipseq)
44
[![Nextflow](https://img.shields.io/badge/nextflow-%E2%89%A519.04.0-brightgreen.svg)](https://www.nextflow.io/)
55

66
[![install with bioconda](https://img.shields.io/badge/install%20with-bioconda-brightgreen.svg)](http://bioconda.github.io/)
@@ -54,13 +54,15 @@ ii. Install one of [`docker`](https://docs.docker.com/engine/installation/), [`s
5454
iii. Download the pipeline and test it on a minimal dataset with a single command
5555

5656
```bash
57-
nextflow run nf-core/chipseq -profile test,<docker/singularity/conda>
57+
nextflow run nf-core/chipseq -profile test,<docker/singularity/conda/institute>
5858
```
5959

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+
6062
iv. Start running your own analysis!
6163

6264
```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
6466
```
6567

6668
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:
98100
> 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).
99101
100102
An extensive list of references for the tools used by the pipeline can be found in the [`CITATIONS.md`](CITATIONS.md) file.
101-

docs/output.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
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.
44

55
## Pipeline overview
6+
67
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.
78

89
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.

docs/usage.md

Lines changed: 56 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@
6666
* [`--multiqc_config`](#--multiqc_config)
6767
<!-- TOC END -->
6868

69-
7069
## Introduction
70+
7171
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.
7272

7373
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'
7777
```
7878

7979
## Running the pipeline
80+
8081
The typical command for running the pipeline is as follows:
8182

8283
```bash
@@ -95,23 +96,25 @@ results # Finished results (configurable, see below)
9596
```
9697

9798
### Updating the pipeline
99+
98100
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:
99101

100102
```bash
101103
nextflow pull nf-core/chipseq
102104
```
103105

104106
### Reproducibility
107+
105108
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.
106109

107110
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`.
108111

109112
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.
110113

111-
112114
## Main arguments
113115

114116
### `-profile`
117+
115118
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!
116119

117120
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
132135
* Includes links to test data so needs no other parameters
133136

134137
### `--input`
138+
135139
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.
136140

137141
```bash
@@ -217,24 +221,29 @@ Example design files have been provided with the pipeline for [paired-end](../as
217221
## Generic arguments
218222

219223
### `--single_end`
224+
220225
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.
221226

222227
It is not possible to run a mixture of single-end and paired-end files in one run.
223228

224229
### `--seq_center`
230+
225231
Sequencing center information that will be added to read groups in BAM files.
226232

227233
### `--fragment_size`
234+
228235
Number of base pairs to extend single-end reads when creating bigWig files (Default: `200`).
229236

230237
### `--fingerprint_bins`
238+
231239
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`).
232240

233241
## Reference genomes
234242

235243
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.
236244

237245
### `--genome` (using iGenomes)
246+
238247
There are 31 different species supported in the iGenomes references. To run the pipeline, you must specify which to use with the `--genome` flag.
239248

240249
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 {
266275
```
267276

268277
### `--fasta`
278+
269279
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.
270280

271281
```bash
272282
--fasta '[path to FASTA reference]'
273283
```
274284

275285
### `--gtf`
286+
276287
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.
277288

278289
```bash
279290
--gtf '[path to GTF file]'
280291
```
281292

282293
### `--bwa_index`
294+
283295
Full path to an existing BWA index for your reference genome including the base name for the index.
284296

285297
```bash
286298
--bwa_index '[directory containing BWA index]/genome.fa'
287299
```
288300

289301
### `--gene_bed`
302+
290303
The full path to BED file for genome-wide gene intervals. This will be created from the GTF file if not specified.
291304

292305
```bash
293306
--gene_bed '[path to gene BED file]'
294307
```
295308

296309
### `--tss_bed`
310+
297311
The full path to BED file for genome-wide transcription start sites. This will be created from the gene BED file if not specified.
298312

299313
```bash
300314
--tss_bed '[path to tss BED file]'
301315
```
302316

303317
### `--macs_gsize`
318+
304319
[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.
305320

306321
```bash
307322
--macs_gsize 2.7e9
308323
```
309324

310325
### `--blacklist`
326+
311327
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.
312328

313329
```bash
314330
--blacklist '[path to blacklisted regions]'
315331
```
316332

317333
### `--save_reference`
334+
318335
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.
319336

320337
### `--igenomes_ignore`
338+
321339
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`.
322340

323341
## Adapter trimming
342+
324343
The pipeline accepts a number of parameters to change how the trimming is done, according to your data type.
325344
You can specify custom trimming parameters as follows:
326345

@@ -336,41 +355,51 @@ You can specify custom trimming parameters as follows:
336355
* 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.
337356

338357
### `--skip_trimming`
358+
339359
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.
340360

341361
### `--save_trimmed`
362+
342363
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.
343364

344365
## Alignments
345-
narrow_peak
366+
346367
### `--keep_dups`
368+
347369
Duplicate reads are not filtered from alignments.
348370

349371
### `--keep_multi_map`
372+
350373
Reads mapping to multiple locations in the genome are not filtered from alignments.
351374

352375
### `--save_align_intermeds`
376+
353377
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.
354378

355379
## Peaks
356380

357381
### `--narrow_peak`
382+
358383
MACS2 is run by default with the [`--broad`](https://github.com/taoliu/MACS#--broad) flag. Specify this flag to call peaks in narrowPeak mode.
359384

360385
### `--broad_cutoff`
386+
361387
Specifies broad cut-off value for MACS2. Only used when `--narrow_peak` isnt specified (Default: `0.1`).
362388

363389
### `--min_reps_consensus`
390+
364391
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.
365392

366393
```bash
367394
-- min_reps_consensus 1
368395
```
369396

370397
### `--save_macs_pileup`
398+
371399
Instruct MACS2 to create bedGraph files using the `-B --SPMR` parameters.
372400

373401
### `--skip_diff_analysis`
402+
374403
Skip read counting and differential analysis step.
375404

376405
## Skipping QC steps
@@ -390,61 +419,77 @@ The following options make this easy:
390419
| `--skip_multiqc` | Skip MultiQC |
391420

392421
## Job resources
422+
393423
### Automatic resubmission
424+
394425
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.
395426

396427
### Custom resource requests
428+
397429
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.
398430

399431
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.
400432

401433
If you have any questions or issues please send us a message on [Slack](https://nf-co.re/join/slack/).
402434

403435
## AWS Batch specific parameters
436+
404437
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+
405439
### `--awsqueue`
440+
406441
The JobQueue that you intend to use on AWS Batch.
442+
407443
### `--awsregion`
444+
408445
The AWS region to run your job in. Default is set to `eu-west-1` but can be adjusted to your needs.
409446

410447
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.
411448

412449
## Other command line parameters
413450

414451
### `--outdir`
452+
415453
The output directory where the results will be saved.
416454

417455
### `--email`
456+
418457
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.
419458

420459
### `--email_on_fail`
460+
421461
This works exactly as with `--email`, except emails are only sent if the workflow is not successful.
422462

423463
### `--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`).
425466

426467
### `-name`
468+
427469
Name for the pipeline run. If not specified, Nextflow will automatically generate a random mnemonic.
428470

429471
This is used in the MultiQC report (if not default) and in the summary HTML / e-mail (always).
430472

431473
**NB:** Single hyphen (core Nextflow option)
432474

433475
### `-resume`
476+
434477
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.
435478

436479
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.
437480

438481
**NB:** Single hyphen (core Nextflow option)
439482

440483
### `-c`
484+
441485
Specify the path to a specific config file (this is a core NextFlow command).
442486

443487
**NB:** Single hyphen (core Nextflow option)
444488

445489
Note - you can use this to override pipeline defaults.
446490

447491
### `--custom_config_version`
492+
448493
Provide git commit id for custom Institutional configs hosted at `nf-core/configs`. This was implemented for reproducibility purposes. Default is set to `master`.
449494

450495
```bash
@@ -453,6 +498,7 @@ Provide git commit id for custom Institutional configs hosted at `nf-core/config
453498
```
454499

455500
### `--custom_config_base`
501+
456502
If you're running offline, nextflow will not be able to fetch the institutional config files
457503
from the internet. If you don't need them, then this is not a problem. If you do need them,
458504
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
473519
> files + singularity containers + institutional configs in one go for you, to make this process easier.
474520
475521
### `--max_memory`
522+
476523
Use to set a top-limit for the default memory requirement for each process.
477524
Should be a string in the format integer-unit. eg. `--max_memory '8.GB'`
478525

479526
### `--max_time`
527+
480528
Use to set a top-limit for the default time requirement for each process.
481529
Should be a string in the format integer-unit. eg. `--max_time '2.h'`
482530

483531
### `--max_cpus`
532+
484533
Use to set a top-limit for the default CPU requirement for each process.
485534
Should be a string in the format integer-unit. eg. `--max_cpus 1`
486535

487536
### `--plaintext_email`
537+
488538
Set to receive plain-text e-mails instead of HTML formatted.
489539

490540
### `--monochrome_logs`
541+
491542
Set to disable colourful command line output and live life in monochrome.
492543

493544
### `--multiqc_config`
545+
494546
Specify a path to a custom MultiQC configuration file.

0 commit comments

Comments
 (0)