Skip to content

Commit

Permalink
fix: Fix host removal flag (#42)
Browse files Browse the repository at this point in the history
* fix: Add host removal

* ci: Update setup nf version

* ci: Update checkout step

* ci: Use specific nf version

* chore: Bump version
  • Loading branch information
jvfe authored Dec 3, 2024
1 parent 75336a2 commit bcc1e37
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ jobs:
matrix:
profile: ["docker", "singularity"]
NXF_VER:
- "latest-everything"
- "23.10.0"
steps:
- name: Check out pipeline code
uses: actions/checkout@v2
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4

- name: Install Nextflow
uses: nf-core/setup-nextflow@v1
uses: nf-core/setup-nextflow@v2
with:
version: "${{ matrix.NXF_VER }}"

Expand Down
2 changes: 1 addition & 1 deletion nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ manifest {
description = """A pipeline for taxonomic classification and functional annotation of metagenomics reads. Based on MEDUSA."""
mainScript = 'main.nf'
nextflowVersion = '!>=22.10.1'
version = '1.0.3'
version = '1.0.4'
doi = ''
}

Expand Down
20 changes: 11 additions & 9 deletions workflows/euryale.nf
Original file line number Diff line number Diff line change
Expand Up @@ -109,15 +109,17 @@ workflow EURYALE {
ch_multiqc_files = ch_multiqc_files.mix(PREPROCESS.out.multiqc_files.collect())
}

if (ch_host_reference || ch_bowtie2_db) {
HOST_REMOVAL (
clean_reads,
ch_host_reference,
ch_bowtie2_db
)

HOST_REMOVAL.out.unaligned_reads
.set { clean_reads }
if (!params.skip_host_removal) {
if (ch_host_reference || ch_bowtie2_db) {
HOST_REMOVAL (
clean_reads,
ch_host_reference,
ch_bowtie2_db
)

HOST_REMOVAL.out.unaligned_reads
.set { clean_reads }
}
}
if (params.assembly_based) {
ASSEMBLY (
Expand Down

0 comments on commit bcc1e37

Please sign in to comment.