Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev -> Master for 3.11 release #966

Merged
merged 153 commits into from
Mar 30, 2023
Merged
Show file tree
Hide file tree
Changes from 59 commits
Commits
Show all changes
153 commits
Select commit Hold shift + click to select a range
910d98d
Add further example parameters to the UMI section of the usage manua…
MatthiasZepper Jan 10, 2023
36e9206
Merge pull request #926 from MatthiasZepper/umi_params
drpatelh Jan 13, 2023
da6233b
Added 3′ digital gene expression assays section
tomsing1 Jan 16, 2023
fb7117c
Fix typo preventing the use of UMI processing with HISAT2
lbeltrame Jan 18, 2023
59cbe73
Apply suggestions from code review
drpatelh Jan 19, 2023
8000e0c
[automated] Fix linting with Prettier
nf-core-bot Jan 19, 2023
a5ebd3e
Merge pull request #928 from tomsing1/master
drpatelh Jan 19, 2023
c58694e
Merge pull request #930 from DIncalciLab/fix-umi-typo
drpatelh Jan 19, 2023
ea237f4
Add tests samplesheet in the main repo
maxulysse Jan 27, 2023
ba19814
add params.test_data_base
maxulysse Jan 27, 2023
f1941ae
this is why you should not edit JSON files
maxulysse Jan 27, 2023
e2e574a
trying to use local files
maxulysse Jan 27, 2023
2d8c44c
use samplesheet in the test_data repo
maxulysse Jan 27, 2023
0b4b19b
fix path
maxulysse Jan 27, 2023
423ba0b
fix path
maxulysse Jan 27, 2023
785ea73
fix path
maxulysse Jan 27, 2023
f9f467c
fix path
maxulysse Jan 27, 2023
bd4f148
uncache data
maxulysse Jan 27, 2023
8770ee6
re-cache data
maxulysse Jan 27, 2023
1c3dcc1
should not have updated the data that is cached...
maxulysse Jan 27, 2023
ee0d80f
Merge pull request #933 from maxulysse/cache_test_data
maxulysse Jan 27, 2023
6b86d7f
Linting with the new version of Black 23.1'
MatthiasZepper Feb 3, 2023
3a833dc
Revert linting for JSON files.
MatthiasZepper Feb 3, 2023
cbf4dbd
deduplication for the union of ext.args and params.extra_star_align_a…
MatthiasZepper Feb 1, 2023
2586006
.unique() modifies the original list and nukes all Nextflow params. u…
MatthiasZepper Feb 1, 2023
8051df9
Changelog update with PR.
MatthiasZepper Feb 1, 2023
869fab4
.split() would be invoked on empty string with parameter is unset.
MatthiasZepper Feb 1, 2023
f52d8e9
Merge pull request #935 from MatthiasZepper/Linting_Black23.1
maxulysse Feb 3, 2023
595ca66
Update CHANGELOG.md
drpatelh Feb 8, 2023
48e683e
Merge pull request #934 from MatthiasZepper/extra_star_align_args_dup…
drpatelh Feb 8, 2023
2a7b009
Fix a bug in salmon_summarizedexperiment.r by ensuring that rbind() a…
MatthiasZepper Feb 8, 2023
13b6051
Changelog updates
MatthiasZepper Feb 8, 2023
83478b7
Update CHANGELOG.md
drpatelh Feb 8, 2023
5ad3f91
Merge pull request #941 from MatthiasZepper/bugfix_salmom_summarizede…
drpatelh Feb 8, 2023
efc01cc
Update README according to https://github.com/nf-core/tools/issues/2186
grst Feb 20, 2023
0ec0feb
[automated] Fix linting with Prettier
nf-core-bot Feb 20, 2023
04a206c
Update README.md
grst Feb 20, 2023
57bf326
Allow setting clipping parameters (only _r1 if unpaired) - Issue 944
jlorent Mar 6, 2023
ae31c32
Merge pull request #952 from jlorent/fix_clipping_param_944
drpatelh Mar 10, 2023
6f998a4
Update README.md
grst Mar 10, 2023
1fae451
Update README.md
grst Mar 10, 2023
b9082d1
add auto as argument and set as default
ryanyord Mar 14, 2023
0d4c5f8
Include 'auto' in fastq_dir_to_samplesheet script
ryanyord Mar 14, 2023
78d4dc9
Fix Python Black
drpatelh Mar 14, 2023
7e187c6
Merge pull request #956 from ryanyord/samplesheet
drpatelh Mar 14, 2023
d2dd1a7
Remove HISAT2 from full-sized AWS tests
drpatelh Mar 14, 2023
e08bb72
Fix Python Black
drpatelh Mar 14, 2023
0dbeea5
Update nf-core/modules and subworkflows
drpatelh Mar 14, 2023
54ef6f2
Update local modules
drpatelh Mar 14, 2023
640ff1f
Merge pull request #957 from drpatelh/fixes
drpatelh Mar 15, 2023
12a8027
Initialise as value channels in prepare_genome.nf
drpatelh Mar 15, 2023
9cda459
Bump pipeline version to 3.11.0
drpatelh Mar 15, 2023
b10efc8
Fix channel issue with CUSTOM_GETCHROMSIZES
drpatelh Mar 15, 2023
05288e1
Update README.md
grst Mar 15, 2023
4656b56
Merge pull request #959 from drpatelh/fixes
drpatelh Mar 15, 2023
86da5f2
Fix #878
drpatelh Mar 16, 2023
a8f53be
Fix #960
drpatelh Mar 16, 2023
07ddd71
Fix #931
drpatelh Mar 16, 2023
192dcb9
Fix ECLint
drpatelh Mar 16, 2023
9851365
Merge pull request #962 from drpatelh/fixes
drpatelh Mar 16, 2023
d79d22f
Fix #961
drpatelh Mar 17, 2023
6c63436
Fix ECLint
drpatelh Mar 17, 2023
eba7275
Merge pull request #963 from drpatelh/fixes
drpatelh Mar 17, 2023
0b23eb0
Remove --tracedir
drpatelh Mar 17, 2023
86c45b8
Merge pull request #964 from drpatelh/fixes
drpatelh Mar 17, 2023
04e7a22
Add credits to CHANGELOG
drpatelh Mar 20, 2023
e745863
Fix prettier
drpatelh Mar 20, 2023
ec36cd8
Re-install nf-core modules with java mem updates
drpatelh Mar 21, 2023
94c56cf
Re-install updated trimgalore subworkflow
drpatelh Mar 21, 2023
71a2ddf
Re-install updated trimgalore subworkflow
drpatelh Mar 21, 2023
b5ca286
Merge pull request #967 from drpatelh/fixes
drpatelh Mar 21, 2023
a0370ad
Tweak comments
drpatelh Mar 20, 2023
d9e038c
Add test for --trimmer fastp
drpatelh Mar 20, 2023
e34697b
Initialise --trimmer fastp parameter
drpatelh Mar 20, 2023
f4e6abd
Add output docs for --trimmer fastp
drpatelh Mar 20, 2023
75b2690
Install nf-core/module for fastp
drpatelh Mar 20, 2023
f51f861
Add check for valid --trimmer option to lib/
drpatelh Mar 20, 2023
1e50af1
Add subworkflow for fastp
drpatelh Mar 20, 2023
2a2a113
First pass implementation to add fastp to main workflow
drpatelh Mar 20, 2023
4ad2949
Update CHANGELOG
drpatelh Mar 21, 2023
9fcc964
Add Fastp reports to MultiQC
drpatelh Mar 21, 2023
431107a
Install fastq_fastqc_umitools_fastp.nf subworkflow from nf-core modules
drpatelh Mar 21, 2023
3ae9fbb
Update usage and output docs
drpatelh Mar 21, 2023
4968f46
update subway map
maxulysse Mar 22, 2023
b648a63
Add --extra_trimgalore_args and --extra_fastp_args parameters
drpatelh Mar 22, 2023
cbfd7ee
Remove --clip* --three_prime_clip_* and --trim_nextseq parameters
drpatelh Mar 22, 2023
6902ff4
Merge pull request #968 from maxulysse/subway_map
drpatelh Mar 22, 2023
044b371
Fix ECLint
drpatelh Mar 22, 2023
afe84e6
Merge pull request #970 from drpatelh/add_fastp
drpatelh Mar 22, 2023
7be70bb
Update CHANGELOG
drpatelh Mar 22, 2023
21a7b6a
Bump Salmon modules from 1.9.0 to 1.10.1
drpatelh Mar 22, 2023
a7e73a0
Merge pull request #971 from drpatelh/fixes
drpatelh Mar 22, 2023
64cf8c8
Add more prominent warnings about using custom config to provide para…
drpatelh Mar 22, 2023
9bde1f7
Change = to ~ everywhere - thanks for opening Pandora's box @jfy133
drpatelh Mar 23, 2023
f579681
Update README.md
grst Mar 23, 2023
8c7a587
Merge pull request #946 from nf-core/grst-update-readme
drpatelh Mar 23, 2023
9a58094
Merge branch 'dev' into fixes
robsyme Mar 23, 2023
4e3a1ea
Merge pull request #972 from drpatelh/fixes
drpatelh Mar 23, 2023
78cbd4c
Final updates to README
drpatelh Mar 23, 2023
d8ae5ce
Make note a warning instead
drpatelh Mar 23, 2023
24a65a4
Fix prettier
drpatelh Mar 23, 2023
735d3e9
Update README.md
drpatelh Mar 23, 2023
50d29b1
Merge pull request #974 from drpatelh/final_fixes
drpatelh Mar 23, 2023
c6cb43d
Update CHANGELOG.md
drpatelh Mar 24, 2023
3361837
Add --umitools_umi_separator option to umitools extract
drpatelh Mar 25, 2023
1b1714d
Merge pull request #977 from drpatelh/fixes
drpatelh Mar 26, 2023
30981b2
Fix #975
drpatelh Mar 27, 2023
9f0c3e8
Replace System.exit(1) calls in pipeline template
drpatelh Mar 27, 2023
7fd78ca
Fix nf-core lint
drpatelh Mar 27, 2023
8e68c07
Merge pull request #978 from drpatelh/fixes
drpatelh Mar 28, 2023
088979f
Add explicit test_full profiles for all cloud providers
drpatelh Mar 28, 2023
b57a1b0
Merge pull request #980 from drpatelh/profiles
drpatelh Mar 28, 2023
0fb0648
First pass at a GitHub Actions workflow for Tower
robsyme Mar 28, 2023
50ad95d
Update nextflow.config
drpatelh Mar 28, 2023
460ded5
Update nextflow.config
drpatelh Mar 28, 2023
e9709e1
Update nextflow.config
drpatelh Mar 29, 2023
0464637
Minor fixes for JSON sent to Slack.
robsyme Mar 29, 2023
ce0bb67
Use add-wait branch of tower action
robsyme Mar 28, 2023
8813318
Remove if statements
robsyme Mar 29, 2023
6b2c021
Merge pull request #982 from nf-core/slack-json-fixes
drpatelh Mar 29, 2023
4c07497
Add full-sized cloud tests
robsyme Mar 29, 2023
c513d27
Trailing commas are not allowed in YAML files.
robsyme Mar 29, 2023
bf8c05a
Unset igenomes_base from small test workflow
robsyme Mar 29, 2023
a759554
Apply suggestions from code review
drpatelh Mar 29, 2023
d21abe6
Move to self-hosted runners
robsyme Mar 29, 2023
56bf2ed
Add matrix
robsyme Mar 29, 2023
053d16e
Change to self-hosted runners
robsyme Mar 29, 2023
7399f56
Include aligner in run names
robsyme Mar 29, 2023
22db014
Update work directory to match old runners
robsyme Mar 29, 2023
3ee41ab
Use env for run name
robsyme Mar 29, 2023
29cf6ab
Remove github.event.pull_request.head.label
robsyme Mar 29, 2023
79c354f
Rely on action to remove colons from branch name
robsyme Mar 29, 2023
8fab0d9
Remove double underscore
robsyme Mar 29, 2023
1a88aa8
Bump actions versions
robsyme Mar 29, 2023
7957933
Minimize run names to remove tag/branch/commit
robsyme Mar 29, 2023
bb41bbc
Fix #975
drpatelh Mar 27, 2023
baa7aa3
Replace System.exit(1) calls in pipeline template
drpatelh Mar 27, 2023
7b8abfc
Fix nf-core lint
drpatelh Mar 27, 2023
aa407f4
Add explicit test_full profiles for all cloud providers
drpatelh Mar 28, 2023
565e970
Update nextflow.config
drpatelh Mar 28, 2023
257fd7e
Update nextflow.config
drpatelh Mar 28, 2023
530c813
Update nextflow.config
drpatelh Mar 29, 2023
fe39f59
Minor fixes for JSON sent to Slack.
robsyme Mar 29, 2023
5b2b523
Merge pull request #981 from nf-core/tower-actions-testing
drpatelh Mar 29, 2023
5c676f4
fix: Switched all tests to run on self-hosted instead of Github hosted
Mar 29, 2023
232cbf3
Revert linting to use GHA hosted
Mar 29, 2023
8aab2cc
Merge pull request #984 from nf-core/self_hosted_tests_march_23
drpatelh Mar 29, 2023
b4219ef
Update CHANGELOG
drpatelh Mar 29, 2023
d50a30d
Update other CI tests
drpatelh Mar 29, 2023
c51d105
Merge pull request #986 from drpatelh/hosted
drpatelh Mar 29, 2023
61c6050
[automated] Fix linting with Prettier
nf-core-bot Mar 29, 2023
0b206d2
Update CHANGELOG.md
drpatelh Mar 30, 2023
fbffe86
Update cloud_tests_full.yml
drpatelh Mar 30, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/awsfulltest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
# Do a full-scale run with each of the three aligners

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Do a full-scale run with each of the three aligners
# Do a full-scale run with two aligners

strategy:
matrix:
aligner: ["star_salmon", "star_rsem", "hisat2"]
aligner: ["star_salmon", "star_rsem"]
steps:
- name: Launch workflow via tower
uses: nf-core/tower-action@v3
Expand Down
130 changes: 125 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,33 @@ jobs:
with:
version: "${{ matrix.NXF_VER }}"

- name: Cache test data
id: cache-testdata
uses: actions/cache@v3
with:
path: test-datasets/
key: rnaseq3_10-test-data

- name: Check out test data
if: steps.cache-testdata.outputs.cache-hit != 'true'
uses: actions/checkout@v3
with:
repository: nf-core/test-datasets
ref: rnaseq3
path: test-datasets/

- name: Replace remote paths in samplesheets
run: |
for f in ${{ github.workspace }}/test-datasets/samplesheet/v3.10/*.csv; do
sed -i "s=https://raw.githubusercontent.com/nf-core/test-datasets/rnaseq/=${{ github.workspace }}/test-datasets/=g" $f
echo "========== $f ============"
cat $f
echo "========================================"
done;

- name: Run pipeline with test data
run: |
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --outdir ./results
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --outdir ./results --test_data_base ${{ github.workspace }}/test-datasets/

star_salmon:
name: Test STAR Salmon with workflow parameters
Expand All @@ -62,14 +86,38 @@ jobs:
- name: Check out pipeline code
uses: actions/checkout@v2

- name: Cache test data
id: cache-testdata
uses: actions/cache@v3
with:
path: test-datasets/
key: rnaseq3_10-test-data

- name: Check out test data
if: steps.cache-testdata.outputs.cache-hit != 'true'
uses: actions/checkout@v3
with:
repository: nf-core/test-datasets
ref: rnaseq3
path: test-datasets/

- name: Replace remote paths in samplesheets
run: |
for f in ${{ github.workspace }}/test-datasets/samplesheet/v3.10/*.csv; do
sed -i "s=https://raw.githubusercontent.com/nf-core/test-datasets/rnaseq/=${{ github.workspace }}/test-datasets/=g" $f
echo "========== $f ============"
cat $f
echo "========================================"
done;

- name: Install Nextflow
run: |
wget -qO- get.nextflow.io | bash
sudo mv nextflow /usr/local/bin/

- name: Run pipeline with STAR and various parameters
run: |
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --aligner star_salmon ${{ matrix.parameters }} --outdir ./results
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --aligner star_salmon ${{ matrix.parameters }} --outdir ./results --test_data_base ${{ github.workspace }}/test-datasets/

star_rsem:
name: Test STAR RSEM with workflow parameters
Expand All @@ -84,14 +132,38 @@ jobs:
- name: Check out pipeline code
uses: actions/checkout@v2

- name: Cache test data
id: cache-testdata
uses: actions/cache@v3
with:
path: test-datasets/
key: rnaseq3_10-test-data

- name: Check out test data
if: steps.cache-testdata.outputs.cache-hit != 'true'
uses: actions/checkout@v3
with:
repository: nf-core/test-datasets
ref: rnaseq3
path: test-datasets/

- name: Replace remote paths in samplesheets
run: |
for f in ${{ github.workspace }}/test-datasets/samplesheet/v3.10/*.csv; do
sed -i "s=https://raw.githubusercontent.com/nf-core/test-datasets/rnaseq/=${{ github.workspace }}/test-datasets/=g" $f
echo "========== $f ============"
cat $f
echo "========================================"
done;

- name: Install Nextflow
run: |
wget -qO- get.nextflow.io | bash
sudo mv nextflow /usr/local/bin/

- name: Run pipeline with RSEM STAR and various parameters
run: |
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --aligner star_rsem ${{ matrix.parameters }} --outdir ./results
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --aligner star_rsem ${{ matrix.parameters }} --outdir ./results --test_data_base ${{ github.workspace }}/test-datasets/

hisat2:
name: Test HISAT2 with workflow parameters
Expand All @@ -106,14 +178,38 @@ jobs:
- name: Check out pipeline code
uses: actions/checkout@v2

- name: Cache test data
id: cache-testdata
uses: actions/cache@v3
with:
path: test-datasets/
key: rnaseq3_10-test-data

- name: Check out test data
if: steps.cache-testdata.outputs.cache-hit != 'true'
uses: actions/checkout@v3
with:
repository: nf-core/test-datasets
ref: rnaseq3
path: test-datasets/

- name: Replace remote paths in samplesheets
run: |
for f in ${{ github.workspace }}/test-datasets/samplesheet/v3.10/*.csv; do
sed -i "s=https://raw.githubusercontent.com/nf-core/test-datasets/rnaseq/=${{ github.workspace }}/test-datasets/=g" $f
echo "========== $f ============"
cat $f
echo "========================================"
done;

- name: Install Nextflow
run: |
wget -qO- get.nextflow.io | bash
sudo mv nextflow /usr/local/bin/

- name: Run pipeline with HISAT2 and various parameters
run: |
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --aligner hisat2 ${{ matrix.parameters }} --outdir ./results
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --aligner hisat2 ${{ matrix.parameters }} --outdir ./results --test_data_base ${{ github.workspace }}/test-datasets/

salmon:
name: Test Salmon with workflow parameters
Expand All @@ -128,11 +224,35 @@ jobs:
- name: Check out pipeline code
uses: actions/checkout@v2

- name: Cache test data
id: cache-testdata
uses: actions/cache@v3
with:
path: test-datasets/
key: rnaseq3_10-test-data

- name: Check out test data
if: steps.cache-testdata.outputs.cache-hit != 'true'
uses: actions/checkout@v3
with:
repository: nf-core/test-datasets
ref: rnaseq3
path: test-datasets/

- name: Replace remote paths in samplesheets
run: |
for f in ${{ github.workspace }}/test-datasets/samplesheet/v3.10/*.csv; do
sed -i "s=https://raw.githubusercontent.com/nf-core/test-datasets/rnaseq/=${{ github.workspace }}/test-datasets/=g" $f
echo "========== $f ============"
cat $f
echo "========================================"
done;

- name: Install Nextflow
run: |
wget -qO- get.nextflow.io | bash
sudo mv nextflow /usr/local/bin/

- name: Run pipeline with Salmon and various parameters
run: |
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --pseudo_aligner salmon ${{ matrix.parameters }} --outdir ./results
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --pseudo_aligner salmon ${{ matrix.parameters }} --outdir ./results --test_data_base ${{ github.workspace }}/test-datasets/
40 changes: 40 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,46 @@
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [[3.11.0](https://github.com/nf-core/rnaseq/releases/tag/3.11.0)] - 2023-03-24

### Enhancements & fixes

- [[#878](https://github.com/nf-core/rnaseq/pull/878)] - Allow tabs in fasta header when creating decoys for salmon index
- [[#931](https://github.com/nf-core/rnaseq/pull/931)] - Save transcriptome BAM files when using `--save_umi_intermeds` / `--save_align_intermeds`
- [[#934](https://github.com/nf-core/rnaseq/pull/934)] - Union of `ext.args` and `params.extra_star_align_args` prevents parameter clashes in the STAR module
- [[#940](https://github.com/nf-core/rnaseq/issues/940)] - Bugfix in `salmon_summarizedexperiment.r` to ensure `rbind` doesn't fail when `rowdata` has no `tx` column. See ([[#941](https://github.com/nf-core/rnaseq/pull/941)]) for details.
- [[#944](https://github.com/nf-core/rnaseq/issues/944)] - Read clipping using clip_r1, clip_r2, three_prime_clip_r1, three_prime_clip_r2 disabled in 3.10
- [[#956](https://github.com/nf-core/rnaseq/pull/956)] - Implement 'auto' as default strandedness argument in `fastq_dir_to_samplesheet.py` script
- [[#960](https://github.com/nf-core/rnaseq/pull/960)] - Failure with awsbatch when running processes that are using `executor: local`
- [[#961](https://github.com/nf-core/rnaseq/pull/961)] - Add warnings to STDOUT for all skipped and failed strandedness check samples
- Remove HISAT2 from automated AWS full-sized tests

### Parameters

| Old parameter | New parameter |
| ------------- | ------------- |
| `--tracedir` | |

> **NB:** Parameter has been **updated** if both old and new parameter information is present.
> **NB:** Parameter has been **added** if just the new parameter information is present.
> **NB:** Parameter has been **removed** if new parameter information isn't present.

### Software dependencies

Note, since the pipeline is now using Nextflow DSL2, each process will be run with its own [Biocontainer](https://biocontainers.pro/#/registry). This means that on occasion it is entirely possible for the pipeline to be using different versions of the same tool. However, the overall software dependency changes compared to the last release have been listed below for reference.

| Dependency | Old version | New version |
| ----------- | ----------- | ----------- |
| `multiqc` | 1.13 | 1.14 |
| `picard` | 2.27.4 | 3.0.0 |
| `umi_tools` | 1.1.2 | 1.1.4 |

> **NB:** Dependency has been **updated** if both old and new version information is present.
>
> **NB:** Dependency has been **added** if just the new version information is present.
>
> **NB:** Dependency has been **removed** if new version information isn't present.

## [[3.10.1](https://github.com/nf-core/rnaseq/releases/tag/3.10.1)] - 2023-01-05

### Enhancements & fixes
Expand Down
8 changes: 2 additions & 6 deletions assets/email_template.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ <h4 style="margin-top: 0; color: inherit">nf-core/rnaseq execution completed uns
<p>The full error message was:</p>
<pre style="white-space: pre-wrap; overflow: visible; margin-bottom: 0">${errorReport}</pre>
</div>
""" } else if(fail_percent_mapped.size() > 0) { out << """
""" } else if(skip_sample_count > 0) { out << """
<div
style="
color: #856404;
Expand All @@ -48,12 +48,8 @@ <h4 style="margin-top: 0; color: inherit">nf-core/rnaseq execution completed uns
>
<h4 style="margin-top: 0; color: inherit">nf-core/rnaseq execution completed with warnings!</h4>
<p>
The pipeline finished successfully, but the following samples were skipped due to very low alignment (&lt;
${min_mapped_reads}%):
The pipeline finished successfully, but samples were skipped. Please check warnings at the top of the MultiQC report.
</p>
<ul>
<li><code>${fail_percent_mapped.join('</code></li><li><code>')}</code></li>
</ul>
<p></p>
</div>

Expand Down
8 changes: 3 additions & 5 deletions assets/email_template.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,12 @@ The full error message was:

${errorReport}
"""
} else if (fail_percent_mapped.size() > 0) {
} else if (skip_sample_count > 0) {
out << """##################################################
## nf-core/rnaseq execution completed with warnings ##
##################################################
The pipeline finished successfully, but the following samples were skipped,
due to very low alignment (less than ${min_mapped_reads}%):

- ${fail_percent_mapped.join("\n - ")}
The pipeline finished successfully, but samples were skipped.
Please check warnings at the top of the MultiQC report.
"""
} else {
out << "## nf-core/rnaseq execution completed successfully! ##"
Expand Down
2 changes: 0 additions & 2 deletions bin/check_samplesheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ def check_samplesheet(file_in, file_out):

sample_mapping_dict = {}
with open(file_in, "r", encoding="utf-8-sig") as fin:

## Check header
MIN_COLS = 3
HEADER = ["sample", "fastq_1", "fastq_2", "strandedness"]
Expand Down Expand Up @@ -142,7 +141,6 @@ def check_samplesheet(file_in, file_out):
",".join(["sample", "single_end", "fastq_1", "fastq_2", "strandedness"] + header[len(HEADER) :]) + "\n"
)
for sample in sorted(sample_mapping_dict.keys()):

## Check that multiple runs of the same sample are of the same datatype i.e. single-end / paired-end
if not all(x[0] == sample_mapping_dict[sample][0][0] for x in sample_mapping_dict[sample]):
print_error(
Expand Down
10 changes: 5 additions & 5 deletions bin/fastq_dir_to_samplesheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ def parse_args(args=None):
"--strandedness",
type=str,
dest="STRANDEDNESS",
default="unstranded",
help="Value for 'strandedness' in samplesheet. Must be one of 'unstranded', 'forward', 'reverse'.",
default="auto",
help="Value for 'strandedness' in samplesheet. Must be one of 'unstranded', 'forward', 'reverse', 'auto'.",
)
parser.add_argument(
"-r1",
Expand Down Expand Up @@ -80,7 +80,7 @@ def parse_args(args=None):
def fastq_dir_to_samplesheet(
fastq_dir,
samplesheet_file,
strandedness="unstranded",
strandedness="auto",
read1_extension="_R1_001.fastq.gz",
read2_extension="_R2_001.fastq.gz",
single_end=False,
Expand Down Expand Up @@ -154,8 +154,8 @@ def get_fastqs(extension, recursive=False):
def main(args=None):
args = parse_args(args)

strandedness = "unstranded"
if args.STRANDEDNESS in ["unstranded", "forward", "reverse"]:
strandedness = "auto"
if args.STRANDEDNESS in ["unstranded", "forward", "reverse", "auto"]:
strandedness = args.STRANDEDNESS

fastq_dir_to_samplesheet(
Expand Down
1 change: 0 additions & 1 deletion bin/filter_gtf_for_genes_in_genome.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ def extract_genes_in_genome(fasta, gtf_in, gtf_out):
n_lines_in_genome = 0
with open(gtf_out, "w") as f:
with open(gtf_in) as g:

for line in g.readlines():
n_total_lines += 1
seq_name_gtf = line.split("\t")[0]
Expand Down
1 change: 0 additions & 1 deletion bin/mqc_features_stat.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@


def mqc_feature_stat(bfile, features, outfile, sname=None):

# If sample name not given use file name
if not sname:
sname = os.path.splitext(os.path.basename(bfile))[0]
Expand Down
Loading