Skip to content

Commit e4cb662

Browse files
authored
Merge pull request #152 from MaxUlysse/CodePolish
Code polish
2 parents ff5a256 + ba9b481 commit e4cb662

7 files changed

Lines changed: 82 additions & 122 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
1313
- [#115](https://github.com/nf-core/sarek/pull/115) - Add [@szilvajuhos](https://github.com/szilvajuhos) abstract for ESHG2020
1414
- [#117](https://github.com/nf-core/sarek/pull/117) - Add `Trim Galore` possibilities to Sarek
1515
- [#141](https://github.com/nf-core/sarek/pull/141) - Add containers for `WBcel235`
16-
- GitHub actions AWS megatests
16+
- [#150](https://github.com/nf-core/sarek/pull/150), [#151](https://github.com/nf-core/sarek/pull/151), [#154](https://github.com/nf-core/sarek/pull/154) - Add AWS mega test GitHub Actions
1717

1818
### `Changed`
1919

@@ -40,6 +40,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
4040
- [#141](https://github.com/nf-core/sarek/pull/141) - Update `VEP` databases to `99`
4141
- [#143](https://github.com/nf-core/sarek/pull/143) - Revert `snpEff` cache version to `75` for `GRCh37`
4242
- [#143](https://github.com/nf-core/sarek/pull/143) - Revert `snpEff` cache version to `86` for `GRCh38`
43+
- [#152](https://github.com/nf-core/sarek/pull/152) - Update docs
4344

4445
### `Fixed`
4546

@@ -52,9 +53,11 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
5253
- [#129](https://github.com/nf-core/sarek/pull/129) - Apply @drpatelh fix for `mardown_to_html.py` compatibility with Python 2
5354
- [#129](https://github.com/nf-core/sarek/pull/129) - Removed `Python` `3.7.3` from conda environment due to incompatibility
5455
- [#129](https://github.com/nf-core/sarek/pull/129) - Change ascii characters that were not supported from the `output.md` docs
56+
- [#140](https://github.com/nf-core/sarek/pull/140) - Fix extra T/N combinations for `ASCAT` cf [#136](https://github.com/nf-core/sarek/issues/136)
5557
- [#141](https://github.com/nf-core/sarek/pull/141) - Fix `download_cache.nf` script to download cache for `snpEff` and `VEP`
5658
- [#143](https://github.com/nf-core/sarek/pull/143) - Fix annotation CI testing with `snpEff` and `VEP`
5759
- [#144](https://github.com/nf-core/sarek/pull/144) - Fix CircleCI for building `VEP` containers
60+
- [#146](https://github.com/nf-core/sarek/pull/146) - Fix `--no_intervals` for `Mutect2` cf [#135](https://github.com/nf-core/sarek/issues/135)
5861

5962
### `Deprecated`
6063

@@ -93,6 +96,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
9396
- [#107](https://github.com/nf-core/sarek/pull/107) - `--singleCPUMem` is now removed, use `--single_cpu_mem` instead
9497
- [#107](https://github.com/nf-core/sarek/pull/107) - `--snpeffDb` is now removed, use `--snpeff_db` instead
9598
- [#107](https://github.com/nf-core/sarek/pull/107) - `--vepCacheVersion` is now removed, use `--vep_cache_version` instead
99+
- [#152](https://github.com/nf-core/sarek/pull/152) - Removed `Jenkinsfile`
96100

97101
## [2.5.2] - Jåkkåtjkaskajekna
98102

Jenkinsfile

Lines changed: 0 additions & 63 deletions
This file was deleted.

README.md

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,19 +82,28 @@ Main authors:
8282

8383
Helpful contributors:
8484

85-
* [Johannes Alneberg](https://github.com/alneberg)
86-
* [Phil Ewels](https://github.com/ewels)
85+
* [Adrian Lärkeryd](https://github.com/adrlar)
86+
* [Alexander Peltzer](https://github.com/apeltzer)
87+
* [Chela James](https://github.com/chelauk)
88+
* [Francesco L](https://github.com/nibscles)
89+
* [FriederikeHanssen](https://github.com/FriederikeHanssen)
90+
* [Gisela Gabernet](https://github.com/ggabernet)
8791
* [Jesper Eisfeldt](https://github.com/J35P312)
92+
* [Johannes Alneberg](https://github.com/alneberg)
93+
* [KochTobi](https://github.com/KochTobi)
94+
* [Lucia Conde](https://github.com/lconde-ucl)
8895
* [Malin Larsson](https://github.com/malinlarsson)
8996
* [Marcel Martin](https://github.com/marcelm)
90-
* [Alexander Peltzer](https://github.com/apeltzer)
9197
* [Nilesh Tawari](https://github.com/nilesh-tawari)
98+
* [Phil Ewels](https://github.com/ewels)
99+
* [Sabrina Krakau](https://github.com/skrakau)
100+
* [Sebastian-D](https://github.com/Sebastian-D)
101+
* [Winni Kretzschmar](https://github.com/winni2k)
92102
* [arontommi](https://github.com/arontommi)
93103
* [bjornnystedt](https://github.com/bjornnystedt)
104+
* [cgpu](https://github.com/cgpu)
94105
* [gulfshores](https://github.com/gulfshores)
95-
* [KochTobi](https://github.com/KochTobi)
96106
* [pallolason](https://github.com/pallolason)
97-
* [Sebastian-D](https://github.com/Sebastian-D)
98107
* [silviamorins](https://github.com/silviamorins)
99108

100109
## Contributions & Support
@@ -116,7 +125,7 @@ For further information or help, don't hesitate to get in touch on [Slack](https
116125
## Citation
117126

118127
If you use `nf-core/sarek` for your analysis, please cite the `Sarek` pre-print as follows:
119-
> Garcia M, Juhos S, Larsson M et al. **Sarek: A portable workflow for whole-genome sequencing analysis of germline and somatic variants [version 1; peer review: awaiting peer review].**. *F1000Research* 2020, 9:63. [doi: 10.12688/f1000research.16665.1](https://f1000research.com/articles/9-63/v1).
128+
> Garcia M, Juhos S, Larsson M et al. **Sarek: A portable workflow for whole-genome sequencing analysis of germline and somatic variants [version 1; peer review: 1 approved]** *F1000Research* 2020, 9:63 [doi: 10.12688/f1000research.16665.1](https://f1000research.com/articles/9-63/v1).
120129
121130
You can cite the sarek zenodo record for a specific version using the following [doi: 10.5281/zenodo.3476426](https://zenodo.org/badge/latestdoi/184289291)
122131

containers/vep/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ RUN conda env export --name nf-core-sarek-vep-dev > nf-core-sarek-vep-dev.yml
1717
# Setup default ARG variables
1818
ARG GENOME=GRCh38
1919
ARG SPECIES=homo_sapiens
20-
ARG VEP_VERSION=95
20+
ARG VEP_VERSION=99
2121

2222
# Download Genome
2323
RUN vep_install \

docs/annotation.md

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,26 @@ With Sarek, annotation is done using `snpEff`, `VEP`, or even both consecutively
1616
VCF produced by Sarek will be annotated if `snpEff` or `VEP` are specified with the `--tools` command.
1717
As Sarek will use `bgzip` and `tabix` to compress and index VCF files annotated, it expects VCF files to be sorted.
1818

19-
In these examples, all command lines will be launched starting with step `annotate`.
19+
In these examples, all command lines will be launched starting with `--step annotate`.
2020
It can of course be started directly from any other step instead.
2121

2222
## Using genome specific containers
2323

24-
Sarek has already designed containers with `snpEff` and `VEP` files for `GRCh37`, `GRCh38` and `GRCm38`.
24+
Sarek has already designed containers with `snpEff` and `VEP` files for Human (`GRCh37`, `GRCh38`) Mouse (`GRCm38`), Dog (`CanFam3.1`) and Roundworm (`WBcel235`).
2525
Default settings will run using these containers.
2626

2727
The main Sarek container has also `snpEff` and `VEP` installed, but without the cache files that can be downloaded separately.
2828

29+
## Download cache
30+
31+
A Nextflow helper script has been designed to help downloading `snpEff` and `VEP` cache.
32+
Such files are meant to be shared between multiple users, so this script is mainly meant for people administrating servers, clusters and advanced users.
33+
34+
```bash
35+
nextflow run download_cache.nf --snpeff_cache </Path/To/snpEffCache> --snpeff_db <snpEff DB version> --genome <GENOME>
36+
nextflow run download_cache.nf --vep_cache </Path/To/VEPcache> --species <species> --vep_cache_version <VEP cache version> --genome <GENOME>
37+
```
38+
2939
## Using downloaded cache
3040

3141
Both `snpEff` and `VEP` enable usage of cache.
@@ -36,8 +46,8 @@ The cache will only be used when `--annotation_cache` and cache directories are
3646
Example:
3747

3848
```bash
39-
nextflow run nf-core/sarek --tools snpEff --step annotate --sample file.vcf.gz --snpEff_cache /Path/To/snpEffCache --annotation_cache
40-
nextflow run nf-core/sarek --tools VEP --step annotate --sample file.vcf.gz --vep_cache /Path/To/vepCache --annotation_cache
49+
nextflow run nf-core/sarek --tools snpEff --step annotate --sample file.vcf.gz --snpEff_cache </Path/To/snpEffCache> --annotation_cache
50+
nextflow run nf-core/sarek --tools VEP --step annotate --sample file.vcf.gz --vep_cache </Path/To/vepCache> --annotation_cache
4151
```
4252

4353
## Using VEP CADD plugin
@@ -52,10 +62,10 @@ Example:
5262

5363
```bash
5464
nextflow run nf-core/sarek --step annotate --tools VEP --sample file.vcf.gz --cadd_cache \
55-
--cadd_InDels /PathToCADD/InDels.tsv.gz \
56-
--cadd_InDels_tbi /PathToCADD/InDels.tsv.gz.tbi \
57-
--cadd_WG_SNVs /PathToCADD/whole_genome_SNVs.tsv.gz \
58-
--cadd_WG_SNVs_tbi /PathToCADD/whole_genome_SNVs.tsv.gz.tbi
65+
--cadd_InDels </PathToCADD/InDels.tsv.gz> \
66+
--cadd_InDels_tbi </PathToCADD/InDels.tsv.gz.tbi> \
67+
--cadd_WG_SNVs </PathToCADD/whole_genome_SNVs.tsv.gz> \
68+
--cadd_WG_SNVs_tbi </PathToCADD/whole_genome_SNVs.tsv.gz.tbi>
5969
```
6070

6171
### Downloading CADD files
@@ -64,7 +74,7 @@ An helper script has been designed to help downloading CADD files.
6474
Such files are meant to be share between multiple users, so this script is mainly meant for people administrating servers, clusters and advanced users.
6575

6676
```bash
67-
nextflow run downloadcache.nf --cadd_cache /Path/To/CADDcache --cadd_version <CADD version> --genome <GENOME>
77+
nextflow run download_cache.nf --cadd_cache </Path/To/CADDcache> --cadd_version <CADD version> --genome <GENOME>
6878
```
6979

7080
## Using VEP GeneSplicer plugin

download_cache.nf

Lines changed: 28 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -23,29 +23,27 @@ def helpMessage() {
2323
log.info nfcoreHeader()
2424
log.info"""
2525
26-
Usage:
27-
--help
28-
you're reading it
29-
30-
nextflow run download_cache.nf [--snpeff_cache <pathToSNPEFFcache>] [--vep_cache <pathToVEPcache>]
31-
[--cadd_cache <pathToCADDcache> --cadd_version <CADD Version>]
32-
--snpeff_cache <Directoy>
33-
Specify path to snpEff cache
34-
If none, will use snpEff version specified in configuration
35-
Will use snpEff cache version for ${params.genome}: ${params.genomes[params.genome].snpeff_db} in igenomes configuration file:
36-
Change with --genome or in configuration files
37-
--vep_cache <Directoy>
38-
Specify path to VEP cache
39-
If none, will use VEP version specified in configuration
40-
Will from th iGenomes configuration file for ${params.genome}:
41-
VEP cache version: ${params.genomes[params.genome].vep_cache_version}
42-
and species ${params.genomes[params.genome].species}
43-
Change with --genome or in configuration files
44-
--cadd_cache <Directoy>
45-
Specify path to CADD cache
46-
Will use CADD version specified
47-
--cadd_version <version>
48-
Will specify which CADD version to download
26+
Usage:
27+
28+
The typical command for running the pipeline is as follows:
29+
30+
nextflow run nf-core/sarek/download_cache.nf -profile docker --genome <genome> --help
31+
[--snpeff_cache <pathToSNPEFFcache> --snpeff_db_version <snpEff DB version>]
32+
[--vep_cache <pathToVEPcache> --vep_cache_version <VEP cache version> --species <species>]
33+
[--cadd_cache <pathToCADDcache> --cadd_version <CADD Version>]
34+
35+
Options:
36+
--help [bool] You're reading it
37+
--snpeff_cache [file] Path to snpEff cache
38+
--snpeff_db_version [str] snpEff DB version
39+
Default: ${params.genomes[params.genome].snpeff_db}
40+
--vep_cache [file] Path to VEP cache
41+
--vep_cache_version [int] VEP cache version
42+
Default: ${params.genomes[params.genome].vep_cache_version}
43+
--species [str] Species
44+
Default: ${params.genomes[params.genome].species}
45+
--cadd_cache [file] Path to CADD cache
46+
--cadd_version [str] CADD version to download
4947
""".stripIndent()
5048
}
5149

@@ -216,20 +214,18 @@ process DownloadCADD {
216214

217215
cadd_files = cadd_files.dump(tag: 'cadd_files')
218216

219-
def nfcoreHeader(){
217+
def nfcoreHeader() {
220218
// Log colors ANSI codes
221-
c_reset = params.monochrome_logs ? '' : "\033[0m";
222-
c_dim = params.monochrome_logs ? '' : "\033[2m";
223219
c_black = params.monochrome_logs ? '' : "\033[0;30m";
224-
c_red = params.monochrome_logs ? '' : "\033[0;31m";
225-
c_green = params.monochrome_logs ? '' : "\033[0;32m";
226-
c_yellow = params.monochrome_logs ? '' : "\033[0;33m";
227220
c_blue = params.monochrome_logs ? '' : "\033[0;34m";
221+
c_dim = params.monochrome_logs ? '' : "\033[2m";
222+
c_green = params.monochrome_logs ? '' : "\033[0;32m";
228223
c_purple = params.monochrome_logs ? '' : "\033[0;35m";
229-
c_cyan = params.monochrome_logs ? '' : "\033[0;36m";
224+
c_reset = params.monochrome_logs ? '' : "\033[0m";
230225
c_white = params.monochrome_logs ? '' : "\033[0;37m";
226+
c_yellow = params.monochrome_logs ? '' : "\033[0;33m";
231227

232-
return """ ${c_dim}----------------------------------------------------${c_reset}
228+
return """ -${c_dim}--------------------------------------------------${c_reset}-
233229
${c_green},--.${c_black}/${c_green},-.${c_reset}
234230
${c_blue} ___ __ __ __ ___ ${c_green}/,-._.--~\'${c_reset}
235231
${c_blue} |\\ | |__ __ / ` / \\ |__) |__ ${c_yellow}} {${c_reset}
@@ -243,7 +239,7 @@ def nfcoreHeader(){
243239
${c_white}`${c_green}|${c_reset}____${c_green}\\${c_reset}´${c_reset}
244240
245241
${c_purple} nf-core/sarek v${workflow.manifest.version}${c_reset}
246-
${c_dim}----------------------------------------------------${c_reset}
242+
-${c_dim}--------------------------------------------------${c_reset}-
247243
""".stripIndent()
248244
}
249245

0 commit comments

Comments
 (0)