Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
165 commits
Select commit Hold shift + click to select a range
f85d7b0
Migrate to nf-core BUSCO module (WIP)
dialvarezs Dec 12, 2024
25b72f1
Several busco-related fixes
dialvarezs Dec 12, 2024
db88a3c
More fixes
dialvarezs Dec 12, 2024
091a54a
Fixes in combine_tables script
dialvarezs Dec 12, 2024
4a22358
Add more cpus to busco, and fix comparison in combine_tables
dialvarezs Dec 12, 2024
bd22078
Exclude failed BUSCO bins from GTDB-Tk, update changelog
dialvarezs Dec 12, 2024
9512e95
Save busco downloaded db
dialvarezs Dec 12, 2024
9cc1d74
Remove 'BUSCO_SAVE_DOWNLOAD' from conf/modules
dialvarezs Dec 12, 2024
46d19b1
Merge remote-tracking branch 'upstream/dev' into dev-busco
dialvarezs Dec 15, 2024
edf4192
Merge cleanup and fixes
dialvarezs Dec 15, 2024
6f200ef
Define busco_lineage
dialvarezs Dec 15, 2024
9702a87
Updade nf-core busco module
dialvarezs Dec 15, 2024
abc1760
Remove unneded config
dialvarezs Dec 15, 2024
a44eb56
Fix busco channels and namespace in summary script
dialvarezs Dec 16, 2024
37dbeed
Merge remote-tracking branch 'origin/dev' into dev-busco
dialvarezs Jan 2, 2025
53dc7d3
Merge remote-tracking branch 'upstream/dev' into dev-busco
dialvarezs Jan 2, 2025
eed82db
Replace local combine_tsv module by nf-core csvtk/concat
dialvarezs Jan 2, 2025
299ff59
Fix changelog
dialvarezs Jan 2, 2025
89c7455
Update nf-core checkm2/databasedownload
dialvarezs Jan 2, 2025
c1d0552
Fix tiara
dialvarezs Jan 2, 2025
0b81462
Linting fixes
dialvarezs Jan 2, 2025
f93e007
Add ids to channel used by CONCAT_BINQC_TSV
dialvarezs Jan 2, 2025
07905a8
Update csvtk/concat module
dialvarezs Jan 8, 2025
1671aca
Fix gtdb usage of qc summary
dialvarezs Jan 8, 2025
3d4ba8b
Update tests to bacteria odb12
dialvarezs Jan 8, 2025
d60ae40
Last fixes to get gtdb and bin summary working
dialvarezs Jan 8, 2025
135e703
Fix comment
dialvarezs Jan 8, 2025
44306da
busco_clean deprecation cleanup
dialvarezs Jan 8, 2025
f71249b
Minor busco tweaks
dialvarezs Jan 8, 2025
9beb403
Merge branch 'dev', remote-tracking branch 'origin' into dev-busco
dialvarezs Feb 10, 2025
515dee9
Address some comments
dialvarezs Feb 10, 2025
a740b8f
Revert BUSCO_UNTAR input
dialvarezs Feb 10, 2025
933673f
Update BUSCO module
dialvarezs Mar 2, 2025
c16a4b9
Re-add busco_clean
dialvarezs Mar 3, 2025
bcbd12c
Update untar module
dialvarezs Mar 6, 2025
3cbde4c
Patch untar to include basedir
dialvarezs Mar 6, 2025
48270a3
Fix patch
dialvarezs Mar 6, 2025
c430eb9
Fix busco db directory creation when providing a lineage tarball
dialvarezs Mar 6, 2025
95622ca
Update patch
dialvarezs Mar 6, 2025
1634222
Formatting
dialvarezs Mar 6, 2025
b5373a9
Update BUSCO module
dialvarezs Mar 12, 2025
76b7b91
Update BUSCO output and add log publishing
dialvarezs Mar 13, 2025
7879a6f
Merge remote-tracking branch 'upstream/dev' into dev-busco
dialvarezs Mar 13, 2025
54223fd
Fix changelog
dialvarezs Mar 13, 2025
374a359
Set `busco_clean` to false
dialvarezs Mar 13, 2025
8196894
Merge remote-tracking branch 'upstream/dev' into dev-busco
dialvarezs Mar 14, 2025
57e9a4c
First pass (missing docs) and hitting a bin summary bug I need to check
jfy133 Apr 2, 2025
53c66b1
Drop debugging dump and remove the length value from meta
jfy133 Apr 2, 2025
57161ad
Add docs and changelog
jfy133 Apr 2, 2025
b9a2030
Post release version bump
jfy133 Apr 4, 2025
f5eab69
[automated] Fix code linting
nf-core-bot Apr 4, 2025
950442c
Merge pull request #786 from nf-core/post-release-bump
jfy133 Apr 4, 2025
ecdd2a8
Use correct version suffix
jfy133 Apr 4, 2025
24b91ac
[automated] Fix code linting
nf-core-bot Apr 4, 2025
3237804
Merge pull request #787 from nf-core/use-correct-suffix
jfy133 Apr 4, 2025
ec91dfc
Replace test_nothing with test_mininmal for consistency with other pi…
jfy133 Apr 4, 2025
0334150
Only check max if set otherwise only min
jfy133 Apr 4, 2025
09e6147
Merge remote-tracking branch 'upstream/dev' into dev-busco
dialvarezs Apr 5, 2025
7b24041
Remove debugging statemetns
jfy133 Apr 8, 2025
2b52feb
Add filtering to a test
jfy133 Apr 8, 2025
48a4d6b
Add some guidance documentation
jfy133 Apr 8, 2025
2b9203d
Apply suggestions from code review
jfy133 Apr 8, 2025
cf53a4c
Merge branch 'dev' into bin-size-filtering
jfy133 Apr 8, 2025
a3bff2a
Add changelog, add input validation check
jfy133 Apr 8, 2025
fcbdf0f
Apply suggestions from code review
jfy133 Apr 8, 2025
99c4ebf
Use more robust method of database loading for GTDBTK
jfy133 Apr 8, 2025
9d6139f
More efficient string to integer conversion
jfy133 Apr 8, 2025
2698cf7
Merge branch 'bin-size-filtering' of github.com:nf-core/mag into bin-…
jfy133 Apr 8, 2025
ef45bfb
Update subworkflows/local/utils_nfcore_mag_pipeline/main.nf
jfy133 Apr 8, 2025
96af33b
Merge pull request #784 from nf-core/bin-size-filtering
jfy133 Apr 9, 2025
cd9dd7e
Remove unnecessary file listing code for GTDBTK db input
jfy133 Apr 9, 2025
f14664e
Merge pull request #788 from nf-core/udpate-gtdbtk
jfy133 Apr 9, 2025
c66c885
Improve bowtie2 docs
jfy133 Apr 9, 2025
afca988
Merge branch 'dev' of github.com:nf-core/mag into dev
jfy133 Apr 9, 2025
e9980af
Add changelgo
jfy133 Apr 9, 2025
e7613a9
Merge remote-tracking branch 'upstream/dev' into dev-busco
dialvarezs Apr 14, 2025
b64c7d0
Address review comments, use busco db from test data
dialvarezs Apr 14, 2025
f5cd8d8
Fix changelog
dialvarezs Apr 15, 2025
44359ba
Change database behaviour to better support directory input for BUSCO
jfy133 Apr 15, 2025
aad584e
Fix error check condition and add lineage specification to all configs
jfy133 Apr 15, 2025
e5fd019
Update nextflow_schema.json
jfy133 Apr 15, 2025
2160195
Ensure --busco_db checks only execute when provided
jfy133 Apr 15, 2025
2896316
Add BUSCO usage docs
dialvarezs Apr 15, 2025
0502456
Update docs/output.md
dialvarezs Apr 15, 2025
5e3b774
Accept changes from review
dialvarezs Apr 16, 2025
897290b
Updated nf-core module gtdbtk/classifywf.
muniheart Apr 18, 2025
6c7c6fc
Added: Added documentation on usage of SquashFS image as GTDB-Tk data…
muniheart Apr 20, 2025
ea21904
Enable BUSCO offline mode if busco_db is provided, and improve usage …
dialvarezs Apr 25, 2025
132a8a8
Simplify and rephrase
jfy133 Apr 25, 2025
6403aa0
[automated] Fix code linting
nf-core-bot Apr 25, 2025
f6c5c10
Update docs/usage.md
jfy133 Apr 25, 2025
73559d6
Update docs/usage.md
jfy133 Apr 25, 2025
d0790e0
Apply suggestions from code review
jfy133 Apr 28, 2025
b950db3
[automated] Fix code linting
nf-core-bot Apr 28, 2025
f4ca57c
Update CHANGELOG.md
jfy133 Apr 28, 2025
2fcfb81
Merge pull request #793 from muniheart/dev
jfy133 Apr 28, 2025
f12f79b
Update CHANGELOG.md
jfy133 Apr 28, 2025
6b04b2e
Update CHANGELOG.md
jfy133 Apr 28, 2025
fd0f79c
Merge pull request #793 from muniheart/dev
jfy133 Apr 28, 2025
2722b6a
Merge remote-tracking branch 'upstream/dev' into dev-busco
dialvarezs Apr 29, 2025
7182273
Remove busco_auto_lineage_prok and improve docs
dialvarezs Apr 29, 2025
5cafedb
Revert unwanted change when publishing QUAST results
dialvarezs Apr 29, 2025
1c7fde4
Remove --busco_db_lineage condition (by default it's not null)
dialvarezs Apr 29, 2025
04a09cf
Address review comments
dialvarezs Apr 29, 2025
b15401f
Rollback nf-schema version to allow NXF edge to complete
jfy133 Apr 29, 2025
c0288d1
Update nextflow.config
jfy133 Apr 29, 2025
9dbbe81
Update changelog (CI trigger)
dialvarezs Apr 29, 2025
b9b6874
Add Adam and Diego as active maintainers, add codeowners file, fix Ca…
jfy133 Apr 30, 2025
48e8fd8
Update .github/CODEOWNERS
jfy133 Apr 30, 2025
038e083
Update nextflow.config
jfy133 Apr 30, 2025
d85e8b4
Merge pull request #794 from nf-core/add-codeowners
jfy133 Apr 30, 2025
a4482e5
Template update for nf-core/tools version 3.2.1
nf-core-bot Apr 30, 2025
a46b9d6
Merge branch 'dev' into nf-core-template-merge-3.2.1
jfy133 May 9, 2025
cb264bb
Bump minimum version of NXF to allow use with latest nf-schema version
jfy133 May 9, 2025
25b1eb0
Merge pull request #795 from nf-core/nf-core-template-merge-3.2.1
jfy133 May 9, 2025
6cdcc95
Merge remote-tracking branch 'upstream/dev' into dev-busco
dialvarezs May 9, 2025
bb73293
Merge branch 'dev' into dev-busco
jfy133 May 9, 2025
57e19e3
Merge branch 'dev-busco' of github.com:dialvarezs/mag into dev-busco
dialvarezs May 9, 2025
2ed7bee
Merge pull request #730 from dialvarezs/dev-busco
dialvarezs May 9, 2025
8ff6cc7
Fix nf-schema version
jfy133 May 9, 2025
f98253b
Fix shcema check form etaeuk db
jfy133 May 9, 2025
e647b5b
Merge pull request #797 from nf-core/fix-schema
jfy133 May 9, 2025
d0a1c66
Merge branch 'dev' into metauk-confusion
jfy133 May 10, 2025
3f95361
Merge pull request #798 from nf-core/metauk-confusion
jfy133 May 10, 2025
305dfca
Template update for nf-core/tools version 3.2.0
jfy133 May 12, 2025
1bbbdad
Template update for nf-core/tools version 3.2.1
jfy133 May 12, 2025
ce02acb
Merge branch 'TEMPLATE' into default-branch-change
jfy133 May 12, 2025
f40a5ec
Last changes
jfy133 May 12, 2025
77e9a75
Left over references to master
jfy133 May 12, 2025
f07f673
Fix linting (although seems to be a possible template bug)
jfy133 May 12, 2025
312da5f
Update CHANGELOG.md
jfy133 May 12, 2025
b6f01ed
Satisfy linting in PR checklist, even if incorrect
jfy133 May 12, 2025
d9f591e
Attempt to satisfy linting
jfy133 May 12, 2025
c7ae3f3
Merge pull request #801 from nf-core/update-changelog-metaeuk
jfy133 May 12, 2025
8c6dca6
Merge pull request #800 from nf-core/default-branch-change
jfy133 May 12, 2025
67ae36b
Update base.config
jfy133 May 12, 2025
ee0c4b8
Update CHANGELOG.md
jfy133 May 12, 2025
53caa54
Update CHANGELOG.md
jfy133 May 12, 2025
6f62f64
Merge pull request #802 from nf-core/bump-checkm-memory
jfy133 May 13, 2025
a5ad0d4
Update FASTQC module to fix memory definition issue
jfy133 May 14, 2025
7dd5938
Update CHANGELOG
jfy133 May 14, 2025
6f580c9
Update CHANGELOG.md
jfy133 May 14, 2025
91d77eb
Fix typo
jfy133 May 14, 2025
49bdf1b
Merge branch 'update-fastqc' of github.com:nf-core/mag into update-fa…
jfy133 May 14, 2025
984124e
Add support for FASTP polyg trimming
jfy133 May 14, 2025
53cdfec
Update CHAGNELOG
jfy133 May 14, 2025
04b6e30
Split previous BUSCO to make clearer of major change
jfy133 May 14, 2025
ca9c713
Merge pull request #804 from nf-core/update-fastqc
jfy133 May 14, 2025
2dcf613
Merge branch 'dev' into add-ployg-trimming
jfy133 May 14, 2025
2efd499
Update CHANGELOG.md
jfy133 May 14, 2025
62f85f8
[automated] Fix code linting
nf-core-bot May 14, 2025
fafe7fd
Merge pull request #805 from nf-core/add-ployg-trimming
jfy133 May 14, 2025
b8e055d
Bump version using nf-core/tools
jfy133 May 14, 2025
2ed16ce
Bump version in all diagrams
jfy133 May 14, 2025
3e48824
[automated] Fix code linting
nf-core-bot May 14, 2025
b96ce97
Use latest 24.10 NXF patch release as minimum verison
jfy133 May 14, 2025
977d1ae
[automated] Fix code linting
nf-core-bot May 14, 2025
68bf850
Bump minimum nxf version in ci too
jfy133 May 14, 2025
11f99b1
Bump minimum version of Nextflow get around conda --mkdir error
jfy133 May 15, 2025
c78ee08
Update busco module
dialvarezs May 16, 2025
e67e0ac
Merge pull request #808 from dialvarezs/update-busco
jfy133 May 16, 2025
a942768
Add changelog pending updates
dialvarezs May 21, 2025
eb78728
Merge pull request #809 from dialvarezs/update-changelog
dialvarezs May 21, 2025
6058f85
Update docs/usage.md
jfy133 May 22, 2025
81d9ff5
Apply suggestions from code review
jfy133 May 22, 2025
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
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @jfy133 @d4straub @prototaxites @muabnezor @dialvarezs
41 changes: 10 additions & 31 deletions .github/workflows/awsfulltest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,57 +4,36 @@ name: nf-core AWS full size tests
# It runs the -profile 'test_full' on AWS batch

on:
pull_request:
branches:
- main
- master
workflow_dispatch:
pull_request_review:
types: [submitted]
release:
types: [published]

jobs:
run-platform:
name: Run AWS full tests
# run only if the PR is approved by at least 2 reviewers and against the master branch or manually triggered
if: github.repository == 'nf-core/mag' && github.event.review.state == 'approved' && github.event.pull_request.base.ref == 'master' || github.event_name == 'workflow_dispatch'
# run only if the PR is approved by at least 2 reviewers and against the master/main branch or manually triggered
if: github.repository == 'nf-core/mag' && github.event.review.state == 'approved' && (github.event.pull_request.base.ref == 'master' || github.event.pull_request.base.ref == 'main') || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
steps:
- name: Get PR reviews
uses: octokit/request-action@v2.x
if: github.event_name != 'workflow_dispatch'
id: check_approvals
continue-on-error: true
with:
route: GET /repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/reviews?per_page=100
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Check for approvals
if: ${{ failure() && github.event_name != 'workflow_dispatch' }}
run: |
echo "No review approvals found. At least 2 approvals are required to run this action automatically."
exit 1

- name: Check for enough approvals (>=2)
id: test_variables
if: github.event_name != 'workflow_dispatch'
- name: Set revision variable
id: revision
run: |
JSON_RESPONSE='${{ steps.check_approvals.outputs.data }}'
CURRENT_APPROVALS_COUNT=$(echo $JSON_RESPONSE | jq -c '[.[] | select(.state | contains("APPROVED")) ] | length')
test $CURRENT_APPROVALS_COUNT -ge 2 || exit 1 # At least 2 approvals are required
echo "revision=${{ (github.event_name == 'workflow_dispatch' || github.event_name == 'release') && github.sha || 'dev' }}" >> "$GITHUB_OUTPUT"

- name: Launch workflow via Seqera Platform
uses: seqeralabs/action-tower-launch@v2
with:
workspace_id: ${{ secrets.TOWER_WORKSPACE_ID }}
access_token: ${{ secrets.TOWER_ACCESS_TOKEN }}
compute_env: ${{ secrets.TOWER_COMPUTE_ENV }}
revision: ${{ github.sha }}
workdir: s3://${{ secrets.AWS_S3_BUCKET }}/work/mag/work-${{ github.sha }}
revision: ${{ steps.revision.outputs.revision }}
workdir: s3://${{ secrets.AWS_S3_BUCKET }}/work/mag/work-${{ steps.revision.outputs.revision }}
parameters: |
{
"hook_url": "${{ secrets.MEGATESTS_ALERTS_SLACK_HOOK_URL }}",
"outdir": "s3://${{ secrets.AWS_S3_BUCKET }}/mag/results-${{ github.sha }}"
"outdir": "s3://${{ secrets.AWS_S3_BUCKET }}/mag/results-${{ steps.revision.outputs.revision }}"
}
profiles: test_full

Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
strategy:
matrix:
NXF_VER:
- "24.04.2"
- "25.04.2"
- "latest-everything"
profile:
- "conda"
Expand All @@ -36,7 +36,7 @@ jobs:
test_name:
- "test"
isMaster:
- ${{ github.base_ref == 'master' }}
- ${{ github.base_ref == 'main' }}
# Exclude conda and singularity on dev
exclude:
- isMaster: false
Expand Down Expand Up @@ -88,6 +88,7 @@ jobs:
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1

- name: "Run pipeline with test data ${{ matrix.NXF_VER }} | ${{ matrix.test_name }} | ${{ matrix.profile }}"
continue-on-error: ${{ matrix.NXF_VER == 'latest-everything' }}
run: |
nextflow run ${GITHUB_WORKSPACE} -profile ${{ matrix.test_name }},${{ matrix.profile }} --outdir ./results

Expand Down
4 changes: 2 additions & 2 deletions .nf-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ lint:
- config_defaults:
- params.phix_reference
- params.lambda_reference
nf_core_version: 3.2.0
nf_core_version: 3.2.1
repository_type: pipeline
template:
author: "Hadrien Gourlé, Daniel Straub, Sabrina Krakau, James A. Fellows Yates,
Expand All @@ -16,4 +16,4 @@ template:
name: mag
org: nf-core
outdir: .
version: 3.4.0
version: 4.0.0
37 changes: 37 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,42 @@
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).

## v4.0.0 - [2025-05-22]

### `Added`

- [#730](https://github.com/nf-core/mag/pull/730) - Added `--busco_db_lineage` to allow specifying a specific lineage for BUSCO database (added by @jfy133, @dialvarezs)
- [#730](https://github.com/nf-core/mag/pull/730) - Added a new documentation section on database setup (by @jfy133, @dialvarezs)
- [#784](https://github.com/nf-core/mag/pull/784) - Added `--bin_min_size` and `--bin_max_size` parameters to filter out bins based on size (requested by @maxibor, @alexhbnr, added by @jfy133, @prototaxites)
- [#793](https://github.com/nf-core/mag/pull/793) - Document use of a SquashFS image with `--gtdb_db`, useful for limited inode infrastructure (by @muniheart)
- [#805](https://github.com/nf-core/mag/pull/793) - Add support for fastp's `--trim_poly_g` option (by @jfy133)

### `Changed`

- [#730](https://github.com/nf-core/mag/pull/730) - Migrate from local BUSCO module to nf-core one, updating version (by @dialvarezs)
- [#730](https://github.com/nf-core/mag/pull/730) - Use BUSCO database from nf-core test datasets (by @dialvarezs)
- [#788](https://github.com/nf-core/mag/pull/788) - Tweak method of loading GTDB database in GTDBTK_CLASSIFYWF for more stability (reported by @alexhbnr, fix by @jfy133)
- [#800](https://github.com/nf-core/mag/pull/800) - Default branch is now set to `main` (by @jfy133 and @mirpedrol)
- [#801](https://github.com/nf-core/mag/pull/800) - Increase CheckM memory requests to match [recommended requirements](https://github.com/nf-core/mag/pull/800) (by @jfy133)

### `Fixed`

- [#789](https://github.com/nf-core/mag/pull/789) - Improve `--bowtie2_mode` description to clarify default settings (reported by @IceGreb, fix by @jfy133)
- [#798](https://github.com/nf-core/mag/pull/798) - Fix overly strict database validation for `--metauk_db` and improve documentation (reported by @ruqse, fix by @jfy133)
- [#804](https://github.com/nf-core/mag/pull/804) - Fix broken memory specification for FASTQC (reported by @jmichaelegana, fix by @awgymer & @jfy133)

### `Dependencies`

| Tool | Previous version | New version |
| -------- | ---------------- | ----------- |
| BUSCO | 5.4.3 | 5.8.3 |
| csvtk | | 0.31.0 |
| nextflow | 24.04.2 | 25.04.2 |

### `Deprecated`

- [#730](https://github.com/nf-core/mag/pull/730) - Remove `--busco_auto_lineage_prok` due to update and simplified usage of BUSCO (added by @jfy133, @dialvarezs)

## 3.4.0 [2025-04-04]

### `Added`
Expand All @@ -11,6 +47,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- [#745](https://github.com/nf-core/mag/pull/745) - Added `trimmomatic` as an additional pre-processing tool (by @Pranjal-Bioinfo, @jfy133, @GallVp & @sateeshperi).
- [#745](https://github.com/nf-core/mag/pull/745) - Added parameters for `concoct/cut_up_fasta.py` including `bin_concoct_chunksize`, `bin_concoct_overlap` and `bin_concoct_donotconcatlast` (by @Pranjal-Bioinfo, @jfy133, @GallVp & @sateeshperi).
- [#777](https://github.com/nf-core/mag/pull/777) - Improved input validation through additional JSON keywords and error messages (by @agusinac)
- [#784](https://github.com/nf-core/mag/pull/784) - Add ability to filter out bins based on bin size for downstream using `--bin_min_size`, `--bin_max_size` (reported by @maxibor & @alexhbnr, fix by @jfy133)

### `Changed`

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[![nf-test](https://img.shields.io/badge/unit_tests-nf--test-337ab7.svg)](https://www.nf-test.com)
[![Cite Publication](https://img.shields.io/badge/Cite%20Us!-Cite%20Publication-orange)](https://doi.org/10.1093/nargab/lqac007)

[![Nextflow](https://img.shields.io/badge/nextflow%20DSL2-%E2%89%A524.04.2-23aa62.svg)](https://www.nextflow.io/)
[![Nextflow](https://img.shields.io/badge/nextflow%20DSL2-%E2%89%A525.04.2-23aa62.svg)](https://www.nextflow.io/)
[![run with conda](http://img.shields.io/badge/run%20with-conda-3EB049?labelColor=000000&logo=anaconda)](https://docs.conda.io/en/latest/)
[![run with docker](https://img.shields.io/badge/run%20with-docker-0db7ed?labelColor=000000&logo=docker)](https://www.docker.com/)
[![run with singularity](https://img.shields.io/badge/run%20with-singularity-1d355c.svg?labelColor=000000)](https://sylabs.io/docs/)
Expand Down
4 changes: 2 additions & 2 deletions assets/multiqc_config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
report_comment: >
This report has been generated by the <a href="https://github.com/nf-core/mag/releases/tag/3.4.0"
This report has been generated by the <a href="https://github.com/nf-core/mag/releases/tag/4.0.0"
target="_blank">nf-core/mag</a> analysis pipeline. For information about how to
interpret these results, please see the <a href="https://nf-co.re/mag/3.4.0/docs/output"
interpret these results, please see the <a href="https://nf-co.re/mag/4.0.0/docs/output"
target="_blank">documentation</a>.
report_section_order:
"nf-core-mag-methods-description":
Expand Down
2 changes: 1 addition & 1 deletion assets/schema_assembly_input.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/nf-core/mag/master/assets/schema_input.json",
"$id": "https://raw.githubusercontent.com/nf-core/mag/main/assets/schema_input.json",
"title": "nf-core/mag pipeline - params.input schema",
"description": "Schema for the file provided with params.input",
"type": "array",
Expand Down
2 changes: 1 addition & 1 deletion assets/schema_input.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/nf-core/mag/master/assets/schema_input.json",
"$id": "https://raw.githubusercontent.com/nf-core/mag/main/assets/schema_input.json",
"title": "nf-core/mag pipeline - params.input schema",
"description": "Schema for the file provided with params.input",
"type": "array",
Expand Down
9 changes: 7 additions & 2 deletions bin/combine_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import argparse
import sys
import warnings

import pandas as pd

Expand Down Expand Up @@ -110,10 +111,14 @@ def main(args=None):

if args.binqc_summary and args.binqc_tool == "busco":
busco_results = pd.read_csv(args.binqc_summary, sep="\t")
if not bins.equals(busco_results["GenomeBin"].sort_values().reset_index(drop=True)):
busco_bins = set(busco_results["Input_file"])

if set(bins) != busco_bins and len(busco_bins.intersection(set(bins))) > 0:
warnings.warn("Bins in BUSCO summary do not match bins in bin depths summary")
elif len(busco_bins.intersection(set(bins))) == 0:
sys.exit("Bins in BUSCO summary do not match bins in bin depths summary!")
results = pd.merge(
results, busco_results, left_on="bin", right_on="GenomeBin", how="outer"
results, busco_results, left_on="bin", right_on="Input_file", how="outer"
) # assuming depths for all bins are given

if args.binqc_summary and args.binqc_tool == "checkm":
Expand Down
166 changes: 0 additions & 166 deletions bin/run_busco.sh

This file was deleted.

Loading
Loading