Skip to content

Commit 16a7d15

Browse files
authored
Merge pull request #449 from JoseEspinosa/merging-template-3.2.0
Merging-template-3.2.0
2 parents 8203bab + 5faf88c commit 16a7d15

16 files changed

+76
-115
lines changed

.github/workflows/ci.yml

+2
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

+16-12
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,17 @@ jobs:
3434
REPO_LOWERCASE: ${{ steps.get_repo_properties.outputs.REPO_LOWERCASE }}
3535
REPOTITLE_LOWERCASE: ${{ steps.get_repo_properties.outputs.REPOTITLE_LOWERCASE }}
3636
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+
45+
download:
46+
runs-on: ubuntu-latest
47+
needs: configure
3748
steps:
3849
- name: Install Nextflow
3950
uses: nf-core/setup-nextflow@v2
@@ -56,21 +67,10 @@ jobs:
5667
python -m pip install --upgrade pip
5768
pip install git+https://github.com/nf-core/tools.git@dev
5869
59-
- name: Get the repository name and current branch set as environment variable
60-
id: get_repo_properties
61-
run: |
62-
echo "REPO_LOWERCASE=${GITHUB_REPOSITORY,,}" >> "$GITHUB_OUTPUT"
63-
echo "REPOTITLE_LOWERCASE=$(basename ${GITHUB_REPOSITORY,,})" >> "$GITHUB_OUTPUT"
64-
echo "REPO_BRANCH=${{ github.event.inputs.testbranch || 'dev' }}" >> "$GITHUB_OUTPUT"
65-
6670
- name: Make a cache directory for the container images
6771
run: |
6872
mkdir -p ./singularity_container_images
6973
70-
download:
71-
runs-on: ubuntu-latest
72-
needs: configure
73-
steps:
7474
- name: Download the pipeline
7575
env:
7676
NXF_SINGULARITY_CACHEDIR: ./singularity_container_images
@@ -87,6 +87,9 @@ jobs:
8787
- name: Inspect download
8888
run: tree ./${{ needs.configure.outputs.REPOTITLE_LOWERCASE }}
8989

90+
- name: Inspect container images
91+
run: tree ./singularity_container_images | tee ./container_initial
92+
9093
- name: Count the downloaded number of container images
9194
id: count_initial
9295
run: |
@@ -123,7 +126,8 @@ jobs:
123126
final_count=${{ steps.count_afterwards.outputs.IMAGE_COUNT_AFTER }}
124127
difference=$((final_count - initial_count))
125128
echo "$difference additional container images were \n downloaded at runtime . The pipeline has no support for offline runs!"
126-
tree ./singularity_container_images
129+
tree ./singularity_container_images > ./container_afterwards
130+
diff ./container_initial ./container_afterwards
127131
exit 1
128132
else
129133
echo "The pipeline can be downloaded successfully!"

.github/workflows/linting_comment.yml

+1-1
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

-33
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

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ lint:
33
- config_defaults:
44
- params.bamtools_filter_se_config
55
- params.bamtools_filter_pe_config
6-
nf_core_version: 3.1.1
6+
nf_core_version: 3.2.0
77
repository_type: pipeline
88
template:
99
author: Espinosa-Carrasco J, Patel H, Wang C, Ewels P

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ repos:
77
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

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111
- [[PR #434](https://github.com/nf-core/chipseq/pull/434)] - Prevent pipeline fails from erroneous param validation when igenomes is used.
1212
- [[#432](https://github.com/nf-core/chipseq/issues/432)] - Fix `GFFREAD` call to have the two expected input channels.
1313
- [[PR #444](https://github.com/nf-core/chipseq/pull/444)] - Add empty map to ch_gff so that when provided by the user `GFFREAD` works.
14+
- Updated pipeline template to [nf-core/tools 3.2.0](https://github.com/nf-core/tools/releases/tag/3.2.0)
1415

1516
### Parameters
1617

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
<source media="(prefers-color-scheme: dark)" srcset="docs/images/nf-core-chipseq_logo_dark.png">
44
<img alt="nf-core/chipseq" src="docs/images/nf-core-chipseq_logo_light.png">
55
</picture>
6-
</h1>[![GitHub Actions CI Status](https://github.com/nf-core/chipseq/actions/workflows/ci.yml/badge.svg)](https://github.com/nf-core/chipseq/actions/workflows/ci.yml)
6+
</h1>
7+
8+
[![GitHub Actions CI Status](https://github.com/nf-core/chipseq/actions/workflows/ci.yml/badge.svg)](https://github.com/nf-core/chipseq/actions/workflows/ci.yml)
79
[![GitHub Actions Linting Status](https://github.com/nf-core/chipseq/actions/workflows/linting.yml/badge.svg)](https://github.com/nf-core/chipseq/actions/workflows/linting.yml)[![AWS CI](https://img.shields.io/badge/CI%20tests-full%20size-FF9900?labelColor=000000&logo=Amazon%20AWS)](https://nf-co.re/chipseq/results)[![Cite with Zenodo](http://img.shields.io/badge/DOI-10.5281/zenodo.3240506-1073c8?labelColor=000000)](https://doi.org/10.5281/zenodo.3240506)
810
[![nf-test](https://img.shields.io/badge/unit_tests-nf--test-337ab7.svg)](https://www.nf-test.com)
911

@@ -70,7 +72,7 @@ You can find numerous talks on the [nf-core events page](https://nf-co.re/events
7072
## Usage
7173

7274
> [!NOTE]
73-
> If you are new to Nextflow and nf-core, please refer to [this page](https://nf-co.re/docs/usage/installation) on how to set-up Nextflow.Make sure to [test your setup](https://nf-co.re/docs/usage/introduction#how-to-run-a-pipeline) with `-profile test` before running the workflow on actual data.
75+
> If you are new to Nextflow and nf-core, please refer to [this page](https://nf-co.re/docs/usage/installation) on how to set-up Nextflow. Make sure to [test your setup](https://nf-co.re/docs/usage/introduction#how-to-run-a-pipeline) with `-profile test` before running the workflow on actual data.
7476
7577
To run on your data, prepare a tab-separated samplesheet with your input data. Please follow the [documentation on samplesheets](https://nf-co.re/chipseq/usage#samplesheet-input) for more details. An example samplesheet for running the pipeline looks as follows:
7678

modules.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
},
6464
"fastqc": {
6565
"branch": "master",
66-
"git_sha": "666652151335353eef2fcd58880bcef5bc2928e1",
66+
"git_sha": "08108058ea36a63f141c25c4e75f9f872a5b2296",
6767
"installed_by": ["fastq_fastqc_umitools_trimgalore", "modules"]
6868
},
6969
"gffread": {
@@ -93,7 +93,7 @@
9393
},
9494
"multiqc": {
9595
"branch": "master",
96-
"git_sha": "cf17ca47590cc578dfb47db1c2a44ef86f89976d",
96+
"git_sha": "f0719ae309075ae4a291533883847c3f7c441dad",
9797
"installed_by": ["modules"]
9898
},
9999
"phantompeakqualtools": {

modules/nf-core/fastqc/main.nf

+10-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

modules/nf-core/fastqc/tests/tags.yml

-2
This file was deleted.

modules/nf-core/multiqc/environment.yml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

modules/nf-core/multiqc/main.nf

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

modules/nf-core/multiqc/tests/main.nf.test.snap

+12-12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nextflow.config

+10-10
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ includeConfig !System.getenv('NXF_OFFLINE') && params.custom_config_base ? "${pa
219219

220220
// Load nf-core/chipseq custom profiles from different institutions.
221221
// TODO nf-core: Optionally, you can add a pipeline-specific nf-core config at https://github.com/nf-core/configs
222-
// includeConfig !System.getenv('NXF_OFFLINE') && params.custom_config_base ? "${params.custom_config_base}/pipeline/chipseq.config" : "/dev/null"
222+
includeConfig !System.getenv('NXF_OFFLINE') && params.custom_config_base ? "${params.custom_config_base}/pipeline/chipseq.config" : "/dev/null"
223223

224224
// Set default registry for Apptainer, Docker, Podman, Charliecloud and Singularity independent of -profile
225225
// Will not be used unless Apptainer / Docker / Podman / Charliecloud / Singularity are enabled
@@ -245,14 +245,14 @@ env {
245245
}
246246

247247
// Set bash options
248-
process.shell = """\
249-
bash
250-
251-
set -e # Exit if a tool returns a non-zero status/exit code
252-
set -u # Treat unset variables and parameters as an error
253-
set -o pipefail # Returns the status of the last command to exit with a non-zero status or zero if all successfully execute
254-
set -C # No clobber - prevent output redirection from overwriting files.
255-
"""
248+
process.shell = [
249+
"bash",
250+
"-C", // No clobber - prevent output redirection from overwriting files.
251+
"-e", // Exit if a tool returns a non-zero status/exit code
252+
"-u", // Treat unset variables and parameters as an error
253+
"-o", // Returns the status of the last command to exit..
254+
"pipefail" // ..with a non-zero status or zero if all successfully execute
255+
]
256256

257257
// Disable process selector warnings by default. Use debug profile to enable warnings.
258258
nextflow.enable.configProcessNamesValidation = false
@@ -323,7 +323,7 @@ manifest {
323323

324324
// Nextflow plugins
325325
plugins {
326-
id 'nf-schema@2.1.1' // Validation of pipeline parameters and creation of an input channel from a sample sheet
326+
id 'nf-schema@2.3.0' // Validation of pipeline parameters and creation of an input channel from a sample sheet
327327
}
328328

329329
validation {

0 commit comments

Comments
 (0)