v2.3.0 - #4
Merged
Merged
Conversation
…qc more interpretable
Adds a README subsection explaining how to build a --literature-csv lookup table for pathogens other than SARS-CoV-2, covering the required gene/mutation columns, gene-name matching against the supplied GFF3 annotation, and pointers to the bundled mock template.
Bacterial references commonly reuse gene names across replicons (e.g. repA on both a chromosome and a plasmid). gene_lengths_from_gff3 and generate_gene_table previously aggregated CDS lengths and mutation counts by gene name alone, so two unrelated genes sharing a name on different contigs had their stats silently summed into one row. - gene_lengths_from_gff3 now tracks CDS lengths per (contig, gene) and only disambiguates the output label, e.g. "repA (chrom1)" vs "repA (plasmid1)", when a name actually collides across contigs. Names confined to a single contig stay unqualified. - generate_gene_table splits colliding gene names by chrom using the results table's own chrom column. - Added ambiguous_gene_names() to flag collisions directly from the annotation, closing an edge case where a colliding gene only has variants on one contig in a given run and would otherwise be dropped when merged against the gene-length scaffold. - No change in output for single-contig references or multi-segment references with uniquely-named segments (e.g. 8-segment influenza). Adds tests/test_annotation_processing.py and three new tests in tests/test_analysis.py covering the single-contig baseline, the colliding-name split, and the ambiguous-genes edge case. Starts CHANGELOG.md to track revision-cycle changes going forward.
…ence labels, primer-bed warning
…ling and duplicate-row plotting, add PAO1 validation scripts, correct README/CHANGELOG
…id numpy 2.5's Python-3.12-only PEP 695 stub syntax
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See CHANGELOG.md for full details.