Skip to content

Conversation

@zhliUU
Copy link

@zhliUU zhliUU commented Oct 29, 2025

Priorcons: integrate_consensus module – generates high-quality viral consensus sequences by integrating a mapping consensus with ABACAS consensus sequences using empirically built evolutionary priors. The integration fills missing or low-quality regions to increase genome coverage.

Detailed description:

This module wraps the PriorCons build-priors.py script https://github.com/GERMAN00VP/PriorCons/blob/c5e40c86fe88e617637e897cc92bd2540bc60649/priorcons/build_priors.py, it takes a fastq-aln file, name of the fastq header, and output a .parquet file.

Notes / limitations:

  • The module cannot yet use containers because the PriorCons package was recently submitted to Bioconda, and the corresponding Biocontainer image is not yet available. Users must rely on the Conda environment (environment.yml) for now.

PR checklist

  • Ensure that the test works with either Docker / Singularity. Conda CI tests can be quite flaky:
    • For modules:
      • nf-core modules test priorcons/build_priors --profile docker
      • nf-core modules test priorcons/build_priors --profile singularity
      • nf-core modules test priorcons/build_priors --profile conda

Zhiwei Li and others added 12 commits October 28, 2025 15:03
This module builds empirical priors from alignment data for the priorcons tool.

Key features:
- Takes alignment file (.aln) and reference sequence ID as inputs
- Outputs priors in Parquet format
- Supports configurable window size and overlap via task.ext.args
- Follows nf-core conventions: only input/output files as CLI params

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
- Add nf-test configuration with RSV test data from GitHub
- Generate test snapshots with MD5 validation for output verification
- Fix command syntax from buildpriors to build-priors
- Remove unnecessary nextflow.config from tests folder
- Tests validate both regular execution and stub mode

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
- Rename tests from "rsv - fasta alignment" to "build_priors_testfiles"
- Update snapshots with new test names
- Remove obsolete snapshot entries

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@zhliUU zhliUU changed the title Prior cons buildpriors Prior cons buildpriors [DRAFT] Oct 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant