Skip to content

Commit 9ed7c7b

Browse files
Merge pull request #45 from nf-core/dev
Release v2.0.0
2 parents 0c1a6b9 + 19637a8 commit 9ed7c7b

Some content is hidden

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

72 files changed

+1755
-1190
lines changed

.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,7 @@ indent_size = unset
3131
# ignore python and markdown
3232
[*.{py,md}]
3333
indent_style = unset
34+
35+
# ignore ro-crate metadata files
36+
[**/ro-crate-metadata.json]
37+
insert_final_newline = unset

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ body:
99
1010
- [nf-core website: troubleshooting](https://nf-co.re/usage/troubleshooting)
1111
- [nf-core/pairgenomealign pipeline documentation](https://nf-co.re/pairgenomealign/usage)
12-
1312
- type: textarea
1413
id: description
1514
attributes:

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ jobs:
4646
steps:
4747
- name: Check out pipeline code
4848
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
49+
with:
50+
fetch-depth: 0
4951

5052
- name: Set up Nextflow
5153
uses: nf-core/setup-nextflow@v2

.github/workflows/download_pipeline.yml

Lines changed: 32 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,23 @@ env:
2828
NXF_ANSI_LOG: false
2929

3030
jobs:
31+
configure:
32+
runs-on: ubuntu-latest
33+
outputs:
34+
REPO_LOWERCASE: ${{ steps.get_repo_properties.outputs.REPO_LOWERCASE }}
35+
REPOTITLE_LOWERCASE: ${{ steps.get_repo_properties.outputs.REPOTITLE_LOWERCASE }}
36+
REPO_BRANCH: ${{ steps.get_repo_properties.outputs.REPO_BRANCH }}
37+
steps:
38+
- name: Get the repository name and current branch
39+
id: get_repo_properties
40+
run: |
41+
echo "REPO_LOWERCASE=${GITHUB_REPOSITORY,,}" >> "$GITHUB_OUTPUT"
42+
echo "REPOTITLE_LOWERCASE=$(basename ${GITHUB_REPOSITORY,,})" >> "$GITHUB_OUTPUT"
43+
echo "REPO_BRANCH=${{ github.event.inputs.testbranch || 'dev' }}" >> "$GITHUB_OUTPUT"
44+
3145
download:
3246
runs-on: ubuntu-latest
47+
needs: configure
3348
steps:
3449
- name: Install Nextflow
3550
uses: nf-core/setup-nextflow@v2
@@ -52,12 +67,6 @@ jobs:
5267
python -m pip install --upgrade pip
5368
pip install git+https://github.com/nf-core/tools.git@dev
5469
55-
- name: Get the repository name and current branch set as environment variable
56-
run: |
57-
echo "REPO_LOWERCASE=${GITHUB_REPOSITORY,,}" >> ${GITHUB_ENV}
58-
echo "REPOTITLE_LOWERCASE=$(basename ${GITHUB_REPOSITORY,,})" >> ${GITHUB_ENV}
59-
echo "REPO_BRANCH=${{ github.event.inputs.testbranch || 'dev' }}" >> ${GITHUB_ENV}
60-
6170
- name: Make a cache directory for the container images
6271
run: |
6372
mkdir -p ./singularity_container_images
@@ -66,55 +75,59 @@ jobs:
6675
env:
6776
NXF_SINGULARITY_CACHEDIR: ./singularity_container_images
6877
run: |
69-
nf-core pipelines download ${{ env.REPO_LOWERCASE }} \
70-
--revision ${{ env.REPO_BRANCH }} \
71-
--outdir ./${{ env.REPOTITLE_LOWERCASE }} \
78+
nf-core pipelines download ${{ needs.configure.outputs.REPO_LOWERCASE }} \
79+
--revision ${{ needs.configure.outputs.REPO_BRANCH }} \
80+
--outdir ./${{ needs.configure.outputs.REPOTITLE_LOWERCASE }} \
7281
--compress "none" \
7382
--container-system 'singularity' \
7483
--container-library "quay.io" -l "docker.io" -l "community.wave.seqera.io/library/" \
7584
--container-cache-utilisation 'amend' \
7685
--download-configuration 'yes'
7786
7887
- name: Inspect download
79-
run: tree ./${{ env.REPOTITLE_LOWERCASE }}
88+
run: tree ./${{ needs.configure.outputs.REPOTITLE_LOWERCASE }}
89+
90+
- name: Inspect container images
91+
run: tree ./singularity_container_images | tee ./container_initial
8092

8193
- name: Count the downloaded number of container images
8294
id: count_initial
8395
run: |
8496
image_count=$(ls -1 ./singularity_container_images | wc -l | xargs)
8597
echo "Initial container image count: $image_count"
86-
echo "IMAGE_COUNT_INITIAL=$image_count" >> ${GITHUB_ENV}
98+
echo "IMAGE_COUNT_INITIAL=$image_count" >> "$GITHUB_OUTPUT"
8799
88100
- name: Run the downloaded pipeline (stub)
89101
id: stub_run_pipeline
90102
continue-on-error: true
91103
env:
92104
NXF_SINGULARITY_CACHEDIR: ./singularity_container_images
93105
NXF_SINGULARITY_HOME_MOUNT: true
94-
run: nextflow run ./${{ env.REPOTITLE_LOWERCASE }}/$( sed 's/\W/_/g' <<< ${{ env.REPO_BRANCH }}) -stub -profile test,singularity --outdir ./results
106+
run: nextflow run ./${{needs.configure.outputs.REPOTITLE_LOWERCASE }}/$( sed 's/\W/_/g' <<< ${{ needs.configure.outputs.REPO_BRANCH }}) -stub -profile test,singularity --outdir ./results
95107
- name: Run the downloaded pipeline (stub run not supported)
96108
id: run_pipeline
97-
if: ${{ job.steps.stub_run_pipeline.status == failure() }}
109+
if: ${{ steps.stub_run_pipeline.outcome == 'failure' }}
98110
env:
99111
NXF_SINGULARITY_CACHEDIR: ./singularity_container_images
100112
NXF_SINGULARITY_HOME_MOUNT: true
101-
run: nextflow run ./${{ env.REPOTITLE_LOWERCASE }}/$( sed 's/\W/_/g' <<< ${{ env.REPO_BRANCH }}) -profile test,singularity --outdir ./results
113+
run: nextflow run ./${{ needs.configure.outputs.REPOTITLE_LOWERCASE }}/$( sed 's/\W/_/g' <<< ${{ needs.configure.outputs.REPO_BRANCH }}) -profile test,singularity --outdir ./results
102114

103115
- name: Count the downloaded number of container images
104116
id: count_afterwards
105117
run: |
106118
image_count=$(ls -1 ./singularity_container_images | wc -l | xargs)
107119
echo "Post-pipeline run container image count: $image_count"
108-
echo "IMAGE_COUNT_AFTER=$image_count" >> ${GITHUB_ENV}
120+
echo "IMAGE_COUNT_AFTER=$image_count" >> "$GITHUB_OUTPUT"
109121
110122
- name: Compare container image counts
111123
run: |
112-
if [ "${{ env.IMAGE_COUNT_INITIAL }}" -ne "${{ env.IMAGE_COUNT_AFTER }}" ]; then
113-
initial_count=${{ env.IMAGE_COUNT_INITIAL }}
114-
final_count=${{ env.IMAGE_COUNT_AFTER }}
124+
if [ "${{ steps.count_initial.outputs.IMAGE_COUNT_INITIAL }}" -ne "${{ steps.count_afterwards.outputs.IMAGE_COUNT_AFTER }}" ]; then
125+
initial_count=${{ steps.count_initial.outputs.IMAGE_COUNT_INITIAL }}
126+
final_count=${{ steps.count_afterwards.outputs.IMAGE_COUNT_AFTER }}
115127
difference=$((final_count - initial_count))
116128
echo "$difference additional container images were \n downloaded at runtime . The pipeline has no support for offline runs!"
117-
tree ./singularity_container_images
129+
tree ./singularity_container_images > ./container_afterwards
130+
diff ./container_initial ./container_afterwards
118131
exit 1
119132
else
120133
echo "The pipeline can be downloaded successfully!"

.github/workflows/linting_comment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Download lint results
14-
uses: dawidd6/action-download-artifact@80620a5d27ce0ae443b965134db88467fc607b43 # v7
14+
uses: dawidd6/action-download-artifact@20319c5641d495c8a52e688b7dc5fada6c3a9fbc # v8
1515
with:
1616
workflow: linting.yml
1717
workflow_conclusion: completed

.github/workflows/release-announcements.yml

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -27,39 +27,6 @@ jobs:
2727
2828
${{ steps.get_topics.outputs.topics }} #nfcore #openscience #nextflow #bioinformatics
2929
30-
send-tweet:
31-
runs-on: ubuntu-latest
32-
33-
steps:
34-
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5
35-
with:
36-
python-version: "3.10"
37-
- name: Install dependencies
38-
run: pip install tweepy==4.14.0
39-
- name: Send tweet
40-
shell: python
41-
run: |
42-
import os
43-
import tweepy
44-
45-
client = tweepy.Client(
46-
access_token=os.getenv("TWITTER_ACCESS_TOKEN"),
47-
access_token_secret=os.getenv("TWITTER_ACCESS_TOKEN_SECRET"),
48-
consumer_key=os.getenv("TWITTER_CONSUMER_KEY"),
49-
consumer_secret=os.getenv("TWITTER_CONSUMER_SECRET"),
50-
)
51-
tweet = os.getenv("TWEET")
52-
client.create_tweet(text=tweet)
53-
env:
54-
TWEET: |
55-
Pipeline release! ${{ github.repository }} v${{ github.event.release.tag_name }} - ${{ github.event.release.name }}!
56-
57-
Please see the changelog: ${{ github.event.release.html_url }}
58-
TWITTER_CONSUMER_KEY: ${{ secrets.TWITTER_CONSUMER_KEY }}
59-
TWITTER_CONSUMER_SECRET: ${{ secrets.TWITTER_CONSUMER_SECRET }}
60-
TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }}
61-
TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
62-
6330
bsky-post:
6431
runs-on: ubuntu-latest
6532
steps:

.nf-core.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ lint:
33
- assets/nf-core-pairgenomealign_logo_light.png
44
- docs/images/nf-core-pairgenomealign_logo_light.png
55
- docs/images/nf-core-pairgenomealign_logo_dark.png
6-
nf_core_version: 3.1.0
6+
nf_core_version: 3.2.0
77
repository_type: pipeline
88
template:
99
author: charles-plessy

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ repos:
77
- prettier@3.2.5
88

99
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
10-
rev: "3.0.3"
10+
rev: "3.1.2"
1111
hooks:
1212
- id: editorconfig-checker
1313
alias: ec

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ testing/
1010
testing*
1111
*.pyc
1212
bin/
13+
ro-crate-metadata.json

CHANGELOG.md

Lines changed: 56 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,67 @@
33
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
44
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
55

6+
## [v2.0.0](https://github.com/nf-core/pairgenomealign/releases/tag/2.0.0) "Naga imo" - [February 5th, 2025]
7+
8+
### `Breaking changes`
9+
10+
- The LAST software was updated and it has new defaults for some of its
11+
parameters. The alignments ran with this pipeline will not be identical to
12+
the ones from older versions.
13+
14+
### `Added`
15+
16+
- The `alignment/lastdb` directory is not output anymore. It consumed space,
17+
is not usually needed for downstream analysis, and can be re-computed
18+
identically if needed.
19+
- The _many-to-one_ alignment file is not output anymore by default, to save
20+
space. To keep this file, you can run the pipeline in `many-to-many` mode
21+
with the `--m2m` parameter.
22+
- The `--seed` parameter allows for all the existing values in the `lastdb`
23+
program.
24+
- Errors caused by absence of alignments at training or plotting steps
25+
are now ignored.
26+
- New parameter `--export_aln_to` that creates additional files containing
27+
the alignments in a different format such as Axt, Chain, GFF or SAM.
28+
29+
### `Fixed`
30+
31+
- Incorrect detection of regions with 10 or more `N`s was corrected ([#18](https://github.com/nf-core/pairgenomealign/issues/18)).
32+
- The `--lastal_params` now works as intended instead of being ignored ([#22](https://github.com/nf-core/pairgenomealign/issues/22)).
33+
- The _workflow summary_ is now properly sorted at the end of the MultiQC report ([#32](https://github.com/nf-core/pairgenomealign/issues/32)).
34+
- Conforms to nf-core template version 3.2.0 ([#40](https://github.com/nf-core/pairgenomealign/pull/40)).
35+
36+
### `Parameters`
37+
38+
| Old parameter | New parameter |
39+
| ------------- | ----------------- |
40+
| | `--export_aln_to` |
41+
42+
### `Dependencies`
43+
44+
| Dependency | Old version | New version |
45+
| ---------- | ----------- | ----------- |
46+
| `LAST` | 1542 | 1608 |
47+
| `MultiQC` | 1.25.1 | 1.27 |
48+
649
## [v1.1.1](https://github.com/nf-core/pairgenomealign/releases/tag/1.1.1) "Kani nabe" - [December 17th, 2024]
750

8-
This release brings the pipeline to the standards of Nextflow 24.10.1 and
9-
nf-core 3.1.0. No changes were made to the alignment process.
51+
### `Fixed`
52+
53+
- This release brings the pipeline to the standards of Nextflow 24.10.1 and
54+
nf-core 3.1.0.
1055

1156
## [v1.1.0](https://github.com/nf-core/pairgenomealign/releases/tag/1.1.0) "Nattou maki" - [September 27th, 2024]
1257

13-
Added a new `softmask` parameter, to optionally keep original softmasking.
58+
### `Added`
59+
60+
- Added a new `softmask` parameter, to optionally keep original softmasking.
61+
62+
### `Parameters`
63+
64+
| Old parameter | New parameter |
65+
| ------------- | ------------- |
66+
| | `--softmask` |
1467

1568
## [v1.0.0](https://github.com/nf-core/pairgenomealign/releases/tag/1.0.0) "Sweet potato" - [August 27th, 2024]
1669

0 commit comments

Comments
 (0)