Skip to content

Commit 274042b

Browse files
authored
Merge pull request #316 from nf-core/dev
Release PR for 1.1.4
2 parents eb8f79c + 5c7aebf commit 274042b

30 files changed

+335
-258
lines changed

.devcontainer/devcontainer.json

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "nfcore",
33
"image": "nfcore/gitpod:latest",
44
"remoteUser": "gitpod",
5+
"runArgs": ["--privileged"],
56

67
// Configure tool-specific properties.
78
"customizations": {

.github/CONTRIBUTING.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ Please use the pre-filled template to save time.
99
However, don't be put off by this template - other more general issues and suggestions are welcome!
1010
Contributions to the code are even more welcome ;)
1111

12-
> If you need help using or modifying nf-core/funcscan then the best place to ask is on the nf-core Slack [#funcscan](https://nfcore.slack.com/channels/funcscan) channel ([join our Slack here](https://nf-co.re/join/slack)).
12+
:::info
13+
If you need help using or modifying nf-core/funcscan then the best place to ask is on the nf-core Slack [#funcscan](https://nfcore.slack.com/channels/funcscan) channel ([join our Slack here](https://nf-co.re/join/slack)).
14+
:::
1315

1416
## Contribution workflow
1517

.github/workflows/ci.yml

+26-26
Original file line numberDiff line numberDiff line change
@@ -70,33 +70,33 @@ jobs:
7070

7171
- name: Run pipeline with test data (BGC workflow)
7272
run: |
73-
nextflow run ${GITHUB_WORKSPACE} -profile test_bgc,docker --outdir ./results ${{ matrix.parameters }}
73+
nextflow run ${GITHUB_WORKSPACE} -profile test_bgc,docker --outdir ./results ${{ matrix.parameters }} --bgc_skip_deepbgc
7474
75-
# test_deeparg: #Tests switched off as long as DeepARG servers are unavaiable for database download.
76-
# name: Run pipeline with test data (DeepARG only workflow)
77-
# # Only run on push if this is the nf-core dev branch (merged PRs)
78-
# if: "${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/funcscan') }}"
79-
# runs-on: ubuntu-latest
80-
# strategy:
81-
# matrix:
82-
# NXF_VER:
83-
# - "23.04.0"
84-
# - "latest-everything"
85-
# parameters:
86-
# - "--annotation_tool bakta --annotation_bakta_db_downloadtype light"
87-
# - "--annotation_tool prodigal"
88-
# - "--annotation_tool prokka"
89-
# - "--annotation_tool pyrodigal"
75+
test_deeparg:
76+
name: Run pipeline with test data (DeepARG only workflow)
77+
# Only run on push if this is the nf-core dev branch (merged PRs)
78+
if: "${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/funcscan') }}"
79+
runs-on: ubuntu-latest
80+
strategy:
81+
matrix:
82+
NXF_VER:
83+
- "23.04.0"
84+
- "latest-everything"
85+
parameters:
86+
- "--annotation_tool bakta --annotation_bakta_db_downloadtype light"
87+
- "--annotation_tool pyrodigal"
9088

91-
# steps:
92-
# - name: Check out pipeline code
93-
# uses: actions/checkout@v2
89+
steps:
90+
- name: Check out pipeline code
91+
uses: actions/checkout@v2
9492

95-
# - name: Install Nextflow
96-
# uses: nf-core/setup-nextflow@v1
97-
# with:
98-
# version: "${{ matrix.NXF_VER }}"
93+
- name: Install Nextflow
94+
uses: nf-core/setup-nextflow@v1
95+
with:
96+
version: "${{ matrix.NXF_VER }}"
9997

100-
# - name: Run pipeline with test data (DeepARG workflow)
101-
# run: |
102-
# nextflow run ${GITHUB_WORKSPACE} -profile test_deeparg,docker --outdir ./results ${{ matrix.parameters }}
98+
- name: Run pipeline with test data (DeepARG workflow)
99+
run: |
100+
wget https://zenodo.org/record/8280582/files/deeparg.zip ## download from zenodo due to instability of deepARG server
101+
unzip deeparg.zip
102+
nextflow run ${GITHUB_WORKSPACE} -profile test_deeparg,docker --outdir ./results ${{ matrix.parameters }} --arg_deeparg_data 'deeparg/'

.github/workflows/linting.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878

7979
- uses: actions/setup-python@v4
8080
with:
81-
python-version: "3.8"
81+
python-version: "3.11"
8282
architecture: "x64"
8383

8484
- name: Install dependencies
+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: release-announcements
2+
# Automatic release toot and tweet anouncements
3+
on:
4+
release:
5+
types: [published]
6+
workflow_dispatch:
7+
8+
jobs:
9+
toot:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: rzr/fediverse-action@master
13+
with:
14+
access-token: ${{ secrets.MASTODON_ACCESS_TOKEN }}
15+
host: "mstdn.science" # custom host if not "mastodon.social" (default)
16+
# GitHub event payload
17+
# https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#release
18+
message: |
19+
Pipeline release! ${{ github.repository }} v${{ github.event.release.tag_name }} - ${{ github.event.release.name }}!
20+
21+
Please see the changelog: ${{ github.event.release.html_url }}
22+
23+
send-tweet:
24+
runs-on: ubuntu-latest
25+
26+
steps:
27+
- uses: actions/setup-python@v4
28+
with:
29+
python-version: "3.10"
30+
- name: Install dependencies
31+
run: pip install tweepy==4.14.0
32+
- name: Send tweet
33+
shell: python
34+
run: |
35+
import os
36+
import tweepy
37+
38+
client = tweepy.Client(
39+
access_token=os.getenv("TWITTER_ACCESS_TOKEN"),
40+
access_token_secret=os.getenv("TWITTER_ACCESS_TOKEN_SECRET"),
41+
consumer_key=os.getenv("TWITTER_CONSUMER_KEY"),
42+
consumer_secret=os.getenv("TWITTER_CONSUMER_SECRET"),
43+
)
44+
tweet = os.getenv("TWEET")
45+
client.create_tweet(text=tweet)
46+
env:
47+
TWEET: |
48+
Pipeline release! ${{ github.repository }} v${{ github.event.release.tag_name }} - ${{ github.event.release.name }}!
49+
50+
Please see the changelog: ${{ github.event.release.html_url }}
51+
TWITTER_CONSUMER_KEY: ${{ secrets.TWITTER_CONSUMER_KEY }}
52+
TWITTER_CONSUMER_SECRET: ${{ secrets.TWITTER_CONSUMER_SECRET }}
53+
TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }}
54+
TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
55+
56+
bsky-post:
57+
runs-on: ubuntu-latest
58+
steps:
59+
- uses: zentered/[email protected]
60+
with:
61+
post: |
62+
Pipeline release! ${{ github.repository }} v${{ github.event.release.tag_name }} - ${{ github.event.release.name }}!
63+
64+
Please see the changelog: ${{ github.event.release.html_url }}
65+
env:
66+
BSKY_IDENTIFIER: ${{ secrets.BSKY_IDENTIFIER }}
67+
BSKY_PASSWORD: ${{ secrets.BSKY_PASSWORD }}
68+
#

CHANGELOG.md

+23
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,29 @@
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+
## v1.1.4 - [2023-11-07]
7+
8+
### `Added`
9+
10+
### `Fixed`
11+
12+
- [#306](https://github.com/nf-core/funcscan/pull/306) Added new parameter `annotation_prokka_retaincontigheaders` to allow prokka to retain the original contig headers/locus tag. (by @darcy220606)
13+
- [#307](https://github.com/nf-core/funcscan/pull/307) Fixed stability of deepARG tests by using Zenodo copy of database (❤️ to Gustavo Arango and Liqing Zhang for uploading, fix by @jfy133)
14+
- [#310](https://github.com/nf-core/funcscan/pull/310) Fixed error when supplying uncompressed input; added "fas" file extension for FASTA files. (by @tavareshugo)
15+
- [#311](https://github.com/nf-core/funcscan/pull/311) Merged pipeline template of nf-core/tools version 2.10. (by @jasmezz)
16+
17+
### `Dependencies`
18+
19+
| Tool | Previous version | New version |
20+
| ------------- | ---------------- | ----------- |
21+
| AMRFinderPlus | 3.10.42 | 3.11.18 |
22+
| Bakta | 1.7.0 | 1.8.2 |
23+
| MultiQC | 1.14 | 1.15 |
24+
25+
### `Deprecated`
26+
27+
- FastQC
28+
629
## v1.1.3 - [2023-08-11]
730

831
### `Added`

0 commit comments

Comments
 (0)