How sam-sims/kractor works
Main Components
a) Input Processing Layer:
• FASTQ/FASTA file handlers (supporting .gz and .bz2 compression)
• Kraken2 output parser
• Kraken2 report parser (optional)
b) Core Processing Layer:
• Taxonomic Classification Processor
• Read Extraction Engine
• Parent/Child Taxonomy Handler
c) Output Processing Layer:
• FASTQ/FASTA Writers
• Compression Handler
• JSON Report Generator
[Input Layer] -> [Processing Layer] -> [Output Layer]
Specific Elements
a) Input Components (Left side):
• FASTQ/FASTA Input (with compression support)
• Kraken2 Output
b) Core Processing (Center):
• Read ID Matcher
• Taxonomy Processor (for parent/child relationships)
• Extraction Logic
c) Output Components (Right side):
• Parallel output channels:
• FASTQ/FASTA Output (with compression options)
• JSON Report Output
Important Flows to Highlight
• How the paired-end reads flow through the system
• Where compression/decompression occurs
• Taxonomic classification process
• Optional parent/child taxonomy processing
Additional Details
• File format support (.fastq, .fasta, .gz, .bz2)
• Compression levels (1-9)
• Optional features (parent/child taxonomy, exclusion)
Technical Specifications
A technical notes section showing:
• Built with Rust
• CLI-based interface
• Supported platforms (Linux, MacOS, Windows)
• Docker support