- Include
seqidin every CDS key. ReplaceStart_End_Strandidentifiers with an explicit(seqid, start, end, strand)key so equal coordinates on different contigs or replicons cannot be merged. - Preserve one-to-many UniProt and UniRef mappings. Do not collapse mapping
responses with
dict(zip(...)); classify each query as unique, ambiguous, or unmapped and resolve candidates only with explicit sequence and organism evidence. - Parse PGAP inference values by structured prefix. Only actual
similar to AA sequence:RefSeq:<accession>evidence should enter the RefSeq protein mapping route; motif identifiers must remain separate evidence. - Evaluate against the full NCBI RefSeq CDS universe. The current
concordant_only=Trueexport selects CDSs recovered by every tool and can inflate downstream functional and identifier performance. Retain every reference CDS, left-join each tool, add explicit<tool>_returnedflags, and report concordant-only results only as a sensitivity analysis. - Validate merge cardinality. Require unique compound keys per source and use
validate="one_to_one"where appropriate so duplicate records cannot silently expand denominators. - Use strain-specific taxonomy and proteomes for identifier mapping. Record all candidates and the evidence used to select a target instead of taking the first returned candidate.
- Rename functional categories to describe informativeness rather than
biological correctness. Prefer
both informative,both non-informative,tool-only informative, andreference-only informative, or retain the current labels only with an explicit caveat. - Document eggNOG structural provenance. A decorated eggNOG GFF generally inherits an upstream submitted CDS set and should not be presented as an independent gene predictor without naming that source.
- Define and validate named schemas for every GFF, TSV, and mapping table; replace positional parsing and broad substring-based column deletion with explicit contracts.
- Cache external mapping responses with sorted requests, bounded retries, timeouts, release/access dates, taxon, namespace, checksums, and per-query status. Fail clearly when a mapping job is incomplete.
- Discover the project root from
pyproject.tomlrather than assuming the notebook working directory. - Organize outputs under per-analysis
tables/,plots/,intermediate/, andcache/directories. Save the exact plotted tables alongside static figures. - Record input checksums, reference assembly accessions, tool and database versions, package versions, parameters, and execution date in a manifest.
- Use stable tool ordering and shared color constants. State denominators in
figure captions, label diverging axes explicitly, replace
Ground TruthwithNCBI RefSeq benchmark reference, and avoid calling accession concordanceaccuracyunless exact sequence identity validates it.
1_gene_prediction.ipynb: compound CDS keys, eggNOG provenance, full-reference export, merge validation, and structural metric exports.2_functional_analysis.ipynb: full-reference denominators, explicit informativeness terminology, saved plot tables, and reproducible figures.3_id_matching.ipynb: structured PGAP inference parsing, ambiguity-preserving UniProt/UniRef mappings, strain-specific filtering, cache provenance, and evidence-based mapping statuses.