• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

broadinstitute / viral-classify
64%
master: 66%

Build:
Build:
LAST BUILD BRANCH: ca-kb_python
DEFAULT BRANCH: master
Repo Added 10 Sep 2019 08:19PM UTC
Files 15
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH ca-kb_python
branch: SELECT
CHANGE BRANCH
x
  • No branch selected
  • bump-core
  • ca-kb_python
  • ct-bump-viral-core-2.3.1
  • ct-code-cov-update
  • ct-ghactions-update
  • ct-github-actions
  • ct-rename-test-action
  • ct-update-readme-build-badge
  • ct-update-test-config
  • ct-update-testing
  • ct-update-viral-core-2.3.3
  • dp-bump-core
  • dp-filter
  • dp-ksummary
  • dp-patch
  • dp-taxfilt
  • dp-taxfilter
  • fn_add_perl_script
  • fn_blast
  • fn_chunk_blast_hits
  • fn_cleaned_blast
  • fn_update_docker
  • gh-readonly-queue/master/pr-60-80e46082a0cc0a1fcc8108d52290a6e9560acd22
  • master
  • v2.2.3.0
  • v2.2.4.1
  • v2.2.4.2
  • v2.2.5
  • v2.5.1.0
  • v2.5.14.0
  • v2.5.14.1
  • v2.5.16.0
  • v2.5.19.0
  • v2.5.20.0
  • v2.5.21.0

10 Jan 2026 04:08PM UTC coverage: 63.506% (+0.4%) from 63.07%
20980379058

push

github

carze
Add KMA k-mer alignment tool integration

Adds KMA (k-mer alignment) tool wrapper following existing patterns from
kraken2 and kb-python for taxonomic classification of reads.

Implementation:
- classify/kma.py: Tool wrapper class inheriting from tools.Tool
  - version(): Parse version from kma -v output
  - build(): Wrapper for kma_index to build reference databases
  - classify(): Main classification method with BAM→FASTQ conversion
  - Handles empty BAM files with early return
  - Single/paired-end detection via file size comparison
  - Proper temp file cleanup in finally blocks

- metagenomics.py: CLI command registration
  - kma: Classify reads using KMA database
  - kma_build: Build KMA database from reference FASTA
  - Input validation for mismatched argument lists
  - Uses split_args=True pattern consistent with other tools

- requirements-conda.txt: Added kma>=1.4.0 dependency

- test/unit/test_tools_kma.py: Comprehensive unit tests
  - test_build_invokes_kma_index_with_expected_arguments
  - test_classify_single_end_from_bam
  - test_classify_paired_end_from_bam
  - test_classify_returns_early_when_bam_is_empty
  - All external dependencies properly mocked

- test/input/TestKMA/ref.fasta: Test input with 3 SARS-CoV sequences

- CLAUDE.md: Updated documentation with KMA commands and module info

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>

286 of 499 branches covered (57.31%)

Branch coverage included in aggregate %.

1891 of 2929 relevant lines covered (64.56%)

0.65 hits per line

Relevant lines Covered
Build:
Build:
2929 RELEVANT LINES 1891 COVERED LINES
0.65 HITS PER LINE
Source Files on master
  • Tree
  • List 15
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
20980379058 ca-kb_python Add KMA k-mer alignment tool integration Adds KMA (k-mer alignment) tool wrapper following existing patterns from kraken2 and kb-python for taxonomic classification of reads. Implementation: - classify/kma.py: Tool wrapper class inheriting from ... push 14 Jan 2026 02:55AM UTC carze github
63.51
20940601954 v2.5.21.0 Merge pull request #60 from broadinstitute/bump-core Bump viral-core and fix CI race condition push 13 Jan 2026 01:09AM UTC web-flow github
66.46
20940590369 master Merge pull request #60 from broadinstitute/bump-core Bump viral-core and fix CI race condition push 13 Jan 2026 01:09AM UTC web-flow github
66.46
20940601925 v2.5.21.0 Merge pull request #60 from broadinstitute/bump-core Bump viral-core and fix CI race condition push 13 Jan 2026 01:07AM UTC web-flow github
66.46
20940366670 gh-readonly-queue/master/pr-60-80e46082a0cc0a1fcc8108d52290a6e9560acd22 Merge pull request #60 from broadinstitute/bump-core Bump viral-core and fix CI race condition push 13 Jan 2026 12:56AM UTC web-flow github
66.46
20940366581 gh-readonly-queue/master/pr-60-80e46082a0cc0a1fcc8108d52290a6e9560acd22 Merge pull request #60 from broadinstitute/bump-core Bump viral-core and fix CI race condition push 13 Jan 2026 12:56AM UTC web-flow github
66.46
20940097372 bump-core Fix merge queue Docker tag failures Docker image tags cannot contain forward slashes, but GitHub merge queue creates branch names like gh-readonly-queue/master/pr-128-... Add detection logic for merge queue branches and generate clean, Docker-co... Pull #60 13 Jan 2026 12:44AM UTC dpark01 github
66.46
20938024496 bump-core Fix CI race condition by passing Docker tag between jobs Pass Docker tag as job output from build_docker to test_in_docker and test_docs, ensuring downstream jobs pull the exact image that was built. This prevents failures when a release tag is ... Pull #60 12 Jan 2026 11:10PM UTC dpark01 github
66.46
20937949691 bump-core bump viral-core push 12 Jan 2026 11:07PM UTC dpark01 github
66.46
20881107329 ca-kb_python Add KMA k-mer alignment tool integration Adds KMA (k-mer alignment) tool wrapper following existing patterns from kraken2 and kb-python for taxonomic classification of reads. Implementation: - classify/kma.py: Tool wrapper class inheriting from ... push 10 Jan 2026 04:37PM UTC carze github
63.51
See All Builds (189)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc