How ericbretz/transrate2 works
TransRate2 evaluates de-novo transcriptome assemblies from FASTA and sequencing reads, producing assembly- and contig-level quality metrics. The main workflow parses user options, orchestrates read alignment and BAM preparation, then coordinates contig and assembly analyses and gathers results. The README also highlights reference-based evaluation and multiple aligners. Edges reflect visible orchestration or SOURCE INDEX references; several implementation details and the exact final report-writing flow are not shown in the excerpts.
Main entry points: datahub.py Analysis coordinator · contighub.py Contig coordinator · assemblyhub.py Assembly coordinator · combined.py Alignment metrics
Components 22
Workflow orchestration
- CLI entry
transrate2.py - Analysis coordinator
core/datahub.py
Read mapping
- Aligner selection
core/datahub.py - Bowtie2
core/alignments/bowtie2.py - HISAT2
core/alignments/hisat2.py - Salmon quantification
core/alignments/salmon.py - Aligner command runner
core/alignments/runner.py - BAM preparation
core/alignments/samtools.py
Contig analysis
- Contig coordinator
core/contighub.py - Alignment metrics
core/contig/combined.py - CIGAR accuracy
core/contig/seqs.py - Coverage segmentation
core/contig/sgmt.py - Contig helpers
core/contig
Assembly assessment
- Assembly coordinator
core/assemblyhub.py - FASTA and N metrics
core/assembly - Assembly scoring
core/assembly/scoreCalc.py - Reference evaluation
core/assembly/reference.py
Results and interface
- CSV processing
core/csvProcess.py - Console reporting
core/utils/printout.py - Run logging
core/utils/logging.py - DataFrame merging
core/utils/dfmerge.py
Other components
- Analyst
Connections 24
- Analyst → CLI entry: provides options
transrate2.py - CLI entry → Analysis coordinator: starts analysis
transrate2.py - Analysis coordinator → Aligner selection: selects aligner
core/datahub.py - Aligner selection → Bowtie2: dispatches to
core/datahub.py - Aligner selection → HISAT2: dispatches to
core/datahub.py - Aligner selection → Salmon quantification: dispatches to
core/datahub.py - Bowtie2 → Aligner command runner: uses runner
core/alignments/bowtie2.py - HISAT2 → Aligner command runner: uses runner
core/alignments/hisat2.py - Salmon quantification → Aligner command runner: uses runner
core/alignments/salmon.py - Analysis coordinator → BAM preparation: prepares BAM
core/datahub.py - Analysis coordinator → Contig coordinator: runs contig analysis
core/datahub.py - Contig coordinator → Alignment metrics: runs metrics
core/contighub.py - Alignment metrics → CIGAR accuracy: calculates accuracy
core/contig/combined.py - Alignment metrics → Coverage segmentation: estimates segmentation
core/contig/combined.py - Contig coordinator → Contig helpers: uses helpers
core/contighub.py - Analysis coordinator → Assembly coordinator: runs assembly analysis
core/datahub.py - Assembly coordinator → FASTA and N metrics: runs metric stages
core/assemblyhub.py - Assembly coordinator → Assembly scoring: runs scoring
core/assemblyhub.py - Analysis coordinator → Reference evaluation: uses reference evaluation
core/datahub.py - Analysis coordinator → CSV processing: uses CSV processing
core/datahub.py - Analysis coordinator → Console reporting: reports progress
core/datahub.py - Analysis coordinator → Run logging: logs subprocesses
core/datahub.py - Assembly coordinator → DataFrame merging: merges metrics
core/assemblyhub.py - Contig coordinator → DataFrame merging: merges results
core/contighub.py