Skip to content

Commit 70954e0

Browse files
committed
Fix bugs
1 parent 0e6c6d0 commit 70954e0

File tree

7 files changed

+121
-140
lines changed

7 files changed

+121
-140
lines changed

README.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,28 @@ This pipeline makes use of the following tools:
2121

2222
### Installation
2323

24-
Installation of conda environment from file:
24+
Installation of conda environments from file:
2525

2626
```bash
27-
conda env create -f /env/env_nextflow.yml
27+
conda env create -f /env/RNASEQ.yml
28+
conda env create -f /env/MULTIQC.yml
2829
```
2930

3031
or, when using mamba:
3132

3233
```bash
33-
mamba env create -f /env/env_nextflow.yml
34+
mamba env create -f /env/RNASEQ.yml
35+
mamba env create -f /env/MULTIQC.yml
3436
```
3537

3638
Also, check if Nextflow is available, otherwise install manually.
39+
Please check that all required packages have been successfully installed in the environments:
40+
- subread
41+
- hisat2
42+
- fastQC
43+
- cutadapt
44+
- samtools
45+
- multiQC (only in MULTIQC env)
3746

3847

3948
### Input & usage
@@ -43,7 +52,6 @@ Input can be specified from command line or in /nf/conf/params.config.
4352
- hostGenome, phageGenome: provide absolute paths to full genomic fasta files.
4453
- hostGFF, phageGFF: provide absolute paths to full genomic feature annotation files.
4554
- pairedEnd: call, if dealing with paired-end RNA-seq data
46-
- dRNAseq: this flag will direct to dRNA-seq processing, but is not yet implemented
4755
- reads: absolute path to sreads in fastq format, can also be compressed as *.fastq.gz
4856
- outputDir: absolute path to output directory
4957
- adapter1, adapter2: by deafult Illumina TruSeq adapter sequences, which can be adjusted, if others used

env/MULTIQC.yml

Lines changed: 82 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -4,88 +4,90 @@ channels:
44
dependencies:
55
- _libgcc_mutex=0.1=main
66
- _openmp_mutex=5.1=1_gnu
7-
- backports=1.1=pyhd3eb1b0_1
8-
- backports.functools_lru_cache=1.6.4=pyhd3eb1b0_0
9-
- backports_abc=0.5=py_1
10-
- blas=1.0=mkl
117
- bzip2=1.0.8=h5eee18b_6
12-
- c-ares=1.19.1=h5eee18b_0
13-
- ca-certificates=2024.12.31=h06a4308_0
14-
- certifi=2020.6.20=pyhd3eb1b0_3
15-
- click=7.1.2=pyhd3eb1b0_0
16-
- curl=8.12.0=h251f7ec_0
17-
- cycler=0.10.0=py27_0
18-
- dbus=1.13.18=hb2f20db_0
19-
- expat=2.6.4=h6a678d5_0
20-
- fontconfig=2.14.1=h52c9d5c_1
21-
- freetype=2.12.1=h4a9f257_0
22-
- functools32=3.2.3.2=py27_1
23-
- futures=3.3.0=py27_0
24-
- gettext=0.21.0=hf68c758_0
25-
- git=2.45.2=pl5340h9abc3c3_1
26-
- glib=2.78.4=h6a678d5_0
27-
- glib-tools=2.78.4=h6a678d5_0
28-
- gst-plugins-base=1.14.1=h6a678d5_1
29-
- gstreamer=1.14.1=h5eee18b_1
30-
- icu=58.2=he6710b0_3
31-
- intel-openmp=2023.1.0=hdb19cb5_46306
32-
- jinja2=2.11.3=pyhd3eb1b0_0
33-
- jpeg=9e=h5eee18b_3
34-
- kiwisolver=1.1.0=py27he6710b0_0
35-
- krb5=1.20.1=h143b758_1
36-
- libcurl=8.12.0=hc9e6f67_0
37-
- libedit=3.1.20230828=h5eee18b_0
38-
- libev=4.33=h7f8727e_1
8+
- ca-certificates=2025.11.4=h06a4308_0
9+
- expat=2.7.3=h3385a95_0
10+
- ld_impl_linux-64=2.44=h153f514_2
3911
- libffi=3.4.4=h6a678d5_1
40-
- libgcc-ng=11.2.0=h1234567_1
41-
- libgfortran-ng=7.5.0=ha8ba4b0_17
42-
- libgfortran4=7.5.0=ha8ba4b0_17
43-
- libglib=2.78.4=hdc74915_0
44-
- libgomp=11.2.0=h1234567_1
45-
- libiconv=1.16=h5eee18b_3
46-
- libnghttp2=1.57.0=h2d74bed_0
47-
- libpng=1.6.39=h5eee18b_0
48-
- libssh2=1.11.1=h251f7ec_0
49-
- libstdcxx-ng=11.2.0=h1234567_1
12+
- libgcc=15.2.0=h69a1729_7
13+
- libgcc-ng=15.2.0=h166f726_7
14+
- libgomp=15.2.0=h4751f2c_7
15+
- libmpdec=4.0.0=h5eee18b_0
16+
- libstdcxx=15.2.0=h39759b7_7
17+
- libstdcxx-ng=15.2.0=hc03a8fd_7
5018
- libuuid=1.41.5=h5eee18b_0
51-
- libxcb=1.15=h7f8727e_0
52-
- libxml2=2.9.14=h74e7548_0
53-
- lz4-c=1.9.4=h6a678d5_1
54-
- markupsafe=1.1.1=py27h7b6447c_0
55-
- matplotlib=2.2.2=py27hb69df0a_2
56-
- mkl=2020.2=256
57-
- mkl-service=2.3.0=py27he904b0f_0
58-
- mkl_fft=1.0.15=py27ha843d7b_0
59-
- mkl_random=1.1.0=py27hd6b4f25_0
60-
- ncurses=6.4=h6a678d5_0
61-
- numpy=1.16.6=py27hbc911f0_0
62-
- numpy-base=1.16.6=py27hde5b4d6_0
63-
- openssl=3.0.15=h5eee18b_0
64-
- pcre2=10.42=hebb0a14_1
65-
- perl=5.38.2=0_h5eee18b_perl5
66-
- pip=19.3.1=py27_0
67-
- pyparsing=2.4.7=pyhd3eb1b0_0
68-
- pyqt=5.6.0=py27h22d08a2_6
69-
- python=2.7.18=h42bf7aa_3
70-
- python-dateutil=2.8.2=pyhd3eb1b0_0
71-
- pytz=2021.3=pyhd3eb1b0_0
72-
- pyyaml=5.2=py27h7b6447c_0
73-
- qt=5.6.3=h8bf5577_3
74-
- readline=8.2=h5eee18b_0
75-
- setuptools=44.0.0=py27_0
76-
- simplejson=3.17.0=py27h7b6447c_0
77-
- singledispatch=3.7.0=pyhd3eb1b0_1001
78-
- sip=4.18.1=py27hf484d3e_2
79-
- six=1.16.0=pyhd3eb1b0_1
80-
- sqlite=3.45.3=h5eee18b_0
81-
- subprocess32=3.5.4=py27h7b6447c_0
82-
- tk=8.6.14=h39e8969_0
83-
- tornado=5.1.1=py27h7b6447c_0
84-
- wheel=0.37.1=pyhd3eb1b0_0
19+
- libxcb=1.17.0=h9b100fa_0
20+
- libzlib=1.3.1=hb25bd0a_0
21+
- ncurses=6.5=h7934f7d_0
22+
- openssl=3.0.18=hd6dcaed_0
23+
- pip=25.2=pyhc872135_1
24+
- pthread-stubs=0.3=h0ce48e5_1
25+
- python=3.13.9=h7e8bc2b_100_cp313
26+
- python_abi=3.13=1_cp313
27+
- readline=8.3=hc2a1206_0
28+
- setuptools=80.9.0=py313h06a4308_0
29+
- sqlite=3.51.0=h2a70700_0
30+
- tk=8.6.15=h54e0aa7_0
31+
- tzdata=2025b=h04d1e81_0
32+
- wheel=0.45.1=py313h06a4308_0
33+
- xorg-libx11=1.8.12=h9b100fa_1
34+
- xorg-libxau=1.0.12=h9b100fa_0
35+
- xorg-libxdmcp=1.1.5=h9b100fa_0
36+
- xorg-xorgproto=2024.1=h5eee18b_1
8537
- xz=5.6.4=h5eee18b_1
86-
- yaml=0.1.7=had09818_2
87-
- zlib=1.2.13=h5eee18b_1
88-
- zstd=1.5.6=hc292b87_0
38+
- zlib=1.3.1=hb25bd0a_0
8939
- pip:
90-
- multiqc==1.0.dev0
91-
prefix: /home/schauerm/miniconda3/envs/MULTIQC
40+
- annotated-types==0.7.0
41+
- attrs==25.4.0
42+
- boto3==1.40.69
43+
- botocore==1.40.69
44+
- certifi==2025.10.5
45+
- charset-normalizer==3.4.4
46+
- click==8.3.0
47+
- coloredlogs==15.0.1
48+
- colormath2==3.0.3
49+
- humanfriendly==10.0
50+
- humanize==4.14.0
51+
- idna==3.11
52+
- importlib-metadata==8.7.0
53+
- jinja2==3.1.6
54+
- jmespath==1.0.1
55+
- jsonschema==4.25.1
56+
- jsonschema-specifications==2025.9.1
57+
- kaleido==0.2.1
58+
- markdown==3.10
59+
- markdown-it-py==4.0.0
60+
- markupsafe==3.0.3
61+
- mdurl==0.1.2
62+
- multiqc==1.32
63+
- narwhals==2.11.0
64+
- natsort==8.4.0
65+
- networkx==3.5
66+
- numpy==2.3.4
67+
- packaging==25.0
68+
- pillow==12.0.0
69+
- plotly==6.4.0
70+
- polars-lts-cpu==1.33.1
71+
- pyarrow==22.0.0
72+
- pydantic==2.12.4
73+
- pydantic-core==2.41.5
74+
- pygments==2.19.2
75+
- python-dateutil==2.9.0.post0
76+
- python-dotenv==1.2.1
77+
- pyyaml==6.0.3
78+
- referencing==0.37.0
79+
- regex==2025.11.3
80+
- requests==2.32.5
81+
- rich==14.2.0
82+
- rich-click==1.9.4
83+
- rpds-py==0.28.0
84+
- s3transfer==0.14.0
85+
- six==1.17.0
86+
- spectra==0.1.0
87+
- tiktoken==0.12.0
88+
- tqdm==4.67.1
89+
- typeguard==4.4.4
90+
- typing-extensions==4.15.0
91+
- typing-inspection==0.4.2
92+
- urllib3==2.5.0
93+
- zipp==3.23.0
Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ dependencies:
1212
- bioconductor-rsubread=2.0.0=r36h516909a_0
1313
- bwidget=1.9.16=h9eba36c_0
1414
- bzip2=1.0.8=h5eee18b_6
15-
- ca-certificates=2024.7.2=h06a4308_0
15+
- ca-certificates=2025.2.25=h06a4308_0
1616
- cairo=1.16.0=hb05425b_5
17+
- coreutils=9.5=h5eee18b_0
1718
- curl=7.69.1=hbc83047_0
1819
- dbus=1.13.18=hb2f20db_0
1920
- expat=2.6.2=h6a678d5_0
@@ -27,7 +28,8 @@ dependencies:
2728
- gdbm=1.18=hd4cb3f1_4
2829
- gfortran_impl_linux-64=7.5.0=ha8c8e06_17
2930
- gfortran_linux-64=7.5.0=h96bb648_30
30-
- glib=2.69.1=h4ff587b_1
31+
- glib=2.78.4=h6a678d5_0
32+
- glib-tools=2.78.4=h6a678d5_0
3133
- graphite2=1.3.14=h295c915_1
3234
- gsl=2.4=h14c3975_4
3335
- gxx_impl_linux-64=7.5.0=h0a5bf11_17
@@ -44,12 +46,14 @@ dependencies:
4446
- libcurl=7.69.1=h20c2e04_0
4547
- libdeflate=1.17=h5eee18b_1
4648
- libedit=3.1.20210714=h7f8727e_0
47-
- libffi=3.3=he6710b0_2
49+
- libffi=3.4.4=h6a678d5_1
4850
- libgcc-devel_linux-64=7.5.0=hbbeae57_17
4951
- libgcc-ng=11.2.0=h1234567_1
5052
- libgfortran-ng=7.5.0=ha8ba4b0_17
5153
- libgfortran4=7.5.0=ha8ba4b0_17
54+
- libglib=2.78.4=hdc74915_0
5255
- libgomp=11.2.0=h1234567_1
56+
- libiconv=1.16=h5eee18b_3
5357
- libpng=1.6.39=h5eee18b_0
5458
- libssh2=1.10.0=h37d81fd_2
5559
- libstdcxx-devel_linux-64=7.5.0=hf0c5c8d_17
@@ -61,20 +65,23 @@ dependencies:
6165
- libxml2=2.9.14=h74e7548_0
6266
- lz4-c=1.9.4=h6a678d5_1
6367
- make=4.2.1=h1bed415_1
64-
- ncurses=6.2=he6710b0_1
65-
- openjdk=11.0.13=h87a67e3_0
68+
- ncurses=6.4=h6a678d5_0
69+
- nextflow=24.10.5=h2a3209d_1
70+
- openjdk=21.0.6=h38aa4c6_0
6671
- openssl=1.1.1w=h7f8727e_0
6772
- pango=1.50.7=h05da053_0
6873
- pcre=8.45=h295c915_0
74+
- pcre2=10.42=hebb0a14_1
6975
- perl=5.34.0=h5eee18b_2
76+
- picard=3.4.0=hdfd78af_0
7077
- pip=24.2=py310h06a4308_0
7178
- pixman=0.40.0=h7f8727e_1
72-
- python=3.10.0=h12debd9_1
79+
- python=3.10.11=h7a1cb2a_2
7380
- r-base=3.6.1=haffb61f_2
7481
- readline=8.1=h27cfd23_0
75-
- samtools=1.10=h2e538c0_3
82+
- samtools=1.6=h244ad75_5
7683
- setuptools=72.1.0=py310h06a4308_0
77-
- sqlite=3.40.1=h5082296_0
84+
- sqlite=3.45.3=h5eee18b_0
7885
- subread=2.0.1=h5bf99c6_1
7986
- sysroot_linux-64=2.17=h57e8cba_10
8087
- tk=8.6.14=h39e8969_0
@@ -84,4 +91,9 @@ dependencies:
8491
- xz=5.2.10=h5eee18b_1
8592
- zlib=1.2.13=h5eee18b_1
8693
- zstd=1.5.5=hc292b87_0
87-
prefix: /home/schauerm/miniconda3/envs/RNASEQ
94+
- pip:
95+
- cutadapt==4.9
96+
- dnaio==1.2.2
97+
- isal==1.7.1
98+
- xopen==2.0.2
99+
- zlib-ng==0.5.1

pipeline/conf/params.config

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ params {
1111
phageGFF = "/input/reference/NC_000866-4.gff3"
1212

1313
pairedEnd = false //if calling --pairedEnd, read pairs will be collected
14-
dRNAseq = false //if calling --dRNAseq, dRNA-seq-specific processing will be applied
1514

1615
reads = "/input/reads/SRR21013140.fastq.gz"
1716
outputDir = "/output"

pipeline/main.nf

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
include { BUILDHISAT2BASE } from './modules/buildHisatBase'
55
include { PROCESSRNASEQ } from './subworkflows/perReadProcessing'
66
include { FEATURECOUNTS } from './modules/readCounting'
7-
include { PROCESSDRNASEQ } from './subworkflows/dRNAseqProcessing'
87
include { CLEANUP } from './modules/cleanDir'
98
include { MULTIQC } from './modules/multiQC'
109

@@ -28,7 +27,6 @@ def helpMessage() {
2827
--phageGFF Phage genome annotation path in gff3 format.
2928
3029
--pairedEnd Default is false. Set, if paired-end reads are supplied.
31-
--dRNAseq Default is false. Would activate dRNA-seq specific processing. Currently not established!
3230
3331
--adapter1 Default is sequence of TruSeq adapter.
3432
--adapter2 Default is sequence of TruSeq adapter.
@@ -49,13 +47,10 @@ workflow {
4947

5048
BUILDHISAT2BASE(params.hostGenome, params.phageGenome, params.hostGFF, params.phageGFF)
5149

52-
if (params.dRNAseq) { //dRNA-seq specific processing
53-
PROCESSDRNASEQ(params.reads, BUILDHISAT2BASE.out.alignmentBase)
54-
}
55-
else { //RNA-seq processing
56-
PROCESSRNASEQ(params.reads, BUILDHISAT2BASE.out.alignmentBase)
57-
FEATURECOUNTS(PROCESSRNASEQ.out.sortedBamFile.collect(), BUILDHISAT2BASE.out.dualGFF)
58-
MULTIQC(FEATURECOUNTS.out.countSummary, PROCESSRNASEQ.out.cutadaptReport.collect().ifEmpty([]), PROCESSRNASEQ.out.fastqc_pre.collect(), PROCESSRNASEQ.out.fastqc_post.collect())
59-
}
50+
PROCESSRNASEQ(params.reads, BUILDHISAT2BASE.out.alignmentBase)
51+
52+
FEATURECOUNTS(PROCESSRNASEQ.out.sortedBamFile.collect(), BUILDHISAT2BASE.out.dualGFF)
53+
54+
MULTIQC(FEATURECOUNTS.out.countSummary, PROCESSRNASEQ.out.cutadaptReport.collect().ifEmpty([]), PROCESSRNASEQ.out.fastqc_pre.collect(), PROCESSRNASEQ.out.fastqc_post.collect())
6055

6156
}

pipeline/modules/multiQC/main.nf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ process MULTIQC {
1616

1717
script:
1818
"""
19-
multiqc . -n multiQC_report.html --no-data-dir -m custom_content -m preseq -m rseqc -m featureCounts -m star -m cutadapt -m fastqc -m qualimap -m salmon
19+
multiqc . -n multiQC_report.html --no-data-dir -m custom_content -m preseq -m rseqc -m featurecounts -m star -m cutadapt -m fastqc -m qualimap -m salmon
2020
"""
2121
}

pipeline/subworkflows/dRNAseqProcessing/main.nf

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

0 commit comments

Comments
 (0)