Skip to content

AnnZarro 0.8.0

Latest

Choose a tag to compare

@github-actions github-actions released this 27 Nov 19:12
3972920

AnnZarro 0.8.0

Added

  • Wording. The Distribution buttons say "Cell Count Plot" (not "Count Plot"), the threshold box in the Cell-Gene Plot's statistic menu is labelled "Expressed above" like the Methods pop-overs, and the two messages for Z-score mean that could not be offered now say what to do ("Z-score mean of a cell group needs this layer stored by gene (CSC).").
  • The Venn / UpSet condition picks like the Count Plot's rows. "Condition on a number" lists obs, obsm, obsp and layer in its first select; a gene signature or gene table is picked under layer with its score-method button. A cell grouping is not a number, so it is no longer listed there (use Group of a grouping), and the obs list lost the "Groupings" entry that did not work in this editor.
  • A Cell Count Plot picks gene signatures, gene tables and cell groupings under layer. The first select of X, Y, Color by and the measure's source lists only obs, obsm, obsp and layer; under layer the item list has the focused gene, Gene signatures, Gene tables and Cell groupings (the measure takes no grouping, as a group label is not a number). A signature or gene table shows its score method as an aggregation button after it; a measure of one has two buttons, the statistic at the start of the line and the score method after the source, each titled with its step. A grouping has none, and its layer select is disabled. Distribution now opens a plot whose X row reads like the same pick, on the signature's own input layer. The score method appears in the axis title when it is not the default. Earlier links open to the same plot.
  • A Cell Plot picks a Cell Grouping under layer. The first select no longer has Cell Grouping: choose layer, then the grouping in the item list under Cell groupings (last, after the gene-side sets; New grouping… ends it). A grouping has no aggregation button, and the layer select stays on its layer, disabled, with "A cell grouping reads no layer.". Above the large-plot threshold the groupings are listed greyed on x, y and z. The obs column list of a Cell Plot no longer ends with a Groupings group. Links and panel sets made before open to the same plot.
  • Try anyway for runs the server would not start by itself. A score, grouping or count refused only for its estimated time (over 10 minutes) now has a Try anyway button when the administrator allows it: the run goes through the heavy lane with its progress bar and Cancel, stops by itself after try_max_s (30 minutes by default; 0 turns tried runs off), and says so if it is stopped. A box Don't ask again for this panel skips the question for that panel until the page is reloaded; the tag Runs without asking in the panel's status strip shows it and has Ask again. Size limits are never skipped. Administrators: new limit try_max_s (see the resource limits page); one tried run per user at a time (429 try_busy).
  • Fractions are fractions, and every share says what it is. The Cell-Gene and Gene Plots' and the tables' "% expressing" is now Fraction of cells, from 0 to 1 (symbol c⁺), the same number as scanpy's dot size; a gene score's "Fraction detected" is Fraction of genes (symbol g⁺, values unchanged); % of total stays a percentage; and "Detected above" is Expressed above everywhere. Size legends and hover read 0.25, 0.342. The Cell Count Plot follows: its shares are Fraction of cells shown and Fraction within each …, from 0 to 1 (ticks, labels, hover and the CSV column Fraction read 0.25), the 100% arrangement is Filled, its measure's statistic is chosen with the same button and list as the other plots (adding Mean of expressing cells and % of total, and today's z-score becomes Mean, as z-score against all counted cells), and a gene measure over a Cell Grouping's groups follows the grouping's Expressed above. Links, sessions and panel sets made before open as they were: the old names are read as the new ones, a size, colour or height range that was stored in percent is dropped (the plot draws on its defaults), and the dots look as before.
  • The tabs of the table column choosers are named and ordered alike. A cell table: obs, obsm, obsp, layers, Gene score, Cell groupings; a gene table: var, varm, varp, layers, Cell groupings. The Cell Grouping tab of a cell table is now called Cell groupings. The tables page of the user guide describes the three kinds of tab, the add rows and their symbols, and the gene table's Cell groupings columns.
  • Table column chooser: the search field is gone from the Layers, obsp, varp, Gene score and Cell groupings tabs (they list only ticked columns and one add row), and stays on obs, obsm, var and varm. An add row keeps its choices (group, layer, aggregation, item) when the chooser is rebuilt, for example when a panel is renamed or the focus moves.
  • A Gene Table can show a group's statistic as a column. The column chooser has a new Cell groupings tab, listing every Cell Grouping, open or closed, by its title. Under each are the table's columns of that grouping, then one row to add another: pick a group (by the name shown, or its generated name; the tab's search field narrows the list), a layer and a statistic (the same list and symbols as a Gene Plot's colour), then Add column. Each gene gets the statistic over the group's cells, the same number the Gene Plot colours it with. A second statistic of the same group and layer asks the server for nothing (z-score mean is its own request, as in the Gene Plot, and is greyed out with the reason on a store that does not keep the layer by columns). The column follows the cell subset, shows "(computing)" in its header and fills in place, can be sorted and exported (the export header names the grouping), follows a rename of the grouping, and says so when its group has changed (Keep), is gone or its grouping was deleted (Remove column). A grouping built from the table can be shown in it but not filtered on.
  • Z-score mean is a statistic of the Cell-Gene Plot's Color (and Height). Each gene is scaled to mean 0 and SD 1 over all cells of the dataset (clipped at ±10), then averaged over each group's cells, so a gene row is the same number as the row of a one-gene signature on z-score mean. The colour bar is RdBu, centred on 0, unless you picked a map; a gene with no spread over the dataset has no value, and its hover says so. The server's features of a grouping request take {"kind": "gene", "transform": "zscore", "clip": 10} for this (clip null for none), and a gene with no spread has the status constant. A one-row section under it is always the set's z-score mean score, the same number and name as choosing z-score mean for that row under a Mean colour, so its other gene steps are greyed out with the reason. Size cannot show it (it is signed), and the Gene Plot's cell-group statistic offers it on a store that keeps the layer by columns (CSC), where each gene's mean and SD over all cells come from the pass that reads the group (transform: "zscore" in the genes shape); on other layouts it is listed greyed out with the reason. The two z-score choices of Scale are greyed out under it, and a link or a change of Color that holds both moves Scale to None, said once. "Mean of the gene rows, as z-scores" is now "Mean of the gene rows, z-scored across groups", so the three z-scores are told apart.
  • The Cell-Gene Plot's Mode is a dropdown (Dots, Heatmap) beside Groups, in the same size as the other selects. Heatmap still hides Size. Each change is one undo step and the choice is kept by Refresh.
  • A Gene Plot can take a statistic of a cell group for its colour or its x, y or z axis. Choose layer as the source, then the layer, pick a grouping in the item list under Cell groupings, then one of its groups in the select that follows; a button after them holds the statistic (mean, Fraction of cells, mean of expressing cells, sum or SD) as a symbol. A grouping with many groups lists them all in its select, by the names shown (a label you gave a group), and changing the grouping keeps the group of the same name. Nothing is asked until a group is chosen, switching between statistics asks for nothing, two axes on the same group and layer share one request, and editing the grouping's Expressed above asks once. A group that has changed or gone is said on the plot, with Keep and Choose another. The server gains the genes shape of POST /data/cell_groups.
  • A Gene Plot can take a statistic of a Cell Table's cells for its colour or its x, y or z axis. Pick a table under Cell tables in the item list of a layer; each gene gets one statistic over the cells that pass the table's filter, with the table's Expressed above as the threshold, and the same aggregation button as a grouping. The axis follows the table's rows: a filter change asks once and the plot keeps what it shows until the new values come; a table with no rows or one that was deleted is said over the plot.
  • A Gene Signature panel builds a named list of genes and gives every cell a score from it. It opens on every gene of the dataset, ready to tick, in a list that stays quick at any length. Search by name, with Match case and regular expression buttons; Enter ticks the gene you typed and keeps the cursor in the box; Tick all ticks every match. When a gene is focused, + CD3D (focused) adds it in one click (greyed, with the reason, when it is already in the list or not in the dataset). The Add from menu opens above every panel and brings in genes locked in a plot, or every gene of a gene table, and Undo (Ctrl+Z, Cmd+Z on a Mac) takes back each change of the list. A signature holds any number of genes: the cost estimate of its score is the only guard. How many are selected is the status banner at the bottom of the panel ("5 of 3,000 genes selected"), the same strip a plot has for "n of N cells shown", with details on how many are not selected and which selected genes the dataset lacks. Nothing in the panel moves while you tick, add or clear. A signature outlives its panel: closed, it is still listed and still usable wherever a gene table is, as a Gene Plot's table filter and as the source of a Gene Set Analysis panel, and its score is still there for plots and tables. Share links, panel sets and Back and Forward carry it as its genes and settings only, never a computed number. An administrator can switch it off with panel.gene-signature.enabled.
  • Paste or upload in the Gene Signature panel adds genes from text or a file. Paste a list with any separator (new line, comma, semicolon, tab, space, pipe, or a mix), or choose a file or drop one on the panel: a plain list, a CSV or TSV (you pick the gene column), a GMT (you pick one set) or a GRP file. A preview comes first and nothing is added before you press Add: it counts the genes that will be added, those already selected, duplicates, names matched ignoring case and names not in the dataset (listed, and copyable), and says when the names look like another species. A list of Ensembl or Entrez ids is matched through the dataset's id column (such as gene_ids, read only when needed, versions like .7 ignored), and the signature keeps the gene names; when the dataset has no such column, the preview says so and adds nothing. The file is read in your browser and is never sent to the server. Adding is one step that Undo takes back. Excel files are refused with a note to save the sheet as CSV.
  • Gene scores in Cell Plots. A Cell Plot can take its x, y, z or colour from a signature or a gene table: choose layer as the source, then the layer, and pick the set in the item list, under Gene signatures or Gene tables, open or closed (the signatures end with New signature…, which opens a Gene Signature beside the plot and uses it). A button after the list holds the aggregation as a symbol (z̄, x̄, Σ...) and opens every method, each as a symbol and a name; the row stays one line, and leaving the layer source or picking a single gene clears the set from it. A new plot starts on z-score mean over X. A combination that cannot be computed is greyed out in the other select with the reason when you point at it (% of total on a scaled layer: "Has negative values"); when one control leaves the other on such a combination, the other moves to the first that works and a line under the row says so once. Control-adjusted and % of total say that they read the whole matrix once. A score is not a hover column: the hover shows the colour's score as c, and a link that lists a score among the hover columns opens without it. Two scores can be plotted against each other, or a score against an obs column or a gene. It works in the regular plot and in large-plot mode. The score is worked out on the server, over all cells of the dataset, when a plot needs it and with no panel open, so a closed signature or one from a share link colours its plot by itself; one choice used in several places is computed once. A score that would take over a minute asks first (Compute), and one over ten minutes is refused with the reason. While a score is on its way the plot keeps what it shows, with the usual loading indicator; a score that will not come by itself (it asks first, was refused, failed, was cancelled, was deleted, or does not fit the cells shown) is stated over the plot without moving it, with the button that helps. Edits to a signature update its plots, or collect behind Update score when the new score would take 5 seconds or more. A score names its method and layer wherever it leaves the app: a two-line colour bar ("T cell score" over "z-score mean · X"), axis titles, and the header of a table's CSV. The Log colour scale says how many cells sit at or below its floor ("36 of 60 cells have a score at or below 1 and are all drawn in the lowest colour"), since a z-score is mostly negative and a log scale cannot show zero or below. A Gene Plot whose link names a gene score says "Gene scores are a cell source; not available in a Gene Plot." and the rest of the link works.
  • Gene scores in Cell Tables. A Cell Table can show a score as a column. Add it in the table's column chooser, on the new Gene score tab: under each source are the score columns the table has, then a row [layer] [aggregation] Add column with the same layer select and aggregation button a plot has, so the tab never lists every combination; add as many as you like (the tab can also make a new signature). The table appears at once with T cell score (computing) in the column, and the column fills in place when the score arrives; the table is not built again, so its sort order, page, search and scroll stay. Computing, waiting for Compute, updating, cancelled, refused, failed and deleted scores each say so in the header, the cells and a notice over the table, in the words and with the buttons a plot has, plus Remove column. You can sort by a score, filter on it (conditions and the search box) and export it as a CSV column; export waits until the score is ready. A filter on a score that is not ready holds the table's rows and says so, and a plot filtered by that table waits with it and draws no cells, whether the table is open or a closed one restored from a link; the page computes the score, then builds the table's filter. The numbers are shared with every plot that uses the score, and a column adds about 34 bytes a cell to the browser's memory on a table of a million cells.
  • Methods ▾ in the Gene Signature panel holds the settings of each score method; a plot or table chooses the method and the layer where it uses the score, from every method and every layer, and nothing has to be switched on first. The pop-over opens over the panel without moving it and closes with Escape or a click outside. It lists every method with a one-line definition and its parameters, each with a Reset: z-score mean (each gene scaled over all cells, then averaged, with a clip of ±10 by default, any number above 0, or off), mean, sum, control-adjusted (the mean minus the mean of control genes with similar detection, like scanpy's score_genes, with bins, controls per bin and seed), Fraction of genes (the share of the genes detected in a cell, 0 to 1, with the Expressed above value a gene must exceed) and % of total (the genes' share of the cell's total over all genes, in percent, as for % mitochondrial; it needs one pass over the whole matrix). A parameter holds for its method on every layer. While one is not at its default the button carries a dot and its tooltip names it ("z-score mean: not clipped; control-adjusted: seed 3"). The pop-over says which methods and layers plots and tables read, and Reset to defaults puts the parameters back, asking first only when a score a plot or table shows would change. A clip edit asks the server for nothing when no plot shows a z-score mean, and a seed edit only recomputes control-adjusted scores. A new plot or table starts on the z-score mean of X.
  • Distribution, beside Methods ▾ in the Gene Signature panel, opens a Cell Count Plot beside the panel with a histogram of the score (the z-score mean of X) over the cells shown, where the method, the layer and a split by groups can be changed and the cells with no score are counted. Each gene's figures by group are a Cell-Gene Plot of the signature, and scores per cell are exported by a Cell Table.
  • A Gene Table is a source of a gene score, like a Gene Signature. Its genes are the rows that pass its filter; everything else is shared with the signature: choose Gene score in a Cell Plot or a Cell Table and the source list shows Gene signatures and Gene tables under their own headings. Change the table's filter and the plots follow (a quick score at once, a slow one behind Update score); a filter that passes the same genes asks the server for nothing. A closed table, or one restored from a link or panel set, is built in the background first and then scored, and the plot says which step it is waiting for. Each Gene Table has Score methods ▾ (the signature's Methods pop-over, without down genes) and Distribution beside the column chooser's buttons; the table keeps the parameters in its links and panel sets, and stores nothing at the defaults.
  • Up/Down in the Gene Signature panel's list toolbar, beside Add from, scores some genes as down. Press it and every selected gene gets an ↑ Up or ↓ Down button; the score is the up genes minus the down genes. For the z-score mean and the mean, Down genes under the method in Methods ▾ chooses how they weigh: each gene weighs equally (the default: the signs of the down genes are flipped and every gene is averaged) or each side weighs equally (the mean of the up genes minus the mean of the down genes, as two scanpy score_genes calls). Control-adjusted always takes each side minus its own control genes. The Selected list can be filtered by direction and changed in bulk (Set N shown to Down), and an Add as: Up | Down control applies to Add from, the focused gene and Paste or upload (whose button reads "Add 12 as down"); a gene added again keeps its side unless you choose Change them too, and a pasted table can take a sign column (positive up, negative down) with the split previewed. Every change can be undone, the panel states the formula in force and says when a side has no usable gene, and the Selected view reads "Selected 50: 42 up, 8 down". Sum, Fraction of genes and % of total have no meaningful signed version, so they cannot be chosen while a signature has down genes (the menus say why, and a plot that uses one says so). Nothing about direction shows until Up/Down is pressed, and a gene table has no direction: every gene passing its filter is up.
  • For these scores the server gains POST /data/gene_score (the recipe in the body, an estimate before any work, a progress stream, then one float32 per cell shown; the body may be up to 16 MB) and GET /data/matrix_kind (what the numbers of a layer look like, from a sample).
  • Cell Grouping, a new panel, sorts cells into groups by one or more factors: obs columns, and numbers binned into ranges. A binned factor has a control for the method, the number of bins, a zero bin, the range and the thresholds, with a preview of the distribution, thresholds you can drag, Freeze thresholds, and a choice of edges that follow the cells shown or all cells. The groups are listed in a grid: colour, name, cells and share, with small groups marked. A factor's levels or bins and the Settings open in pop-overs, so editing never resizes the panel or moves the tiles beside it. A level is renamed in place: Enter or ✓ saves, Escape or ✕ cancels, Tab saves and moves to the next level, and a click elsewhere saves. Two factors can be shown as a cross-table. The list stays fast with 2,000 groups. Export CSV saves the groups, and Export cells saves every cell with its group as a CSV (up to 1,000,000 cells). Methods ▾ in the grouping's toolbar sets how the statistics over a group's cells are computed, for every plot on the grouping and on every layer: it lists each statistic with its definition and holds Expressed above (0 by default), the value above which a cell counts as expressing for Fraction of cells and mean of expressing cells. Each change is one step that Undo takes back, the plots on the grouping read their genes again at the new threshold, and plots still choose any statistic and layer. A Cell Table has the same Methods ▾, kept with the table in links and panel sets. A grouping is used elsewhere by name: A group is renamed in the list (double-click, ✎ or F2) with its colour beside the field, and a group's name and colour are kept under its generated name: when no group has that name any more they are listed below the list with Drop, and apply again if it returns. Reset group names (n) under Settings, and Reset names in a factor's Edit pop-over, take back the names you gave without touching colours. Tab in a name editor saves the name and opens the next one, which stays open. - a Cell Plot can colour, split (x, y, z) and hover by it, with the groups in order and in the grouping's colours, and cells in no group shown as "Not in any group". A large plot can be coloured by it too; when its codes would not fit in the browser's memory, the plot is refused before anything is requested and says so; - a Cell Table can show it as a column, on the column chooser's Cell Grouping tab, and filter on it with an Equals list; - the Cell-Gene Plot and the Cell Count Plot take their groups from it. A choice that would make a panel depend on itself is marked in every menu with the reason, and a loop made by the last edit offers Undo.
  • Cell-Gene Plot, a new panel, shows genes against groups of cells as a dot plot or a heatmap. Its groups come from a Cell Grouping or an obs column, and its genes come in sections: a gene list, or one row for a whole set. Colour and size each show a per-group statistic, such as the mean or Fraction of cells, each on its own layer; the threshold of Fraction of cells follows the grouping's Expressed above, and the box beside each measure, empty and reading "auto (grouping: 0)", overrides it for that plot alone, so the colour can be the mean of the log-normalised layer and the size the share of cells expressing in the raw counts (how a new plot starts when the dataset has both kinds of layer, whatever the groups). Every statistic and every layer is listed, whether the groups are a grouping or an obs column; a statistic a layer cannot give is greyed out with the reason, and choosing one moves the layer and says so. A one-row section uses the plot's colour and size statistic, layer and threshold, so its row compares with its genes' rows, and chooses only how the genes are combined: the mean of the gene rows (the default, on their colour bar and size legend), their sum (under Fraction of cells, Genes detected per cell, on its own scale), the mean of their z-scores, or the set's score of each cell by any of its methods, on the plot's layer, with the plot's statistic taken over the cells (under Fraction of cells, the share of cells whose score is above a threshold of its own). Choices with no honest meaning are greyed out with the reason, and a gene signature with down genes is shown as its score, never as an average that would count its down genes as up genes. Cluster orders genes within their sections, and groups either across all groups or within the first factor, with complete, average or Ward linkage; Ward switches the distance to Euclidean and offers Undo. The plot draws section brackets, colour strips for each factor with their legend, totals, dendrograms and small-group marks, and Color strips in Plot Options shows one strip per factor (the default), one Group band with each group in its own colour (the swatch colour of the group grid), or none. Cluster, Color and Plot Options open as pop-overs that leave the panel's layout as it is and close with Escape or a click outside. The panel keeps the height the layout gives it while it computes and draws, so the tiles beside it do not move; rows or groups the clustering leaves out are named in a Partly clustered tag on the status line. Cluster also holds the linkage, the distance, sorting groups by size, and the gene and group dendrograms, each shown or hidden on its own. Color sets the colour scale (Reds, or RdBu centred at 0 under a z-score), reverse, min, max, centre and printed values, and in a dot plot the dot sizes: the largest dot fills its cell by default, so dots follow the panel's size and the number of genes and groups, and Plot Options sets the largest dot as a share of the cell (up to 200% on its slider, and up to 1000% typed, where dots overlap their neighbours) and the smallest in px; a view saved earlier keeps its sizes in px, and says so. Dots are opaque by default, with a dot opacity setting in Plot Options, and the plot draws no grid lines. The colour strips stand in the order of their legend. Swap axes sits in the toolbar beside 3D. A section's ⋯ menu (Duplicate, Remove, Open source, Move up, Move down) opens above the plot, and Duplicate adds a copy titled " (copy)" that is drawn as its own section. Plot Options sets the dot outline (black, 0.5 px), the gap between sections (none by default; up to 3 columns in steps of 0.25, or any fraction) and their titles, labels, legends and the totals bar (cells per group), and its Download CSV gives the numbers drawn, beside PNG, JPEG, WEBP and SVG images. 3D draws the matrix as bars whose height is a third measure: by default the colour's own numbers, or a statistic of its own on any layer; in a dot plot each bar's footprint is its size. The camera is kept with the plot, and up to 40,000 bars are drawn. Clicking a gene's dot, heatmap cell or label focuses that gene in every panel, with the focused gene in bold; clicking a group's label offers Open grouping. The plot says what it is doing and why: - when empty, a checklist of what it needs; - while working, a progress bar with the time left, and while waiting, its place in the queue (naming your own plot ahead); - before a long read, a question; - for a read that would take too long, a refusal that names a layer stored by cell (CSR) and the way out; - for a matrix of over 400,000 cells, a refusal before the server is asked; - Show as Heatmap when every group is a single cell, where Fraction of cells can only be 0 or 1. In a narrow tile the matrix keeps readable columns: the totals, the groups' dendrogram and then the legend's width give way first, the colour bar keeps at least 64 px (a group legend beside it ends in "+ N more" when it cannot list every level), the status strip names what was hidden, the toolbar no longer covers the gene labels, and legend titles wrap and keep their full text in hover. The user guide lists where it differs from scanpy's dot plot and matrix plot.
  • Cell Count Plot, a new panel, counts cells per group of a Cell Grouping or obs column, as bars (with labels, sorting, reversal, horizontal bars and a log scale; a Color by Stacked, Side by side or Filled, and in a histogram Overlaid and Filled, with an arrangement that does not apply greyed out and its reason; a number as X makes the plot a Histogram, Bar stays available for its bins as categories, Histogram is greyed out for a categorical X with "Histogram needs a numeric axis.", and a link saved as a Histogram of categories opens as a Bar and says so; a pie's printed numbers sit at one distance from the centre, the middle of a ring's band, so Ring moves none, and a slice under 3% shows its number in its hover only; a pie's slices can show their names, with the numbers or alone, with Names beside Ring; its legend now draws, following Plot Options; and bins of a number are coloured by their value on a continuous colour map with a colour bar and Min and Max boxes, by default, while Slice colors in Display ▾ keeps the level palette) or as densities: a curve for each level, or a 2D density drawn in layers you combine in Plot Options: Density as opacity (an image; Density as color scale for one group), Isolines and Filled isolines, with the bandwidth and range stated. With a Color by (up to 8 levels) the default is filled isolines with lines, each level's color in bands of steady opacity that step up with the density, on one set of levels shared by all groups; a 2D histogram draws each level as its color made more opaque where it has more cells, on one scale. A 2D density of one group is drawn with a color map you choose (map, direction and range) and a color bar. A fourth layer, Cell points, draws each cell as a point at its place, in its level's color (or on the color map for one group) with the density there as its opacity; it combines with the others, takes its size and opacity (1 by default, with or without a Color by) from the Display ▾ pop-over, which replaces Color ▾ and also holds the density range (Min and Max, mapping the opacity, the isoline levels and the points alike), takes a Cell Grouping, an obs column or a binned number as its Color by, and draws a seeded sample of 1,000,000 cells above that, which the strip says with the number of points actually drawn; with more than 25,000,000 cells it asks for a subset. A link saved with the earlier As an image or contours setting opens with the matching layers. Venn and UpSet compare sets taken from a cell table, a boolean column, levels of a column, a condition on a number, or a group of a grouping. They show exclusive intersections, the top 40 and a minimum size, and say "Group changed", with Keep, when a grouping's bins move. Each set is one compact line, as in Cell Grouping: a colour swatch (the Venn, the UpSet's set-size bars and the list share it), the letter (which opens the set's definition), the name (renamed in place), its cells, its share and Remove. The Venn labels each circle with its set's name, with Labels (count and share, count, share or none), Names and Area reflects counts beside the set list: the last draws each circle's area in proportion to its set and each overlap's to the cells in both (exact for two sets, an approximation for three, with its largest error stated under the plot when it is large), and a link made before them draws as it did; and an UpSet's bars are one colour until Count colours them by count (None is the default). Every limit is explained before counting, with the button that fixes it (Bin it, Choose levels, Remove Color by, Show as Bar). Long counts show a progress bar, and the plot states how many cells were counted and why any were left out. Save as grouping on the toolbar turns the plot's bars into a Cell Grouping, and Download CSV gives the numbers plotted. Choose levels, the binning line and a new Color ▾ (colour map, Reverse, Min, Max, Center and the palette of a Color by's levels) open in pop-overs that never resize the panel, and Escape closes them. Log count axis, Ring and the density row sit in the control grid. In a histogram and a 2D histogram, Bins drawn in the binning control draws each bin at the same width (Evenly, with the ticks at the bin borders labelled by the edge values) or at its values; log, equal-count and manual bins start on Evenly, equal-width bins on At their values. Escape closes the binning control. 3D on the toolbar draws a 2D histogram, a heatmap or a bar plot with a Color by as 3D bars, coloured as in 2D, with a 3D height of its own (Same as Color, or a count, a share or a statistic), a camera that is kept in links without an undo step and reset in the toolbar, a 3D section in Plot Options, and the same bar limit as the Cell-Gene Plot's (the cost limit bars_3d_max); SVG export is greyed out in 3D.
  • The Cell-Gene Plot and the Cell Count Plot share one Plot Options pop-over and one toolbar row under their controls, the plot's own buttons first and Undo and Plot Options at its right end, each with its own defaults: Presets (Default, Publication, Bare), Text (font, size, colour, plot title and its size), Background, Axes (grid lines, off by default in the Cell-Gene Plot and on in the Cell Count Plot, their colour and width, axis lines and tick marks, and in a Cell Count Plot axis titles, tick labels, zero lines and the number of ticks), Legend, Margins, Export (PNG, SVG, JPEG and WEBP at the size on screen or one you set, at twice the pixels unless 2x resolution is off, and Download CSV) and Apply (Apply to other Cell-Gene or Cell Count plots, and the session default), with the plot's own sections between them. The legend gets a Space, Columns and Entries, at most (20 in the Cell-Gene Plot's strip legends, 25 in a Cell Count Plot): past it, the legend lists the first entries and "+ 12 more", while every level is still drawn. A Cell Count Plot's legend can also sit at the bottom, top or left, without its title, and with a gap of your choice between columns. Each section has a Reset, and only the options that apply to the plot are shown. A plot made from the panel chooser follows the session default until its look is changed.
  • Search in the dataset browser now also finds datasets by their field names: obs and var columns, layers, embeddings and uns keys. The index is rebuilt once after upgrading, and remote datasets are not crawled.
  • For these panels the server gains POST /data/cell_groups. It computes groupings, counts and per-group statistics in one request. It refuses an oversized request up front, for example a grouping certain to pass the group limit, a range too wide for a number, or too many thresholds or measures. It queues behind long jobs and tells the page its place in line. A grouping is computed once per server worker and reused by every panel that uses it, so later plots on the same grouping skip the roughly 3.4 s it takes to group 100 million cells. Two settings bound its memory: compute_budget_mb (default 4608) and group_code_cache_mb (default 512).
  • Colours of a grouping. A factor's Edit ▾ pop-over and the grouping's Settings have a Colors section: choose a palette, set the colour of a level or a group from its swatch (a group's colour is kept under its name, and applies whenever a group of that name exists), colour the groups of several factors by one of them, and reset. A grouping's colours are now the same in the group list, a Cell Plot, the Cell-Gene strips and a Cell Count Plot split by it, and a colour change asks nothing of the server. Dataset colours in uns are used when there are at least as many as categories, as scanpy does (before, only exactly as many).
  • Min and Max boxes for every scale of the Cell-Gene and Cell Count Plots. In Color ▾, the colour (Min, Max, Center), the size (Size min and Size max, named by the size statistic, such as "Size min (Fraction of cells)", since it need not be a percentage) and, in 3D, the Height (Min and Max, new) each have boxes in one style. A box that is not set says "auto" with the value the plot draws, such as "auto (0.12)", instead of being empty, and each scale has a ↺ button that returns its boxes to auto in one undo step. In 3D, a bar taller than the Height max is drawn at the max, a shorter one at the min, and a bar of 0 stays undrawn. Links keep working: the colour and size limits are stored as before, and a height range is stored as heightLimits.
  • Undo for the Cell Table and the Gene Table, the same button the Cell-Gene, Count and Cell Grouping panels have. Every change to a table's settings is one step (columns, filter, search, rows per page, Methods ▾, Score methods ▾); the table is built again from the settings it had. Browser Back and Forward keep working and start the steps afresh.
  • Every cost limit is a setting, in the configuration file and on the admin Settings page. A new limits: section holds when a computation (a gene score, a grouping, a Cell-Gene or Cell Count Plot) asks first (ask_first_s, 60 s) and when it is refused (refuse_s, 600 s), when edits update live (live_update_s, 5 s), when a progress bar appears (progress_bar_s, 10 s), the Cell-Gene matrix (matrix_values, 400,000) and its genes per section (2,000), the groups of a grouping (groups, 2,000), its factors, measures and thresholds, the count plot's grid and axes, the cells for an obsp source, the cells of a grouping's export (1,000,000), the bars of a 3D view (40,000), the rows clustered for a dendrogram (2,000), and the cells a Count Plot's Cell points layer draws (1,000,000, a sample above it) and loads (25,000,000). An admin can change each on the Settings page, under Limits, without a restart, and Reset all puts them back; a value in the configuration file is a ceiling the admin can lower but not raise. The browser reads the values the server enforces, so a check it makes before asking always uses the server's number, and every refusal names the limit in force. The server limits read per request (panel set quotas, folder listing and search sizes, the description index, the name search's time limit) can now also be changed on the Settings page. The time tiers must keep their order (live_update_s ≤ ask_first_s ≤ refuse_s): the server does not start with a file that breaks it, and the Settings page refuses such a change.
  • The Cell-Gene Plot's sections and the Cell Grouping's factors look and behave alike. Both are cards: position, title, a summary (a section's source and gene count, a factor's kind and levels), a preview (the first genes or levels) and a ⋯ menu. A section's title is no longer a text field: Rename in ⋯ edits it in place (✓ saves, Escape cancels, empty restores the source's name), and clicking the card opens its source. Drag a card or use Alt+Up and Alt+Down to reorder, in both panels. In a narrow plot the preview gives way first.
  • A one-row section of the Cell-Gene Plot is the set treated as one gene, with no setting of its own. Color and Size each show it by a fixed rule for their statistic (the mean of the genes' means, the set's z-score mean score, the sum of the genes' sums, and so on), on the plot's own layer and threshold, and the section's tooltip says the rule. Under Fraction of cells the row is the share of cells expressing at least one gene of the set. Genes / One row is a dropdown. The other score methods (control-adjusted, Fraction of genes, % of total) are not drawn as Cell-Gene rows. Plots saved with a separate Color or Size choice for a row open on these rules without a notice.
  • Fraction of cells is c⁺ on the aggregation buttons, so it is no longer mistaken for %, a signature's share of the total.
  • The Cell-Gene Plot's controls are compact. Color and Size are each a layer and one symbol button that opens the list of statistics (Height the same, in 3D), replacing the statistic dropdown, the word "of" and the threshold box. The Expressed above value is in that list and shows on the button when the measure has its own (>1). Groups, Mode, Color, Size, Scale and Add genes share the first line, so the control area is about 10% shorter at a wide window and 25% at a narrow one. Stored settings are unchanged.
  • A Cell Table's Gene score tab adds a column with a layer and an aggregation button. The method dropdown and the word "on" are replaced by the same symbol button the plot axes use, listing each method as a symbol and a name (a method a layer cannot give is greyed, with the reason). A ticked column shows its method's symbol before its name. Columns are stored and shown as before.
  • A long computation shows a progress bar. When a gene score (in a plot or a table column) is estimated to take more than 10 seconds, or has been running for 10 seconds, its notice gets a bar under the sentence, which fills as the server reads the stored values, with the time left once it is known ("Computing 'T cell score': 61 of 200 genes · about 3 minutes left"). A score waiting for other computations on the server says its place in line ("Waiting for the server: 1 computation ahead.") with a moving bar instead, never a made-up percentage. Shorter computations keep the line of text as before. The bar is announced to screen readers with its sentence, follows the light and dark themes, and stands still when your system asks for reduced motion. A score that could not start because the server stayed busy now says so in plain words, with Retry.
  • A Cell Count Plot refused for a size limit offers ways out. When a plot has more Color by levels or bins than its view takes, its notice now has buttons that each make one ordinary, undoable edit and only appear when the result would draw (at most three): Split by another column ▾ opens the Color by column list with the columns that are over the limit greyed and showing their number of levels ("sample: 30 levels, at most 8"), Switch to Bar for a 2D histogram, 2D density, histogram or density whose Color by a Bar can take, and Fewer bins, which sets the bins to the most the view takes. The status line says what each did. A limit the page could not know beforehand (the Color by's levels were not counted until the server answered) is now a refusal that names its count and limit and offers the same buttons, instead of "could not be computed" with Retry. Nothing changes by itself, and there is no Try anyway on these notices: a size limit cannot be tried.
  • A Cell-Gene Plot over its matrix limit offers ways out. A plot of more than 400,000 matrix cells (limits.matrix_values) now has buttons for the edits that would make it draw: Show
    as one row and Remove
    , each one undoable step and offered only when the plot would then fit, and Open grouping when its groups are a grouping. A section over the genes a section draws (limits.genes_per_section) has Show as one row on its card when its Color and Size read it as a score (z-score mean, Fraction of cells, count). A Cell Count Plot whose grid the server refused for its number of cells offers Fewer bins when the bins can make it fit, and otherwise says how many cells it would count and what the limit is. Also fixed: Undo of a removed Cell-Gene section, when the sections share their genes, could draw the larger plot the matrix limit had refused.

Changed

  • The Layers, obsp and varp tabs of the Cell Table and the Gene Table list only the columns you ticked, with one add row. The row is an item (the focused gene or cell, one fixed in a plot, or one the table holds) and a layer or matrix, then Add column; it starts on the focused item and X. The ticked columns are grouped under their layer. The search field filters the ticked rows and the item list. The old tab listed every layer for every item, so it grew by a block per layer. Stored columns and old links are unchanged.
  • Cell Plot and Gene Plot: Plot Options, toolbar and Undo as in the new panels. Their buttons are one row under the controls, as in the Cell-Gene and Cell Count Plots: 3D (it read 3D Plot), Equal aspect, the focused-entity highlight and Refresh first, then a new Undo and Plot Options at the right end. Undo (also Ctrl+Z, Cmd+Z on a Mac) takes back the plot's last change (axes, colour, filters, point size, an option, 3D) and draws it as a link of that state would; zooming is not a change. Plot Options opens over the plot without moving the panel and closes with Escape or a click outside. Its groups are in the same order as the new panels' (Text now second), each with a Reset for its own options, and it has Copy beside the image formats, as do the Cell-Gene and Cell Count Plots. The point size moved from the controls into Plot Options ▸ Points. Links keep every setting they had. A long Plot Options pop-over now scrolls (it jumped back to its top), and an image or CSV download no longer closes it. Every pop-over shares one look: the same section headings, rows, help text and one Reset per section. Open Sans is now the default font of every plot (it ships with the app, so it looks the same on every machine, and is inside exported SVG and PNG images), with the same list of fonts on every plot; Publication still sets Arial, and a Cell, Gene or Cell-Gene plot saved with no font keeps drawing in Arial.
  • The Add New Panel tile takes the height its pane gives it and scrolls its choices inside, so opening one no longer grows or pushes the layout.
  • Scripts, styles, fonts and images carry the version in their URL, so after an upgrade the browser asks for the new files even behind a caching proxy or CDN. Module scripts are revalidated on every load instead.
  • Deleting a closed panel that is in use asks first. In the panel menu, the × of a closed panel that another panel uses (a signature coloring a plot, a table filtering one) turns into Delete? with the question under it, such as "Delete 'T cell score'? 1 plot uses it."; press it again to delete. Escape, moving away or a few seconds put it back. A closed panel nothing uses is deleted on the first press, as before.
  • Share Link now says so when the link it copied is long (over 8,000 characters, about 1,200 gene symbols in a signature): a note under the button gives its length and suggests saving a panel set to share a large gene list. The link is copied either way. A link that holds thousands of genes is long (about 29,000 characters at 5,000 gene symbols, 106,000 at 20,000).
  • The automatic dot size in 3D plots is 60% of what it was, so a 3D scatter is no longer a solid mass at moderate cell counts. Only the automatic size changes: a size you set, or one in a link or panel set, stays, and 2D plots and opacity are as before. The greyed-out points of a table link in 3D follow it.
  • A new Cell Plot opens with Equal aspect on when its axes are the automatic default, both taken from one embedding (UMAP, t-SNE, PCA or spatial coordinates), so the embedding keeps its shape at any window size. Switch it off with the button; your choice is kept in the plot's links, panel sets and sessions. A plot whose axes you or a link chose, a link made before this change, and a plot whose axes come from obs columns open as they did, and changing the axes later never flips the button.
  • Closed panels of every type now come back when you open a share link or load a panel set, and when you step Back or Forward. Before, a link listed them but opened none, so a plot filtered by a closed table quietly lost its filter. Only the configuration is saved (a table's columns, filter conditions, search text and search toggles), never its rows. A plot filtered by a restored closed table keeps the table selected, draws no points until the filter is built, and says "Filter not applied yet" in a notice over the plot and a tag in its strip. Large plots still draw every cell, as they never apply table filters.
  • A table's regular expression, smart search and case-sensitive buttons are now saved with the panel, so a link, a panel set or a reopened table selects the same rows. Older links and panel sets open as before.
  • Opening a share link or loading a panel set now says what is loading from the first moment. Each panel of the view appears at once as a named tile ("Cell plot · UMAP · coloured by cell_type") with a status line, and the dataset bar shows one line such as "Opening link: pbmc.zarr, 4 panels (2 ready)" that goes away when everything is drawn. Before, the page showed the generic welcome tile until the dataset had opened, which on a slow disk could be many seconds. The line is announced politely to screen readers, and a panel is marked busy until it is drawn.
  • The Load Panel Set dialog now closes as soon as you press Load, so the page, the header and the dataset browser stay usable while the set loads; the load is shown in the page. A refusal after that is a notice instead of a line in the dialog.
  • While you switch dataset, the panels that are open are dimmed with a "Switching to …" note and stay usable; the loading box on a panel names the step ("Reading coordinates…", "Drawing…", "Recolouring…") instead of always saying "Loading axis data…".
  • A plot filtered by a closed table now gets that table's filter by itself. When the table was restored from a link, a panel set or a step Back or Forward, or the cells changed (a subset, another part), the page builds the filter in the background, one table at a time and only for a plot that is on the page, and the plot draws the moment it is ready; nothing needs to be opened. The build uses only the columns the filter needs, runs the same filter as the open table, and keeps just the names that pass. Up to 200,000 rows it starts at once; from there to 1,000,000 rows the plot offers a "Build filter" button, because building holds the page for a few seconds; above that it says the table is too large and offers Open table. If the browser is short of memory nothing is loaded and the plot says why. Opening the table while it builds ends the build, and the plot waits for the opened table and updates once. A table that depends on itself, through a hand-edited link, is named in the plot instead of waiting for ever. Large plots still apply no table filter and build nothing.
  • While a closed table's filter is building, the plot offers Cancel, which stops the loading and returns to "Build filter"; the last short step, which filters and releases the rows, cannot be stopped and the notice says so. Gene Set Analysis now builds a restored closed source table in the same way and says the same things, instead of asking you to reopen it.
  • Refresh dataset keeps each plot's zoom, and Cell and Gene Plots no longer have a Refresh button of their own. A plot now always draws what a plot opened from the same settings draws, whatever you changed before (a test holds every plot to that), so there is nothing to refresh; to read values written to the store since, use Refresh dataset, which re-reads the dataset and keeps every plot's zoom and 3D camera, also in the link and the autosave.
  • Refresh always reads the dataset again. The header Refresh now makes the server drop everything it remembered of the dataset (a gene's values, scores, group results, name search, dataset details), in every worker, whether or not it found a change. Before, a chunk file overwritten in place, with the same name, on a large store or on a network file system, kept being served from memory until an admin cleared the server cache. A store too large to check file by file now says "Large dataset refreshed": AnnZarro cannot tell whether it changed, so it read it again. Refresh is still limited to one check per dataset every server.refresh_min_interval_s seconds, and still open to every user who can read the dataset; clearing the whole server cache stays an admin action. On a shared server, a user who is not an admin can refresh a dataset of more than 10 million cells (limits.refresh_large_cells) once a minute (limits.refresh_min_interval_large_s, 60 s): a Refresh sooner waits for the end of the minute and the app says when it runs. Both limits are on the admin Settings page.

Fixed

  • No blank band above a Cell or Gene Plot's plot box. The default top margin is 30 px, not 80: the 80 was room for the modebar, which now sits over the plot area. The plot is 50 px taller, a legend beside it starts higher, and with Equal aspect the x range is a little narrower. A plot saved with the old default margins follows the new default; margins you chose stay. A title, a legend above the plot and the coverage note of an export add the room they need.
  • The plot toolbar no longer covers data. It sits in the strip above the axes (right-aligned) when the top margin has room for it, and in the axes' corner only when the margin is thinner than the toolbar or a legend or colour bar placed on top takes the strip.
  • A superseded layer, obsm, varm, obsp or varp request no longer logs an AbortError as a console error.
  • A Gene Plot no longer ignores changes made after you change the subset of cells: point size, colour range, flipped axes and the like apply again.
  • Cell and Gene Plots now look the same after a run of changes as when opened from their link: no colour bar left behind when colour goes back to none, the plot's points and names back to normal when a table filter is turned off, the same margins after Hide NaN, a point size change or a moved focus, and a legend below the plot in the same place.
  • Refresh after a column was added on disk without re-consolidating no longer loses the gene names. The store was read without its stale .zmetadata, but only its top group was; var and the other groups still read their own empty listing, so /data/genes answered [] and a Gene Plot said the dataset reported no gene names. Every group is read from its own files now, the new column shows, and nothing is written to your store.
  • A filter from a link or panel set that names a value the cells shown don't have now keeps that value and shows no rows, instead of being dropped and showing every row.
  • A panel set loaded while the page was still starting could open as closed, undrawn panels; loading now waits until the page is ready.
  • annzarro export no longer captures a plot while its automatic point size or opacity is still being applied, so exporting the same view twice gives the same figure. Before, an export could be taken a moment early, with the dots a little smaller or larger than in the finished plot (for example 4.7 instead of 5.1).
  • Closing a Cell Table or Gene Table, or loading it again for other cells, now gives its memory back. Before, each close left about 65 MB behind per 100,000 rows, so opening and closing tables over a session slowly filled the browser. After many opens and closes the page now returns to within a few megabytes of where it started.
  • A plot filtered by a table that no cell passes now shows "No cells pass 'Table 1'." with Open table and Stop filtering, whether the other cells are greyed or removed, and draws again by itself when the table passes cells. Before, after narrowing a table from some rows to none, the plot kept drawing the excluded cells in the colour of cells that pass.
  • Opening another dataset while a link or panel set was still opening no longer builds that link's panels on the dataset you just chose. Your choice wins and the other load stops.
  • A large plot (more cells than the large-plot limit) with a flipped axis no longer loses its zoom when you change the colour map or any other setting, or when you open a link made from the zoomed view: it keeps the view you chose, as the regular plot does. Double-clicking still returns to the fitted view.
  • Turning the legend off in a legend of two or more columns hides every column, not only the first, together with the title above them and the room kept for them, so the plot takes the width back; turning it on again brings the same columns, gap, title and position back. A saved panel or link with the legend off and several columns opens with no legend, and a large plot (more cells than the large-plot limit) now honours Show Legend off, colour bar included, which it ignored.

Upgrade notes

  • A server whose configuration sets its own ui.enabled_panel_types list does not offer the four new panels until you add gene-signature, cell-grouping, cell-gene and cell-count to it (the list only shapes the "Create New Panel" chooser; it does not switch a type off). With the default list they are offered at once, and an administrator can switch each off with panel.gene-signature.enabled, panel.cell-grouping.enabled, panel.cell-gene.enabled and panel.cell-count.enabled.
  • No setting moves. A configuration file that sets nothing under limits: keeps every limit as before. server.read_user_share_percent and server.subset_wait_s are now shown as read when the server starts (as they always were) and stay settings of the configuration file; so does server.name_search_max_regex_chars, a bound on what a search parses rather than a cost; the other server.* limits that are read per request can now be changed by an admin, and an admin value wins over the file until it is reset.

Docs

  • User-guide pages for Cell Grouping, the Cell-Gene Plot (with its differences from scanpy) and the Cell Count Plot; the full HTTP reference of POST /data/cell_groups; and the memory a server worker holds for these computations.
  • The README and the licence page cite v0.7.6 by its DOI, 10.5281/zenodo.23753517.

Install

pip install annzarro==0.8.0 (PyPI), or a desktop app below. macOS: open the dmg, drag AnnZarro to Applications and open it. Windows: the build is not signed, so SmartScreen asks for More info > Run anyway. Details: https://annzarro.readthedocs.io/en/latest/getting-started/desktop-app.html (First launch). Verify downloads against SHA256SUMS.txt.