Repository navigation
·
83 commits
to development
since this release
4.3.0 (2026-08-26)
Added
- You can now filter a table by any attribute in a GTF/GFF annotation file, not just biotype (
Filter.filter_by_gtf_attribute) — for example, keep only the genes on a particular chromosome or strand, from a particular annotation source, or of a particular biotype. The reserved attribute nameschromosome,sourceandstrandread the corresponding columns of the annotation file, while any other name is looked up as a standard attribute (such asgene_biotypeorgene_name). Works with both GTF and GFF3 files. - You can now annotate a table with a feature attribute drawn from a GTF/GFF annotation file (
Filter.annotate_from_gtf), adding a new column that labels each gene (or transcript) with, for example, its biotype, chromosome, strand, or source. Features that are absent from the annotation file are left blank. Works with both GTF and GFF3 files. - The Principal Component Analysis functions (
pca,sort_by_principal_component,split_by_principal_components) and every clustering function (split_kmeans,split_kmedoids,split_hierarchical,split_hdbscan,split_clicom) now let you choose which transform is applied to your data before it is standardized and analyzed, instead of only switching the Box-Cox power transform on and off. The new'log'option applies log2(x+1) to every value — the transform most biologists already use for count data. It is simpler than Box-Cox, applies one identical formula to every gene, and can never become numerically unstable, which makes it the transform to reach for when Box-Cox reports that it cannot handle your table (see Fixed, below). In CLICOM ensemble clustering, whose cluster-expression plots have always been drawn from plainly standardized data, a run that uses'log'on its own draws those plots from the log-transformed values instead; the plots of the other transforms — and of a CLICOM run that mixes several transforms, which has no single transform to display — are unchanged.
Changed
- The
power_transformparameter of the PCA and clustering functions is now a drop-down menu of named transforms ('box-cox','log','none') instead of a True/False switch.'box-cox'is the default and is exactly whatTruealways did, and'none'is exactly whatFalsealways did, so results are unchanged. The oldTrue/Falsevalues remain valid indefinitely and are mapped to the corresponding transforms, so scripts, saved Pipelines, and exported parameter files written by earlier versions keep running and keep producing identical results. NumPy booleans (such as thenumpy.True_a comparison on a NumPy or Polars column yields) are accepted exactly like Python'sTrue/False, as they always were. - Renamed several vague GUI button labels to clearer, action-oriented text: multi-value input buttons ("Set input") now read "Choose values", the load-screen file-picker button now reads "Choose table", the load-screen confirm button now reads "Load", and the Pipeline-creation confirm button now reads "Create Pipeline". This is a labeling change only; behavior is unchanged.
- The single main action of each GUI screen (for example "Load", "Apply", "Create Pipeline", "Run", and external tools' "Start <function>") is now visually distinguished as a filled, accented primary button — a Material Design blue fill with white label text — while preparatory/secondary buttons keep the default flat style. This is a visual change only; behavior is unchanged.
- Recolored the GUI's boolean toggle switch: the off/False state is now a neutral inactive gray instead of a red-orange that read as an error, and the on/True state is now a Material Design blue (the same accent used by the primary action button) instead of green. Because the off state is a neutral gray, the blue/gray pairing stays off the red-green confusion axis, and the switch still encodes state redundantly through knob position and a "True"/"False" text label, so it remains distinguishable without relying on color.
- Sped up GO and KEGG enrichment analysis. P-value computation is now memoized across the many ontology terms that share the same gene counts (typically over 90% of terms in a GO run), and the
elimpropagation method no longer deep-copies the full annotation set on every run. Enrichment results are unchanged; the hypergeometric test andelimpropagation benefit the most (up to ~20× and ~2-9× faster respectively on large ontologies). - Reduced the time GO enrichment spends fetching and preparing annotations: when the fetched annotations come from several databases, the per-source gene-ID translation (one UniProt round-trip per source) now runs concurrently across sources instead of one after another, and the Gene Ontology graph is downloaded in parallel with organism/gene-ID-type detection during setup rather than before it. Enrichment results are unchanged.
- KEGG enrichment now fetches its pathway-to-gene annotations with a single compact request (KEGG's
linkendpoint) instead of downloading a full flat-file record for every pathway one chunk at a time. On C. elegans this cut the annotation-fetch step from roughly 63 seconds to about 3 seconds. The gene set of every pathway that was already included is unchanged; see the Fixed section for an accompanying correction to which pathways are included. - Updated the required
polarsversion to 1.43.x (from 1.41.x). Analysis results are unchanged; this was verified against the RNAlysis test suite. - The minimum required version of
aiohttpis now 3.12 (from 3.11), whose HTTP client resolves hosts faster and lowers request latency on Python 3.12 and newer — this benefits every RNAlysis feature that talks to a web service (gene-ID translation, ortholog mapping, GO/KEGG enrichment). Analysis results are unchanged. - The minimum required version of the optional
numbapackage (used by the randomization tests) is now 0.63 (from 0.61), which keeps therandomizationextra installable alongside current NumPy versions and adds Python 3.14 support. Results are unchanged. - CLICOM ensemble clustering (
CountFilter.split_clicom) now runs faster, by computing each distinct power-transform/standardization of the data only once per run and reusing it across the many clustering setups that share it, instead of recomputing the identical transform for every setup. Clustering results are bit-for-bit identical. - CLICOM's clique-finding step (the second-slowest part of
CountFilter.split_clicom) now runs up to tens of times faster, by replacing its cubic pure-Python loop over sets with a vectorized NumPy bitset implementation. Clustering results are bit-for-bit identical. - The Principal Component Analysis functions (
pca,sort_by_principal_component, andsplit_by_principal_components) now run substantially faster on large datasets, by parallelizing the per-gene Box-Cox power transform across CPU cores. Results are unchanged up to floating-point precision (verified against the test suite's reference outputs). - Ensembl ortholog and paralog mapping now caches each gene's homology results in the daily cache, so repeating a mapping (or mapping gene sets that overlap a previous one) no longer re-requests the same data from Ensembl. This reduces load on the Ensembl REST API and speeds up repeated mappings.
- Mapping genes to orthologs through PhylomeDB now runs substantially faster. Each mapping previously loaded PhylomeDB's database-wide ID-conversion table (which spans every species, millions of rows) into two whole-table Python dictionaries on every call, even though only the queried genes are looked up; the ID-conversion and per-organism ortholog tables are now filtered to just the required identifiers before being materialized. Mapping results are unchanged.
- Mapping genes to orthologs through OrthoInspector in automatic-database mode now runs much faster. Automatic mode tries OrthoInspector's databases largest-first, but its largest database (
Eukaryota2023) currently accepts the connection and then never answers ortholog queries — so every automatic mapping wasted a full read-timeout stalling on it before falling back to the next database. That known-stalling database is now skipped during automatic selection, and the per-database species lists used to pick a database are fetched concurrently instead of one at a time. On a typical worm→briggsae mapping this cut the cold-cache time from ~45s to ~10s. Mapping results are unchanged (a database that never responds never contributed a result); if OrthoInspector restores that database, remove it from the skip-list inio.py. - RNAlysis can now read GFF3 genome-annotation files (in addition to GTF) everywhere it uses annotations — filtering and summarizing features by biotype, RPKM/TPM normalization, and summing transcript-level counts to genes. It also accepts the
.gffextension and gzip-compressed (.gz) annotation files, and detects whether a file is GTF or GFF3 from its contents rather than relying solely on the file extension. For GFF3 files, the SO-term prefixes that some sources (e.g. Ensembl) add to identifiers — such asgene:andtranscript:— are stripped so the resulting gene/transcript IDs match those in your count table. - When a GTF/GFF annotation file contains malformed lines (not the expected 9 tab-separated columns), RNAlysis now consistently skips them and emits a single warning reporting how many lines were skipped. Previously the different annotation-based features handled such lines inconsistently — some skipped them silently, while summing transcript counts to genes raised an error and aborted.
- When filtering or summarizing features by biotype from a GTF/GFF file, the biotype attribute name now automatically resolves across common naming conventions (for example Ensembl's
gene_biotypeversus GENCODE'sgene_type): the default option finds the right attribute regardless of which convention your file uses, while an explicitly chosen attribute name still takes precedence. - Gene-ID translation through UniProt (used by
map_gene_idsand by GO/KEGG enrichment analysis) now runs faster: the ID-mapping job status is polled with an adaptive backoff that starts almost immediately instead of waiting a fixed few seconds between polls, and results for UniProtKB-target mappings are retrieved in a single streaming request instead of walking the result pages one at a time. Translation results are unchanged, with one intentional improvement to reproducibility: when a gene maps to several targets that share the same highest UniProt annotation score, the winning target is now chosen deterministically (by target ID) instead of depending on the order the results happened to arrive, so translation — and any enrichment that relies on it — is now fully reproducible. Verified against the test suite, including live UniProt round-trips. - Gene-ID translation through UniProt (used by
map_gene_idsand by GO and KEGG enrichment analysis) now caches each gene's mapping in the daily cache, so re-running an analysis on the same or an overlapping set of genes only sends the genes that haven't been translated yet to UniProt, instead of re-translating the whole set. This speeds up the common workflow of repeatedly re-filtering or re-clustering and re-running enrichment on overlapping gene sets, and reduces load on the UniProt service. Translation results are unchanged. - Several
filtering.CountFilter/Filteroperations now run in a single fused Polars pass instead of scanning the table multiple times: the count-based filters (filter_low_reads,split_by_reads,filter_by_row_sum), all per-sample and per-gene normalizations,fold_change, replicate averaging (average_replicate_samples), and theopposite=Truepath of every filter. Results are bit-for-bit identical, verified by a new eager-vs-lazy equivalence test suite. - On the "New table" screen, RNAlysis now auto-detects the most likely table type from the chosen file and pre-selects it in the table-type menu (count matrix, differential expression, or fold change), instead of always defaulting to "Other table". The detection is conservative — when the content is ambiguous it falls back to "Other table" rather than guess wrong — and it only sets the default; you can still change the table type manually. This only affects the pre-selected type, not how tables are actually loaded.
- In the graphical interface, numeric input boxes for decimal (
float) parameters now adapt to the magnitude of the value: an integer-valued default such as a read-count threshold of5is shown as5(rather than5.00) and steps by whole units, while small fractional parameters keep a finer step and more decimals. This is a display-only change — the exact value you enter is still passed to the analysis unchanged, and arbitrary precise values can still be typed. - Starting RNAlysis, and importing the Python API, is now faster and no longer requires an internet connection. The lists of supported organisms and gene-ID types that fill the drop-down menus of the ortholog-mapping, paralog-finding and gene-ID translation functions were previously fetched from UniProtKB, PantherDB, Ensembl and PhylomeDB every time RNAlysis started — four live web requests on the first startup of each day, and close to a second of waiting even when they were already cached. They are now read from a list packaged with RNAlysis and refreshed with every release. On an offline or firewalled computer (a compute cluster, a locked-down lab PC) these menus are now fully populated instead of empty, and the available values are identical on every machine running the same version of RNAlysis, instead of depending on the day the services were contacted. Actual analyses — gene-ID translation, ortholog and paralog mapping, and enrichment analysis — still query these services live, exactly as before, so results are unchanged. An organism or ID type that a service added after the release can still be typed into these fields by hand, as before.
- RNAlysis now starts up faster. The heaviest third-party packages (seaborn, scikit-learn, pandas, statsmodels, matplotlib-venn, UpSetPlot, kmedoids and hdbscan) are no longer imported when you import RNAlysis — they are loaded on demand, the first time a function that actually needs them runs. Importing
rnalysis.filteringorrnalysis.enrichmentis about 12-20% faster, and every script, notebook, and parallel worker process pays the smaller cost. Analysis results are unchanged. - The randomization tests (
FoldChangeFilter.randomization_testand the randomization enrichment test) now cache their compilednumbacode on disk, so only the very first run after installing or upgrading pays the compilation cost, instead of every new Python process (including every parallel worker process) paying it again. On this machine the first randomization call in a fresh process dropped from 0.83s to 0.15s. Results are unchanged. Caching is switched off in the standalone (frozen) app, wherenumba's cache location cannot yet be verified. - The minimum required version of
scikit-learnis now 1.6.0 (from 1.5.0) — the first version that can load its submodules on demand, which is what lets RNAlysis defer importing it. - RNAlysis now resolves its settings and cache directories with the actively-maintained
platformdirspackage instead of the unmaintainedappdirs(archived, last released in 2020). On every supported operating system the directories resolve to the same locations as before, so existing settings and caches are picked up unchanged. The one exception is macOS machines where theXDG_DATA_HOME/XDG_CACHE_HOMEenvironment variables are set: thereplatformdirshonors them (appdirsdid not), so RNAlysis automatically moves its existing data folder — including your settings — to the new location the first time it runs, and starts a fresh daily web cache there. - RNAlysis no longer uses bare
assertstatements to validate your input. Every input check now raises a real exception, so validation can no longer be silently removed: previously, running Python with the-Oflag (or withPYTHONOPTIMIZEset in your environment) stripped all 341 of them, and invalid inputs flowed straight into the analysis, either failing later with a cryptic internal error or — worse — producing a wrong result without complaint. This affected the API/script workflow only; the standalone app was never affected. - The exceptions RNAlysis raises for invalid input are now typed, so scripts can tell the different failure modes apart: a wrong-type argument raises
rnalysis.exceptions.InvalidTypeError(which is also aTypeError), a bad value — out of range, not one of the legal choices, wrong shape — raisesrnalysis.exceptions.InvalidValueError(also aValueError), and a violated internal invariant (which always indicates a bug in RNAlysis) raisesrnalysis.exceptions.InternalError. All three share the common basernalysis.exceptions.RNAlysisError, and the first two additionally shareRNAlysisInputError. If your scripts catch ``AssertionError`` around *RNAlysis* calls, change them to catch ``RNAlysisInputError`` (or the built-in ``TypeError``/``ValueError``), which is what those calls now raise. Which inputs are accepted or rejected is unchanged, and every input-error message is word-for-word what it was before; internal-invariant messages additionally gain a standardized line pointing you at the issue tracker. Analysis results are unaffected.
Fixed
- Fixed a confusing crash (
ValueError: Input X contains NaN, on a table containing no missing values at all) in the Principal Component Analysis functions and in the power-transform clustering functions. The Box-Cox power transform fits a separate exponent to every gene; on a gene whose values are near-constant at a high magnitude and measured across only a handful of samples — a reporter transgene such as GFP, for example — that exponent explodes and the transform overflows. RNAlysis now detects this (and the related case of a transform that stays finite but returns absurdly large values, which used to distort the analysis without crashing) and stops with a clear message naming the offending genes, so you can either filter them out or switch to the new'log'transform, which is immune to the problem. Tables that already worked are entirely unaffected, and their results are unchanged. - Fixed a bug in the graphical interface where importing a parameter file into a function window could silently ignore a value that is not one of the listed choices: the drop-down kept displaying (and the analysis kept using) the previously-selected choice instead of switching to the imported value.
- Fixed a bug where reading gene/transcript attributes from a GTF file (used when filtering or summarizing features by biotype) with the "use version" option enabled raised an error on annotation files that have no version fields — such as GENCODE files, whose versions are embedded directly in the IDs. The version suffix is now simply omitted in that case instead of failing.
- Fixed a bug where mapping transcripts to an attribute by feature name could create a spurious, empty-named entry for a transcript that had a gene name but no transcript name; such transcripts are now correctly skipped.
- Fixed a bug where averaging replicate samples (
CountFilter.average_replicate_samples) crashed when the averaging function was set to'median'or'geometric_mean'(both selectable in the GUI), because the underlying Polars calls no longer existed in current Polars versions. Both options now work correctly, computing the row-wise median / geometric mean across each group of replicate columns. - Restored compatibility with current Polars versions in two internal code paths that relied on since-removed Polars behavior: loading a table while skipping comment lines, and parsing annotation scores during gene-ID translation.
- Fixed a bug in
CountFilter.pairplotwhere the Spearman correlation shown for the first row/column of the plot was computed against the gene-index column instead of a sample, producing an incorrect value (and, with recent NumPy versions, an error). The correlations are now always computed between the correct pair of samples. - Fixed a bug where mapping orthologs through the OrthoInspector service could hang indefinitely when one of its databases stopped responding (OrthoInspector relocated its API, and its largest database can stall). OrthoInspector requests now use a timeout, target OrthoInspector's current API host directly, and automatically fall back to the next available database.
- Fixed a bug where gene-ID translation and enrichment analyses (which rely on UniProt) could intermittently fail with an
HTTP 400error while waiting for a UniProt ID-mapping job, especially when several analyses ran at once. Both steps that query a running job — checking its status and fetching its result link — now retry such transient errors a bounded number of times with jittered backoff, instead of failing on the first one. - Fixed a bug where gene-ID translation and GO/KEGG enrichment (which rely on UniProt's asynchronous ID-mapping service) could hang indefinitely if a UniProt mapping job never became ready — for example when UniProt wedged a job under heavy load. RNAlysis now stops waiting for a single job after a bounded time, warns, and continues with a partial mapping: the genes it could not translate this run are retried on the next run rather than being cached as unmappable, and any genes that were translated are unaffected. The bound is deliberately set well above how long a legitimately slow job takes, so it never cuts short a job that would have finished, and is measured against wall-clock time so it also covers slow network requests, not just the wait between status checks. Every request this feature makes to UniProt now also has its own connection/read timeout, so a request that hangs at the network level (no response ever sent) is bounded too, instead of blocking forever before RNAlysis even gets a chance to apply the bound above. A UniProt job that fails outright (rather than merely running long) now also degrades the same way instead of crashing the analysis. As part of this fix, the per-poll message shown while waiting for a slow UniProt job was reworded from the misleading
Retrying in Ns— which read like a failed request being retried — to make clear that the request succeeded and RNAlysis is simply waiting for UniProt to finish the job, and the degradation warning now correctly distinguishes "no results" from "partial results" instead of always claiming a partial result. - Fixed a bug where closing the RNAlysis window could occasionally crash the application, because its background worker and console threads were signalled to stop but not waited for before the window was destroyed. Closing now shuts those threads down cleanly first.
- Hardened the gene-set visualization and set-operation windows against a rare crash that could occur while their preview plot was being refreshed: the previous plot is now fully detached from the window before it is scheduled for deletion, so a pending redraw can no longer target a plot that is being torn down.
- Fixed a bug where enrichment analyses (GO, KEGG, user-defined, and single-set) could crash with a confusing
not enough values to unpackerror when no results could be produced — either because the enrichment gene set ended up empty (for example when a web service temporarily mapped none of the genes to the required ID type, or when every gene was filtered out), or because the chosen statistical test could not be run (for example when the optionalxlmhglitepackage is missing for single-set analysis). Such analyses now finish gracefully with an empty result instead of crashing. - Fixed a bug where running KEGG enrichment for two different organisms on the same day could make the second analysis use the first organism's pathways. The per-organism KEGG pathway list was cached under an organism-agnostic filename, so the second organism loaded the first's cached list instead of fetching its own. The pathway-list cache is now organism-specific. (The compound/glycan caches are organism-agnostic by nature and were unaffected.)
- Fixed a bug where KEGG enrichment silently omitted every pathway whose KEGG record has no
COMPOUNDsection — including important non-metabolic pathways such as Ribosome, Spliceosome, Proteasome, RNA polymerase, and several glycan-metabolism pathways — because the flat-file parser stopped collecting genes at the (absent)COMPOUNDline and so read none. KEGG annotations are now read from KEGG'slinkendpoint, which lists all pathways that have genes, so these pathways are included: on C. elegans this recovered 36 previously-missing pathways. KEGG's global/overview maps (e.g. "Metabolic pathways", "Carbon metabolism") remain excluded, as they were before, because these ~thousand-gene superset maps are not biologically specific enrichment terms. Because this changes which pathways are tested, KEGG enrichment results — and their multiple-testing correction — may differ from previous versions. The gene sets of all pathways that were already being tested are unchanged (verified against the previous implementation on live KEGG data). - Fixed a bug where automatically detecting the organism or gene-ID type from a set of gene IDs (via Ensembl) failed with an
HTTP 400error, because the request body sent to Ensembl was double-encoded. The request is now formatted correctly. - Fixed a bug where a malformed or unreachable external service (PantherDB, UniProt, Ensembl, or PhylomeDB) could crash RNAlysis on startup while it loaded the lists of supported organisms and gene-ID types. These lookups now degrade gracefully to an empty list with a warning, and their network requests use timeouts so a stalled service can't freeze startup.
- GUI table caching now runs off the UI thread and is guaranteed to finish before a session is saved, a report is exported, or the cache is cleared. Previously the asynchronous write introduced in