Skip to content

Sylvan v2.1.0 — GeneWise best-hit, gmap/gmapl, container hook

Latest

Choose a tag to compare

@wyim-pgl wyim-pgl released this 09 Jul 10:06
· 369 commits to main since this release

Matching container (lab-shared, world-readable):

/data/gpfs/assoc/pgl/singularity/Sylvan/Sylvan_20260708b.sif
sha256 6577cbc0f658df0f4d0894e25c77a03a75e097933254e8e5e3e04f94cee6d9c3
def    Sylvan_20260708b.def  (identical to singularity/Sylvan.def on this tag)

bin/ is bind-mounted into the container, so the pipeline fixes below take
effect from a git pull alone. Only the container fixes need the new image.

Pipeline fixes (no rebuild needed)

  • gmapExon picks gmap vs gmapl by genome size. It was hardcoded to
    gmapl, the build for genomes ≥ 2^32 bp, which refuses anything smaller —
    so the rule could never succeed on a 289 Mb genome. A blanket swap to gmap
    would break the 4.9 Gb genomes that need gmapl, so the binary is now chosen
    from the GMAP index's own DB.chromosome.
  • readFasta keys IDs on the first whitespace-delimited token. Splitting on
    a literal space mis-keyed tab-delimited protein headers (GWH: 22.5% of one
    input set), crashing miniprot2genewise with KeyError.
  • miniprot2Genewise keeps miniprot's best hit per protein. The last mRNA
    line used to win, so every multi-hit protein was handed to GeneWise at its
    worst locus — 15.2% of proteins in one run, 100% of them non-Rank-1,
    sometimes on a different chromosome. Silent quality loss, not a crash.
  • Every invalid regex escape in bin/ raw-stringed; all 23 bin/*.py compile
    clean with SyntaxWarning raised as an error.

Container fixes (require Sylvan_20260708b.sif)

  • %environment no longer forks micromamba shell hook on every start.
    Apptainer evaluates %environment with its own interpreter and kills any
    command substitution past 5 s; under heavy GPFS I/O that aborted container
    startup and killed jobs before they emitted a byte. %post now pre-generates
    and validates /opt/mamba/etc/mamba_hook.sh, and %environment dot-sources
    it, testing -s (an empty file is readable, and would have skipped the
    fallback).
  • perl-uri added to the genepred env, fixing TransDecoder.LongOrfs
    dying at Can't locate URI/Escape.pm.

Upgrading an existing run

See docs/HANDOFF_2026-07-08.md. A run that already produced
results/GETA/homolog/genewise.gff used the worse loci; bin/rerun_genewise.sh
replays GeneWise safely (dry-run by default, backs up, deletes nothing). Do it
before the EVM consensus step, or that work is thrown away too.