Repository navigation
Bug fixes
- Bulk import from a folder silently ignored subfolders, so a folder whose
plasmids all sat one level down looked empty. You picked the folder, the
collection was created with 0 plasmids and 0 failures, and nothing said why
— there was no hint anywhere that folder import reads the top level only.
Every other skip in that code path already explained itself (files too
large, records with no bases, files it couldn't stat, the 5000-entry cap);
subfolders were the one case dropped without a word. Import is still
top-level only — that part was never the bug — but now, when a subfolder
actually holds files the import would have taken, it says so, names the
subfolders, counts the files and tells you to select each one individually.
A subfolder holding nothing importable stays quiet, so an ordinary
.gitorbackup/sitting beside your records doesn't raise a false alarm.
A subfolder it couldn't read is reported as exactly that, rather than
assumed empty. Reported as issue #31 by @funnirudh — with a
self-contained repro on public data, a control case that isolated the
fault to the subfolder level rather than the file, the exact line that
dropped them, and a note that the docstring said "Walk" where the code
scanned one level. Thank you; that is about as good as a bug report gets. - A symlinked plasmid file was refused without explanation. Symlinks are
deliberately not imported (a.gbpointing at a device file used to be read
until the app ran out of memory), but the refusal was silent — so pointing a
folder full of symlinks at the importer gave you 0 plasmids and no reason.
It now tells you, and only for files that look importable, so a folder's
ordinary symlinks stay quiet. - "Imported 5, failed 1: my-plasmids" — a folder-level message could be
counted and displayed as though a file by that name had failed to import.
Folder-level notes are now kept apart from per-file failures everywhere they
surface: the toast, both agent endpoints (bulk-import-folderand
create-collectioncarry them in a newnoticesfield and leave the
failure count to real files), andscripts/bulk_import.py, which no longer
reports a non-zero exit for one.
Hardening
- Names echoed into an import message are scrubbed of control characters and
length-capped. A folder name arrives from the filesystem — possibly from an
archive someone else made — and these messages reach both a terminal toast
and the agent API's JSON. A 255-character directory name produced a
328-character message, and a name containing a raw escape sequence or a
right-to-left override reached the terminal, where it could reorder the text
so that "NOT imported" need not read as what it says. - The subfolder check is bounded (500 directories) and never follows symlinks,
so it cannot be walked out of the folder you picked, and it never opens or
parses a file. When it runs out of budget it says the check was truncated
instead of implying the rest was checked and clean.
Dependencies
- Re-verified the
biopython < 1.87cap against PyPI (declining the proposed
bump to< 1.89): 1.87 and 1.88 still publish no macOS x86_64 wheel, where
1.86 publishes seven, so lifting the cap would make a clean
pipx install splicecraftcompile Biopython from source on an Intel Mac.
The measurement now sits beside the pin so the next bump is a one-command
decision.
Thanks
This release is one person's find, and a good moment to thank everyone
who has ever sent this project a bug rather than working around it.
A tool that silently does the wrong thing to your DNA is worse than one
that refuses, and every name here caught a case of exactly that.
- @funnirudh — issue #31, this release: the silent subfolder skip,
reported with a repro anyone could run, a control case, the root cause
and a patch. It also turned up a second defect it hadn't set out to
find — the "N file(s) could not be read" phrasing that counted a
folder-level note as an unreadable file. Both are fixed here. - @cory-mozza — five reports (#9, #14, #15, #16, #17) covering wrong
restriction-enzyme names and recognition sites, a reading frame broken
by an intron, sequencing-run alignment failing, feature-name whitespace
mangled on import, and anF5crash in construction history. Several
of those were correctness bugs in the biology, which is the worst place
for them and the hardest kind to notice from the outside. - @vojtace — issue #22, adding a primer from the library to the map.
- Joshua Lerman (Angstrom Innovation) — the stray 5′/3′ overhangs on
circular-plasmid alignments, found by eye in real data.
Filing a good bug report is unpaid work, and the ones above were detailed
enough to fix from. If you sent something that isn't in this release it
isn't forgotten: the open queue is export-selected-region (#29),
In-Fusion / Gateway cloning (#18), annotation search (#6) and finishing
the argparse conversion (#11).