Skip to main content

Module classifier

Module classifier 

Source
Expand description

Genus Classifier Module

Classifies the source genus of detected ARGs using flanking sequence analysis. Compares extracted flanking regions against a pre-built database of known gene-genus associations.

§Classification Method

  1. Extract upstream and downstream flanking sequences from contig
  2. Query the flanking database for the detected ARG
  3. Align query flanking sequences against reference flanking sequences
  4. Score genus candidates based on alignment identity and coverage
  5. Report top genus with confidence and specificity metrics

§Key Metrics

  • Confidence: Alignment identity score (0-100%)
  • Specificity: Gene-genus association strength in the database (0-100%)

Structs§

ArgPosition
ARG hit with position information for flanking extraction.
FlankingDatabase
Reader for compressed flanking database (.fdb) files.
FlankingRecord
Flanking database record from FDB file.
GenusClassifier
Minimap2-based genus classifier using flanking sequence alignment.
GenusResult

Constants§

GENUS_TIE_PCT
Genus classification result for a single ARG. Two genera are “tied” (indistinguishable) when their scores are within this many identity points. Used to decide multi-genus reporting.