Skip to content

Commit d320907

Browse files
authored
Merge pull request #61 from nf-core/dev
rnafusion v1.0.1
2 parents 12e5cb2 + 44a0c64 commit d320907

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+1125
-3278
lines changed

.travis.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ before_install:
1010
# PRs made to 'master' branch should always orginate from another repo or the 'dev' branch
1111
- '[ $TRAVIS_PULL_REQUEST = "false" ] || [ $TRAVIS_BRANCH != "master" ] || ([ $TRAVIS_PULL_REQUEST_SLUG = $TRAVIS_REPO_SLUG ] && [ $TRAVIS_PULL_REQUEST_BRANCH = "dev" ])'
1212
- docker pull nfcore/rnafusion:dev
13-
- docker tag nfcore/rnafusion:dev nfcore/rnafusion:1.0
13+
- docker tag nfcore/rnafusion:dev nfcore/rnafusion:1.0.1
1414

1515
env:
1616
- NXF_VER='0.32.0' # Specify a minimum NF version that should be tested and work
@@ -25,23 +25,19 @@ install:
2525
- pip install nf-core
2626
# Install markdownlint-cli
2727
- sudo apt-get install npm && npm install -g markdownlint-cli
28-
# Install pylint
29-
- pip install pylint
3028
# Reset
3129
- mkdir ${TRAVIS_BUILD_DIR}/tests && cd ${TRAVIS_BUILD_DIR}
3230

3331
script:
3432
# Create and download test data
3533
- |
3634
touch tests/genome.fa tests/genes.gtf
37-
mkdir tests/star_index
35+
mkdir tests/star_index tests/databases
3836
wget http://github.com/nf-core/test-datasets/raw/rnafusion/testdata/human/reads_1.fq.gz -O tests/reads_1.fq.gz
3937
wget http://github.com/nf-core/test-datasets/raw/rnafusion/testdata/human/reads_2.fq.gz -O tests/reads_2.fq.gz
4038
# Lint the pipeline code
4139
- nf-core lint ${TRAVIS_BUILD_DIR}
4240
# Lint markdown
4341
- markdownlint ${TRAVIS_BUILD_DIR} -c ${TRAVIS_BUILD_DIR}/.github/markdownlint.yml
44-
# Lint python code
45-
- pylint --rcfile=${TRAVIS_BUILD_DIR}/.github/pylintrc ${TRAVIS_BUILD_DIR}/bin/*/*.py --ignore=scrape_software_versions.py
4642
# Running the pipeline
4743
- nextflow run ${TRAVIS_BUILD_DIR} -profile test,docker

CHANGELOG.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,31 @@
11
# nfcore/rnafusion
22

3+
## nfcore/rnafusion version 1.0.1 - 2018/04/06
4+
5+
### Added
6+
7+
* Added support for extra parameters for tools STAR-Fusion, FusionCatcher and fusion-report
8+
* Added example configuration for `singularity` and `docker`
9+
* Added [fusion-report](https://github.com/matq007/fusion-report) into the stack [#62](https://github.com/nf-core/rnafusion/issues/62), [#55](https://github.com/nf-core/rnafusion/issues/55), [#53](https://github.com/nf-core/rnafusion/issues/53), [#51](https://github.com/nf-core/rnafusion/issues/51)
10+
* Added nextflow helper script `download-singularity-img.nf`
11+
* Added nextflow helper script `download-references.nf`
12+
* Added `Jenkinsfile` for in-house testing
13+
14+
### Changed
15+
16+
* Updated installation of `FusionCatcher` (available now on bioconda)
17+
18+
### Fixed
19+
20+
* Fixed empty symlinks (`input.X`) in fusion-report [#68](https://github.com/nf-core/rnafusion/issues/68)
21+
* Fixed FASTA issues [#60](https://github.com/nf-core/rnafusion/issues/60)
22+
* Fixed centralized nf-core/config [#64](https://github.com/nf-core/rnafusion/issues/64)
23+
* Fixed `scrape_software_versions.py` to parse tools versions correctly [#65](https://github.com/nf-core/rnafusion/issues/65)
24+
25+
### Removed
26+
27+
* Removed `Singularity`
28+
329
## nfcore/rnafusion version 1.0 - 2018/02/14
430

531
Version 1.0 marks the first production release of this pipeline under the nf-core flag. The pipeline includes

Dockerfile

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,10 @@
1-
# This Dockerfile was generated by tools/build.sh
21
FROM nfcore/base
32

43
54
description="Docker image containing all requirements for nfcore/rnafusion pipeline"
65

76
COPY environment.yml /
87
RUN conda env create -f /environment.yml && conda clean -a
9-
ENV PATH /opt/conda/envs/nf-core-rnafusion-1.0/bin:$PATH
10-
11-
WORKDIR /script-db
12-
# Download FusionGDB
13-
RUN apt-get update && apt-get install -y wget \
14-
&& wget --no-check-certificate https://ccsm.uth.edu/FusionGDB/tables/TCGA_ChiTaRS_combined_fusion_information_on_hg19.txt -O TCGA_ChiTaRS_combined_fusion_information_on_hg19.txt \
15-
&& wget --no-check-certificate https://ccsm.uth.edu/FusionGDB/tables/TCGA_ChiTaRS_combined_fusion_ORF_analyzed_gencode_h19v19.txt -O TCGA_ChiTaRS_combined_fusion_ORF_analyzed_gencode_h19v19.txt \
16-
&& wget --no-check-certificate https://ccsm.uth.edu/FusionGDB/tables/uniprot_gsymbol.txt -O uniprot_gsymbol.txt \
17-
&& wget --no-check-certificate https://ccsm.uth.edu/FusionGDB/tables/fusion_uniprot_related_drugs.txt -O fusion_uniprot_related_drugs.txt \
18-
&& wget --no-check-certificate https://ccsm.uth.edu/FusionGDB/tables/fusion_ppi.txt -O fusion_ppi.txt \
19-
&& wget --no-check-certificate https://ccsm.uth.edu/FusionGDB/tables/fgene_disease_associations.txt -O fgene_disease_associations.txt \
20-
&& ln -s /opt/conda/envs/nf-core-rnafusion-1.0/bin/python3 /bin/python3
21-
22-
COPY ./FusionGDB.sql .
23-
RUN sqlite3 fusions.db < FusionGDB.sql
8+
ENV PATH /opt/conda/envs/nf-core-rnafusion-1.0.1/bin:$PATH
249

2510
WORKDIR /

FusionGDB.sql

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

Jenkinsfile

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
pipeline {
2+
agent any
3+
4+
environment {
5+
NXF_VER = '0.32.0'
6+
JENKINS_API = credentials('api')
7+
}
8+
9+
stages {
10+
stage('Setup environment') {
11+
steps {
12+
sh "pip install nf-core"
13+
sh "docker pull nfcore/rnafusion:dev"
14+
sh "docker tag nfcore/rnafusion:dev nfcore/rnafusion:1.0.1"
15+
}
16+
}
17+
stage('Lint markdown') {
18+
steps {
19+
sh "markdownlint $WORKSPACE -c $WORKSPACE/.github/markdownlint.yml"
20+
}
21+
}
22+
stage('Build') {
23+
steps {
24+
// sh "nextflow run kraken,jenkins nf-core/rnafusion"
25+
sh "nextflow run nf-core/rnafusion -r dev --help"
26+
sh "nextflow run nf-core/rnafusion/download-references.nf -r dev --help"
27+
sh "nextflow run nf-core/rnafusion/download-singularity-img.nf -r dev --help"
28+
}
29+
}
30+
}
31+
32+
post {
33+
failure {
34+
script {
35+
def response = sh(script: "curl -u ${JENKINS_API_USR}:${JENKINS_API_PSW} ${BUILD_URL}/consoleText", returnStdout: true).trim().replace('\n', '<br>')
36+
def comment = pullRequest.comment("##:rotating_light: Buil log output:<br><summary><details>${response}</details></summary>")
37+
}
38+
}
39+
}
40+
}

README.md

Lines changed: 30 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22

33
[![Build Status](https://travis-ci.org/nf-core/rnafusion.svg?branch=master)](https://travis-ci.org/nf-core/rnafusion)
44
[![Nextflow](https://img.shields.io/badge/nextflow-%E2%89%A50.32.0-brightgreen.svg)](https://www.nextflow.io/)
5+
[![DOI](https://zenodo.org/badge/151721952.svg)](https://zenodo.org/badge/latestdoi/151721952)
6+
[![Slack Status](https://nf-core-invite.herokuapp.com/badge.svg)](https://nf-core-invite.herokuapp.com)
57
[![MIT License](https://img.shields.io/github/license/nf-core/rnafusion.svg)](https://github.com/nf-core/rnafusion/blob/master/LICENSE)
68

79
[![install with bioconda](https://img.shields.io/badge/install%20with-bioconda-brightgreen.svg)](http://bioconda.github.io/)
810
[![Docker](https://img.shields.io/docker/automated/nfcore/rnafusion.svg)](https://hub.docker.com/r/nfcore/rnafusion)
9-
![Singularity Container available](
10-
https://img.shields.io/badge/singularity-available-7E4C74.svg)
1111

1212
**nfcore/rnafusion** uses RNA-seq data to detect fusions genes.
1313

14-
The workflow processes RNA-sequencing data from FastQ files. It runs quality control on the raw data ([FastQC](https://www.bioinformatics.babraham.ac.uk/projects/fastqc/)), detects fusion genes ([STAR-Fusion](https://github.com/STAR-Fusion/STAR-Fusion), [Fusioncatcher](https://github.com/ndaniel/fusioncatcher), [Ericscript](https://sites.google.com/site/bioericscript/), [Pizzly](https://github.com/pmelsted/pizzly), [Squid](https://github.com/Kingsford-Group/squid)), gathers information ([FusionGDB](https://ccsm.uth.edu/FusionGDB/index.html)), visualizes the fusions ([FusionInspector](https://github.com/FusionInspector/FusionInspector)), performs quality-control on the results ([MultiQC](http://multiqc.info)) and finally generates custom summary report.
14+
The workflow processes RNA-sequencing data from FastQ files. It runs quality control on the raw data ([FastQC](https://www.bioinformatics.babraham.ac.uk/projects/fastqc/)), detects fusion genes ([STAR-Fusion](https://github.com/STAR-Fusion/STAR-Fusion), [Fusioncatcher](https://github.com/ndaniel/fusioncatcher), [Ericscript](https://sites.google.com/site/bioericscript/), [Pizzly](https://github.com/pmelsted/pizzly), [Squid](https://github.com/Kingsford-Group/squid)), gathers information ([FusionGDB](https://ccsm.uth.edu/FusionGDB/index.html), [Mitelman](https://cgap.nci.nih.gov/Chromosomes/Mitelman), [COSMIC](https://cancer.sanger.ac.uk/cosmic/fusion)), visualizes the fusions ([FusionInspector](https://github.com/FusionInspector/FusionInspector)), performs quality-control on the results ([MultiQC](http://multiqc.info)) and finally generates custom summary report witch scored fusions ([fusion-report](https://github.com/matq007/fusion-report)).
1515

16-
![Final summary report](docs/images/example-summary-report.png)
16+
> Live **demo** output **[here](https://matq007.github.io/fusion-report/example/)**.
1717
1818
The pipeline works with both single-end and paired-end data, though not all fusion detection tools work with single-end data (Ericscript, Pizzly, Squid and FusionInspector).
1919

@@ -22,18 +22,12 @@ The pipeline is built using [Nextflow](https://www.nextflow.io), a workflow tool
2222
| Tool | Single-end reads | CPU (recommended) | RAM (recommended) |
2323
| --------------- |:----------------:|:-----------------:|:-----------------:|
2424
| [Star-Fusion](https://github.com/STAR-Fusion/STAR-Fusion/wiki) | Yes | >=16 cores | ~30GB |
25-
| [Fusioncatcher](https://github.com/ndaniel/fusioncatcher/blob/master/doc/manual.md) | Yes | >=16 cores | ~60GB |
26-
| [Ericscript](https://sites.google.com/site/bioericscript/getting-started) | **No** | >=16 cores | ~30GB |
25+
| [FusionCatcher](https://github.com/ndaniel/fusioncatcher/blob/master/doc/manual.md) | Yes | >=16 cores | ~64GB |
26+
| [EricScript](https://sites.google.com/site/bioericscript/getting-started) | **No** | >=16 cores | ~30GB |
2727
| [Pizzly](https://github.com/pmelsted/pizzly) | **No** | >=16 cores | ~30GB |
2828
| [Squid](https://github.com/Kingsford-Group/squid) | **No** | >=16 cores | ~30GB |
2929
| [FusionInspector](https://github.com/FusionInspector/FusionInspector/wiki) | **No** | >=16 cores | ~30GB |
3030

31-
> **TL;DR:** Make sure to download all required references for each tool. More details can be found in section [tools](docs/tools.md).
32-
33-
```bash
34-
nextflow run nf-core/rnafusion --reads '*_R{1,2}.fastq.gz' --genome GRCh38 -profile docker --star_fusion --fusioncatcher --ericscript --pizzly --squid --fusion_inspector
35-
```
36-
3731
For available parameters or help run:
3832

3933
```bash
@@ -54,3 +48,27 @@ The nf-core/rnafusion pipeline comes with documentation about the pipeline, foun
5448
5. [Troubleshooting](docs/troubleshooting.md)
5549

5650
Use predefined configuration for desired Institution cluster provided at [nfcore/config](https://github.com/nf-core/configs) repository.
51+
52+
## Credits
53+
54+
This pipeline was written by Martin Proks ([@matq007](https://github.com/matq007)) in collaboration with Karolinska Institutet, SciLifeLab and University of Southern Denmark as a master thesis. This is a follow-up development started by Rickard Hammarén ([@Hammarn](https://github.com/Hammarn)). Special thanks goes to all supervisors: Teresita Díaz de Ståhl, PhD., Assoc. Prof., Monica Nistér, MD, PhD, Maxime U Garcia PhD([@MaxUlysse](https://github.com/MaxUlysse)), Szilveszter Juhos ([@szilvajuhos](https://github.com/szilvajuhos)), Phil Ewels ([@ewels](https://github.com/ewels)) PhD and Lars Grøntved, PhD., Assoc. Prof.
55+
56+
## Tool References
57+
58+
* **STAR-Fusion: Fast and Accurate Fusion Transcript Detection from RNA-Seq**
59+
Brian Haas, Alexander Dobin, Nicolas Stransky, Bo Li, Xiao Yang, Timothy Tickle, Asma Bankapur, Carrie Ganote, Thomas Doak, Natalie Pochet, Jing Sun, Catherine Wu, Thomas Gingeras, Aviv Regev
60+
bioRxiv 120295; doi: [https://doi.org/10.1101/120295](https://doi.org/10.1101/120295)
61+
* D. Nicorici, M. Satalan, H. Edgren, S. Kangaspeska, A. Murumagi, O. Kallioniemi, S. Virtanen, O. Kilkku, **FusionCatcher – a tool for finding somatic fusion genes in paired-end RNA-sequencing data**, bioRxiv, Nov. 2014,
62+
[DOI:10.1101/011650](http://dx.doi.org/10.1101/011650)
63+
* Benelli M, Pescucci C, Marseglia G, Severgnini M, Torricelli F, Magi A. **Discovering chimeric transcripts in paired-end RNA-seq data by using EricScript**. Bioinformatics. 2012; 28(24): 3232-3239.
64+
* **Fusion detection and quantification by pseudoalignment**
65+
Páll Melsted, Shannon Hateley, Isaac Charles Joseph, Harold Pimentel, Nicolas L Bray, Lior Pachter, bioRxiv 166322; doi: [https://doi.org/10.1101/166322](https://doi.org/10.1101/166322)
66+
* **SQUID: transcriptomic structural variation detection from RNA-seq** Cong Ma, Mingfu Shao and Carl Kingsford, Genome Biology, 2018, doi: [https://doi.org/10.1186/s13059-018-1421-5](https://doi.org/10.1186/s13059-018-1421-5)
67+
* **Fusion-Inspector** download: [https://github.com/FusionInspector](https://github.com/FusionInspector)
68+
* Martin Proks. (2019, March 26). matq007/fusion-report: **fusion-report:1.0** (Version 1.0). Zenodo. http://doi.org/10.5281/zenodo.2609227
69+
* **FastQC** download: [https://www.bioinformatics.babraham.ac.uk/projects/fastqc/](https://www.bioinformatics.babraham.ac.uk/projects/fastqc/)
70+
* **MultiQC** Ewels, P., Magnusson, M., Lundin, S., & Käller, M. (2016). MultiQC: summarize analysis results for multiple tools and samples in a single report. Bioinformatics , 32(19), 3047–3048. [https://doi.org/10.1093/bioinformatics/btw354](https://doi.org/10.1093/bioinformatics/btw354) Download: [https://multiqc.info/](https://multiqc.info/)
71+
72+
| | | |
73+
:-:|:-:|:-:|
74+
![nf-core/rnafusion](docs/images/ngi-logo.png) | ![nf-core/rnafusion](docs/images/ki-logo.png) | ![nf-core/rnafusion](docs/images/sdu-logo.png)

Singularity

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

0 commit comments

Comments
 (0)