baSeq
baSeq docs › Freezing an analysis

Freezing an analysis

Freeze a session when a result is submitted or handed over. Every file is recorded with its checksum, nothing can be run, edited or deleted until you unfreeze it, and a reproducibility package holds the whole record.

Freeze

As the session's owner, press Freeze in the top bar and confirm. baSeq records every file the session holds with its SHA-256 checksum, together with a record of the steps, their parameters, code and explanations, the analysis context, and the software versions the server ran. Freezing is refused while a step is still running or queued: a frozen record is a finished one.

What a frozen session is like

  • The top bar says Frozen with the date, or what its signatures come to (below); on the project page the session shows Frozen instead of Delete.
  • Nothing runs, uploads, edits or deletes, for anyone. Attempts are answered with "This session is frozen".
  • Reading, downloading, exporting, chat and notes keep working for everyone who could already do them.
  • The session cannot be deleted while frozen.

Sign

A frozen analysis can be signed: press Sign in the top bar. The analysis's owner signs as its author. Anyone else who can open it signs it as reviewed or approved, or sends it back with a note saying why. You type your password to sign; if your organization signs you in to baSeq, its sign-in asks you again. Each person signs a version once. A signature goes only on the version your panel showed: if the analysis was frozen again meanwhile, signing is refused and the panel shows the new version. Once a version is approved, it takes no more signatures.

A signature records your name, what it means, the time (UTC) and a fingerprint of the frozen files and of every step's code and settings. The top bar says what the signatures come to, such as Approved with the date, and lists them when you hover over it. The report's first page and the reproducibility package (session.json and the README) carry them too. The report's first page says whether the signatures cover it: made on the version before it was signed, after it, or not on it. Once made, a signed version's report is not made again. Before a signature is made, baSeq checks the version's files against what was frozen; a file changed since refuses it.

The owner asks a colleague for a review in the same panel. The colleague gets an email with a link, and the owner gets one when someone signs or sends the analysis back. The emails never include the note.

Rules for a lab's signed work

A lab that works under GxP rules turns on Signed work under its Settings (the lab's owner and admins), and may name who approves. For the analyses of the projects shared with the lab:

  • An analysis is approved only after someone reviewed it, and only by an approver when the lab names some.
  • Those an analysis is shared with to work on, and anyone who ran one of its steps, sign it as its authors, not as its reviewers.
  • Signing with a password needs two-step sign-in on the account.
  • Approved work stays frozen, even if the rules are turned off later or the project leaves the lab. Unfreezing anything else asks why, and the version keeps the reason.
  • An account that owns the lab's signed work is not erased while the lab keeps it.
  • When a signer's account is deleted, their name stays on the lab's signed analyses.

Locked methods

Once an analysis is approved, its owner can lock it as a method in the Sign panel: name it and press Lock as method. The method keeps each step's settings and the exact code the step ran. It is listed with the protocols in the Workflow panel of another analysis, marked locked with its version. Run there, every step runs the approved code as it is, with no AI: nothing writes the code, nothing rewrites it if it fails, no explanation is written, and a step that would ask an AI model about the data before it runs does not run. The files a step's preparation makes for it (reference annotations, gene sets) are made again for the new data. If the new data cannot take the method's steps and settings as they are, the method does not run. Locking an analysis again under the same name makes the next version. A facility inbox, or a dataset's new versions, can run a locked method on every delivery the same way. A lab with rules for signed work takes as its method only work approved under them. Deleting a locked method retires it: it runs no more, and the analyses that ran it still say so.

A step that names or picks this data's own clusters (Cell Type Annotation, Manual Cell Annotation, or clusters chosen to remove, keep or sub-cluster) is not locked: clustering numbers another dataset's clusters anew, so the same numbers are other cells there.

A flow cytometry analysis's method keeps its gates too, with their axes and compensation, and its checks can be on the gates' numbers on every well. Another plate uses it from the gating screen, where its gates then cannot be changed, except a gate the method lets a well adjust, on one well and saying why (Flow cytometry, Locked methods).

Before locking, Add check sets a pass or fail check on a number in a step's Data Summary table, such as Cells kept % at least 90: every row of that table, for example every sample, must keep it when the method runs. The value starts at what the approved analysis had. An analysis that ran the method shows its checks in the Sign panel, the reproducibility package and the report, and approving it with a failed check needs a note saying what was done about it.

Unfreeze

Click the Frozen marker in the top bar and confirm. Changes become possible again. The checksums recorded at freezing are kept, so a later package can still say whether the files changed. Signatures stay with the version they signed: freeze again and the new version starts unsigned. A signed version is kept as its reproducibility package before it is unfrozen. The Sign panel lists the earlier versions under Earlier versions: when each was frozen and unfrozen, by whom, why, its signatures, and the package of a signed one.

The reproducibility package

Export, then Reproducibility package (.zip). It contains, per step, the code, the explanation, the parameters, the figures, the tables and, where a result was reviewed, the referee's note; session.json with the whole record including the dataset and software versions; an environment folder listing the Python and R packages the steps ran with, and their versions; ai_generated.json, the files with text a model wrote; and MANIFEST.sha256 listing every file on the server with its checksum. Data objects such as h5ad files are listed but not included because of their size; download them from the session if you need them.

For a frozen session the manifest is the one recorded at freezing, and the README states whether every file still matches it. For an open session the manifest is computed at export time. To check a downloaded file against the manifest, use sha256sum -c MANIFEST.sha256 --ignore-missing.

Present it at the lab meeting

Any session you can open can be shown as slides. From a session row on Home or Projects, hover and choose Present; inside the analysis, open Export and choose Present as slides. The deck has a title slide, a question slide when the analysis context recorded a hypothesis, one slide per completed step with its plot and up to three takeaways drawn from the step's summary, a caveats slide when the referee left notes, and a closing slide with lines for next steps. Use the arrow keys or the space bar to move, F for full screen, and the browser's print command for a PDF.

Download as PowerPoint (also Presentation (.pptx) in the Export menu) gives the same deck as an editable 16:9 PowerPoint file: one plot per slide at full resolution, text boxes you can rewrite, white slides with no template art. Slides are built from what the session already holds, so nothing is sent to a model and the deck reads the same every time you open it. Rewrite the takeaways before the meeting where the summary was written for a reader rather than a listener.

Freeze is per session

Freezing seals one session. Other sessions in the project, and the registered dataset the session was built from, are unaffected.

baSeq ApS · CVR 44568691 · Vermlandsgade 51, 2300 Copenhagen, Denmark · [email protected]

For research use only. Not for diagnostic or clinical decisions.