Applied AI-Powered Bioinformatics Tools

Cryopreservation & IVF Calculator

Last reviewed

Beginner

What you'll learn

~45 min
  • Ask an AI tool, in plan mode, for a program that reads a freezing log (one row per straw of frozen embryos or sperm) and a test-thaw log (what happened when a straw was thawed to check it) and summarises each mouse line
  • Give it your facility's planning numbers, and read its plan for what matters: only stored straws counted, each test thaw tied to its own freezing batch or male, every rate shown with its two counts, and a blank never read as zero
  • Check its summary against values worked out for the practice files
  • Say what a test thaw tells you about a line's stored straws, and who decides whether a line is safely banked

The story, and what you will end up with

It is Wednesday 11 November 2026 at a university’s mouse cryopreservation and assisted-reproduction service. You are the staff scientist who keeps its freezing and test-thaw records. The service freezes embryos and sperm so that labs can recover their lines later by embryo transfer or by in vitro fertilisation (IVF), and it test-thaws a straw from each freezing batch to check it.

The lab that owns LINE-B has asked whether its line is safely banked, so that it can reduce its live colony. That is not your answer to give, nor a program’s. The service manager will go through the line with the lab, under the facility’s procedures and the approved animal protocol. Before that meeting the manager wants, for every line the service holds, what is in the freezer, how its test thaws went, and what is still unsure. Today that means reading the freezing log and the test-thaw log side by side, straw by straw. You know some batches are still waiting for their test thaw; the summary should show which.

By the end of this lesson you will have a small program on your own computer, the line summary, that reads the two logs and prints that summary on screen and as a file your spreadsheet program opens. The only arithmetic it does is counting and dividing one count by another, and it compares the counts with planning numbers you give it. It never says a line is banked. You build it by asking your AI tool in plain English, and you check it against numbers this lesson gives you.

🔍Words used in this lessonclick to expand
  • Straw: a thin sealed tube that holds frozen embryos or sperm, kept in a canister (a holder inside the tank) in a liquid nitrogen tank.
  • Batch: in this lesson, the straws frozen in one session, on one date, and for sperm, the straws from one male. Check what your service’s procedures count as a batch.
  • Test thaw: thawing a straw from a batch to see how the embryos or sperm come through. How many straws are thawed, and what is done next, your service’s procedures say: the embryos may be cultured for a few days, or transferred to a recipient.
  • Embryos recovered: the embryos found in the straw after thawing. A few can be lost, so this can be lower than the number frozen in it.
  • Intact after thaw: embryos that look undamaged under the microscope. It is a judgement of how they look, not proof that they will develop.
  • Blastocyst: the stage an embryo reaches after a few days of growth. Culturing thawed embryos to this stage is one way to check them without a transfer.
  • Two-cell: an egg that has divided once, the day after IVF; it shows fertilisation has probably happened.
  • Recipient: a female prepared to carry transferred embryos to birth.
  • Heterozygous, homozygous, wild-type: a heterozygous mouse has the line’s genetic change in one of its two copies of the gene, a homozygous mouse in both, a wild-type mouse in neither.
  • Carry the allele: a pup that has inherited the line’s genetic change, found by genotyping. Embryos from a heterozygous parent crossed with a wild-type one do not all carry it.

Before you start

First, if your AI tool is still open, leave it: type /exit and press Enter (if you use Antigravity, press Ctrl+D with nothing typed instead), and wait until you see the $ or % prompt. The next line goes there, in the terminal, not in the AI tool. It makes a folder for this lesson beside your practice folder and goes into it:

Terminal window
mkdir -p ~/bio-workbench/10-cryo-summary && cd ~/bio-workbench/10-cryo-summary

Start your AI tool with the start line you kept from the setup lesson, the one with approval prompts off. Then ask it to set the folder up:

Set this folder up so we can undo any change you make, download https://learn.intellimetrics.net/starters/biotech/10/cryo-records.zip and unpack it into a data folder, and save a checkpoint.

Look for it saying three things: the folder is set up with Git (the program that saves snapshots, from setup), two files are in the data folder (freezing-log.csv and test-thaws.csv), and a first snapshot, your checkpoint, is saved. Later you can ask whether the files have changed since then. If it does not mention one of them, ask: “Did you save a checkpoint with the files in it?” It may also keep the zip file in the data folder, which is fine; if it says it kept one somewhere outside this folder, ask it to delete that copy. If the download does not work, download cryo-records.zip in your browser, check where it went (the browser’s list of downloads shows the folder), and tell your AI tool, for example: “cryo-records.zip is in my Downloads folder. Unpack that one file into a data folder here, and save a checkpoint.” In Windows PowerShell or a desktop app, “my Downloads folder” works as is; only say “my Windows Downloads folder” if you use Ubuntu (WSL) on Windows, which keeps its own Downloads folder apart from Windows.

The box below says what is in the practice files; later steps refer to them.

ℹWhat is in cryo-records.zipclick to expand

Two files, each of which opens in a spreadsheet program:

  • freezing-log.csv: one row per straw. Columns: Straw ID, Line, Material (Embryos or Sperm), Frozen on, Male (sperm only), Genotype, Stage, Method, Embryos in straw (embryos only), Tank, Canister (the holder’s number inside that tank), Status (In storage or Thawed).
  • test-thaws.csv: one row per test thaw. Columns: Line, Straws used, Thawed on, Embryos in straws, Embryos recovered, Intact after thaw, Cultured, Blastocysts, Oocyte donors, Oocytes inseminated, Two-cell next day, Transferred on, Embryos transferred, Recipients, Recipients that gave birth, Litter sizes, Pups born, Pups genotyped, Pups carrying the allele, Notes. A cell is blank where that step was not done or not yet recorded.
LineWhat is frozenBatches and whereStraws marked Thawed
LINE-AEmbryos, 8-cell, from a heterozygous x wild-type cross10 March 2026: A-01 to A-05, 25 embryos each, Tank 1, canister 3. 16 June 2026: A-06 to A-10, 122 embryos (25, 24, 25, 23 and 25), Tank 2, canister 1A-01
LINE-BEmbryos, 8-cell, from a heterozygous x wild-type cross20 May 2026: B-01 to B-10, 25 embryos each except B-10 with 20, all in Tank 1, canister 5B-01
LINE-CSperm from two homozygous males12 August 2026: M-1’s straws C-01 to C-06, M-2’s C-07 to C-12, in Tank 1 (canister 2) and Tank 2 (canister 4)C-01
Test thawStraws usedWhat happened
LINE-A, 7 April 2026A-0125 frozen, 24 recovered, 22 intact, 22 cultured, 19 blastocysts. No transfer.
LINE-B, 8 July 2026B-01 and B-0750 frozen, 47 recovered, 41 intact; 40 transferred to 2 recipients, both gave birth, litters of 5 and 4: 9 pups, 9 genotyped, 4 carrying the allele. The lab asked for the transfer because the line had recovered poorly at its previous institution.
LINE-C, 2 November 2026C-01 (M-1)IVF with eggs from 1 donor: 32 inseminated, 16 two-cell next day; 16 transferred to 1 recipient on 3 November. Birth columns blank: the litter is not yet due.

Everything in these files is made up for this course: every line, straw, tank, date and number; no animal or real record produced them. Each lesson in this track has its own practice files, with their own people and dates.

Switch to plan mode

Your AI tool is already open. Switch to plan mode now: Shift+Tab until it says plan, or /plan (the keys for each tool). In plan mode it usually reads your files, asks its questions and shows you a plan before it builds anything; the order can vary.

The conversation

Each message below is an example. Say it your own way.

Say what you want

Say what you do, which files to use, and what you want from them:

I keep our mouse cryopreservation service's freezing and test-thaw records. Build a program that reads files like those in data and summarises each line: what's stored, how its test thaws went, what's unsure. Ask me what you need first.

Your AI tool usually reads both files and comes back with questions. It may already point out some of what it sees: that the two files disagree about B-07, that LINE-A has a batch with no test thaw, or that LINE-C’s litter is not due yet.

Give it your planning numbers

These are this practice facility’s own planning numbers. Your service’s are in its own written procedures, and may differ by kind of line, such as by genotype, as the guidance quoted further down shows; use those. Send them as a message of their own after your first request, wait for its reply, then answer its questions.

Our planning numbers: an embryo line, at least 200 embryos stored, in two tanks. A sperm line, at least 5 straws from each of two males, in two tanks. Compare with them, and never say banked, safe, passed or failed.

A planning number is a rough first sort, the point at which a line is worth putting to the manager, not a judgement on it. The summary says how a line’s counts stand against these numbers; whether the line is banked is decided by people, with much more in front of them.

Answer its questions

Answer each in a sentence. These are questions the tools often ask, with one way to answer each. Yours may ask them in a different order or show a list of choices:

If it asksYou might say
On screen, a file, or both? Who reads it?Both: a summary on screen and a spreadsheet file, for me and our manager.
Does each line mean a mouse line, a batch or a row?Each mouse line.
Only the numbers, or a verdict such as adequately archived?Numbers only, no verdicts.
Survival: intact out of recovered, or out of embryos frozen?Show both, labelled.
Pups out of what?Out of embryos transferred, and per recipient.
Fertilisation: two-cell out of oocytes inseminated?Yes.
Standard figures to compare against?No. Only our planning numbers.
Summarise by freezing batch and by male?Yes, by batch and male.
What makes a batch?The line and its freezing date; for sperm, each male’s straws.
Does a test thaw count for the line’s other batches?No. A test counts only for its own batch or male.
When the files disagree, as for B-07?Flag it and show the count both ways; I’ll check.
Must each male’s straws be in two tanks?For this practice, two tanks across the line; show which tanks each male’s straws are in.
Estimate how many embryos carry the allele?No carrier estimates.
A blank result, such as a litter not yet due?Show it as not recorded yet; don’t work out a due date.
Plain Python with nothing extra installed?Yes: whatever needs the least installed and works with no internet connection.

If it asks several questions at once, answer the ones about how things are counted and what counts for what from your service’s own procedures, a sentence each, and accept its suggestions only about how the summary looks. If you cannot tell which kind a question is, treat it as a rule. If it asks something not listed here, answer it the same way, in a sentence.

Read the plan

Next it usually shows you a plan: what it will build and how it will check it. Read it for six things:

  1. Only straws in storage are counted. A straw a test thaw used but the freezing log still calls In storage is flagged, and the count is shown both ways.
  2. Each test thaw counts only for its own batch or male, and the summary shows which batches and males have no test thaw.
  3. For each batch or male, it says which tanks hold its straws.
  4. Every rate shows its two counts and what it is out of, such as 22 of 24, and survival is shown both ways.
  5. Pups born appear beside how many were genotyped and how many carry the allele, and a blank shows as not recorded, never as zero.
  6. Counts are compared with your planning numbers, and no line says banked, safe, passed or failed. It is a program you can run again on new files, and your files are read and left as they are.

A first plan often leaves one of these out, most often the tanks, the two counts behind each rate, or the pups (items 3, 4 and 5). Say so in a sentence, in your own words, for example:

Beside pups born, show how many were genotyped and how many carry the allele. And for each batch or male, show which tanks hold its straws.

When the plan has all six, approve it: if your AI tool offers a choice to go ahead, pick it; otherwise say “Yes, go ahead and build it.” In Codex, press Shift+Tab first to leave plan mode. In Copilot, saying it brings up a choice to go ahead; pick that. Let it build. It may run what it built and tell you how to run it yourself; either way, the next step asks it to. When it has finished, ask it: “Did you install anything, and where?” Nothing, or something inside this lesson’s folder, is fine for these lessons. If it names anywhere else on your computer, such as the zip file it downloaded or a few scratch files of its own, ask it what that is for, and to remove it if you do not want it there.

Look at what it built

Ask it to run what it built:

Run it on the files in data and show me the summary.

It may show the summary in the terminal and say where the spreadsheet file is saved, or start a page and give you an address to open. If it gives you an address without opening it, copy that into your browser’s address bar and press Enter. If it starts the page at a local address, one ending in a number, and says the address is already in use, say: “Something else is using that address. Don’t stop it. Use a different address for my page.” If your AI tool does not take a message after opening the page, wait a minute. If it still does not, close the terminal window, open a new one, type this lesson’s folder line again, start your tool, and say: “Start the page again so it keeps running while we talk.” The page and your saved work are files in the folder, so nothing is lost. When you have finished with the page, ask: “Stop the summary page if it is still running.”

Your summary will be worded and laid out in its own way. Check it for these:

  • LINE-A: 222 embryos in 9 straws, in two tanks. The 10 March batch has 100 embryos in 4 straws (A-02 to A-05) in Tank 1; the 16 June batch has 122 in 5 straws (A-06 to A-10) in Tank 2. Its test thaw, of A-01 from the 10 March batch: 22 intact of 24 recovered (91.7%), 22 of the 25 frozen in the straw (88.0%), and 19 blastocysts of 22 cultured (86.4%). The 16 June batch has no test thaw.
  • LINE-B: B-07 is flagged, used in the 8 July test thaw by one log and In storage by the other. The count is 195 embryos in 8 straws if B-07 was used, 220 in 9 if it is still in the tank: below the planning number of 200 one way, above it the other. Everything is in Tank 1, one tank where the planning number asks for two. Its test thaw: 41 intact of 47 recovered (87.2%), 41 of 50 frozen (82.0%); 9 pups from 40 embryos transferred (22.5%), 4.5 per recipient; 9 genotyped, 4 carrying the allele.
  • LINE-C: 11 straws, M-1 5 (2 in Tank 1, 3 in Tank 2) and M-2 6 (3 in each). M-1’s test: 16 two-cell of 32 oocytes inseminated (50.0%, if it gives a percentage), 16 transferred to 1 recipient on 3 November, births not recorded yet. M-2 has no test.
  • No line says banked, safe, passed or failed.
  • When you ask “Have my record files changed since the checkpoint?”, it compares them with the checkpoint and says no.

The percentages here are rounded to one decimal place; yours may show more. Your summary may also say “not recorded” for LINE-A’s transfer and pups, where the Notes say no transfer was done. A blank can mean a step was not done or not done yet; the Notes say which, and so should your summary if you ask it to.

If something on the list is not true, tell your AI tool in a sentence what you see and what you expected, for example: “LINE-B shows 220 embryos. B-07 was used in the July test thaw, so show 195 as well, and flag B-07.”

Notice what a test thaw speaks for

Look at LINE-A beside your planning numbers: 222 embryos, more than 200, in two tanks, and a test thaw where 22 of 24 recovered embryos came through intact. On those figures alone it looks like the strongest line in the freezer. Ask your AI tool:

LINE-A's test thaw looks good. Which of its stored straws does that test thaw tell us about, and which tanks are they in? Don't change anything.

Before you read on: which straws would you say it speaks for?

Only the 10 March batch. The test thaw used A-01, from that batch, so it tells you about A-02 to A-05: 4 straws, 100 embryos, all in Tank 1. The 16 June batch, A-06 to A-10, 122 embryos, has never been thawed, and it is the only LINE-A material in Tank 2. Two tanks are there so that losing one does not lose the line. But if Tank 1 were lost, every LINE-A embryo left would come from a batch nobody has tested. The line meets both planning numbers and still has that gap; the planning numbers count embryos and tanks, not which of them have been tested.

LINE-B’s count turns on one straw. If B-07 was used on 8 July, the line has 195 embryos and is below the planning number; if the log is right and it is still in the tank, 220. Neither file can say which: the test-thaw log may name the wrong straw, or the freezing log may not have been updated. Checking starts with the service’s own records of that thaw, such as the sheet filled in on the day; only if they do not settle it does anyone look in canister 5 of Tank 1, under the service’s procedure for working with the tanks. That check is yours to do before the manager’s meeting, and what you find goes into the freezing log, not into the program. Even then, LINE-B has one batch, in one tank, and its 9 pups are a result from two of its ten straws, not the line recovered.

A test thaw tells you about the batch or male it came from, and the summary only counts: whether a line is safely banked, whether live animals can be reduced and whether to freeze more are decided by the service manager and the lab, under the facility’s procedures and the approved animal protocol.

One real run

Here is part of what one AI tool said after the question above, with Claude Code on 11 November 2026. Yours will word it differently; check your summary against the list above, not against this.

So of LINE-A's 222 stored embryos, 100 come from the tested batch,
and those are all in Tank 1. The 122 in Tank 2 are untested.

The line, batches and tanks it talks about are made up for this course.

How real records differ

  • How many to store is published differently by different sources, and none of it is a rule for your lines. One repository’s embryo service says: “We recommend storing 150-200 embryos to properly archive your line. This can take multiple attempts. In vitro Fertilization (IVF) and embryo cryopreservation can be highly variable between strains as well as with individual mice.” That is for its own service, with embryos from IVF frozen at the 4-cell stage (MMRRC at UNC, Embryo Cryopreservation, read 11 November 2026). A UK guidance page gives different example numbers for different kinds of line, depending on how many genetic changes the line carries and whether the line is kept homozygous or heterozygous, and says its examples are based on one common strain, adding that “requirements and timelines may vary for other backgrounds” (NC3Rs, Archiving best practice, last updated 24 August 2022, read 11 November 2026). This practice facility’s 200 embryos and 5 straws from each of two males are made up; your service’s numbers come from its own procedures and its own lines’ results.
  • A test thaw is often a culture, not a transfer. The same guidance says: “Test thaw one straw and culture to blastocyst stage (for strains known to have issues recovering animals post cryopreservation, an embryo transfer and live pups can be obtained to confirm viability, but this is not recommended as routine practice).” For sperm it says: “Test thawed sperm in IVF with one female.” What your service does, and when, is in its procedures.
  • Two tanks are not two sites. The guidance says: “Ensure your samples are split across two banks, and preferably two sites.” The summary counts tanks. It does not know whether two tanks share a room, a nitrogen supply, a fill schedule or an alarm.
  • An embryo count is not a count of carriers. These embryos come from a heterozygous x wild-type cross, so not all of them carry the allele. Pups born are not a line recovered until they are genotyped, and even then whether that is enough is the manager’s and the lab’s question.
  • Check what your service’s records hold that these two logs do not, such as tank fill logs, nitrogen levels and alarm events; every move of a straw between canisters or tanks; statuses such as shipped, discarded or missing; labels that do not match the log; donor ages and genotypes; strain background and health status; and for sperm, motility before freezing and after thawing. A summary built from two logs knows none of these.
  • Your service’s procedures say whose records these are. Check whether a line is unpublished, under an agreement, or covered by an animal protocol.

Keep going

Small changes do not need plan mode. Say each in a sentence, then run it again:

  1. “List the batches and males that have no test thaw yet, with the tanks their straws are in.” These are the batches and males with no test thaw yet. This practice service tests each freezing session and each male, and its manager decides which tests to schedule and when.
  2. “Draft a short note to LINE-B’s lab with the counts as they stand, and a blank for what we decide.” Check every number in it, and fill in the blank only after the manager and the lab have decided; nothing goes to the lab until then.
  3. “Does the program name any line, straw or tank from these practice files? If it does, make it work those out from the files instead.” A program built in a conversation may keep your examples written into it, and on next month’s files it would get them wrong.
  4. “Save a checkpoint.” Your AI tool saves a snapshot you can return to.

When you want a summary of your real records, use the finished program. It runs on your real files by itself, with your AI tool closed, so your AI tool never sees them. Nothing confidential or unpublished, and nothing about people or about animals under a protocol, goes to your AI tool or into this course folder. Your service’s freezer database or spreadsheet will not be shaped like the practice files: its columns will have other names, and a test thaw may be recorded in another form. Do these steps in order; the first five happen now, while your AI tool is open and this folder still holds only the practice files:

  1. Go through the data check, the questions in setup about what the data is, who decides how it is used, and which AI tool would see it. A lab’s line records are that lab’s and your service’s to decide on. Go on only if they allow this use.

  2. Decide on a folder of its own for your real files, outside this course folder, for example ~/cryo-summaries. Nothing has to be in it yet. If the folder is not there, ask your AI tool to make it: “Make an empty folder called cryo-summaries in my home folder.”

  3. Ask your AI tool for blank files and a made-up example to try: “Make me a blank freezing log and a blank test-thaw file my spreadsheet program can open, both in ~/cryo-summaries, and a made-up copy with one line in each, and show the program working on it.” Look for it running the program on the made-up line and showing its counts. Then look at your own export in a spreadsheet and tell your AI tool the names of its columns, with two rows you make up in the same shape, made-up line names, straws and numbers, never a real row. For example: “My freezer export has the columns Straw, Strain, Date, Cane, Dewar, Embryos and Status. Here are two made-up rows in the same shape. Change the program to read files like that.” Then paste the two rows you made up. Tell it, too, every status your records use, for example: “Our Status column can also say Shipped, Discarded or Missing. Count only In storage, and list every straw with any other status.” If your records are in a spreadsheet, save them as CSV files (a plain format your spreadsheet program’s Save As offers), which the program reads.

  4. The program still compares with the practice facility’s planning numbers and its two-tank rule. Tell your AI tool your service’s own planning numbers and its rule for where straws are stored, from its written procedures, in place of those, one sentence at a time, for example: “Our storage rule: every line split across two sites, not only two tanks.” Then ask: “Show me the comparison for one made-up line under the numbers and rule I gave you.” Work it out by hand, and say “Save a checkpoint.”

  5. Ask your AI tool for the exact line, for example: “Give me the exact one line to run this myself on the two record files in a folder called cryo-summaries in my home folder, with full paths, saving the spreadsheet there too.” Use your own folder’s name. If it offers to copy your real files into this folder instead, say no. Copy the line it gives you into a note. It will look something like this one, though yours may differ:

    Terminal window
    python3 /home/dana/bio-workbench/10-cryo-summary/cryo_summary/cryo_summary.py /home/dana/cryo-summaries/freezing-log.csv /home/dana/cryo-summaries/test-thaws.csv -o /home/dana/cryo-summaries/cryo-summary.xlsx

    If your summary is a page in the browser, you get a line that starts the page and an address instead; note too which button on the page opens a file. Read the example line left to right. python3 runs a Python program. Next comes the line summary program, in this lesson’s folder; then your freezing log and your test-thaw log, in cryo-summaries; -o and the name after it say where the spreadsheet file goes. /home/dana is the home folder of someone whose user name is dana; your own user name goes where dana is, and on a Mac the folders begin /Users/ instead of /home/. The line runs the program where it is, so leave this lesson’s folder in place. Each run replaces the spreadsheet file of the same name, so rename an old one first if you want to keep it. If you are unsure about any part, ask your AI tool now, while it is still open.

  6. Leave your AI tool the way you did at the start of this lesson.

  7. Save your two record files into cryo-summaries, with the names your noted line uses. Paste the line from your note at the $ or % prompt and press Enter. The summary appears beside your real files, not in the course folder. To come back to the lesson folder later, type this lesson’s folder line again, the line near the top of this page that begins with mkdir.

  8. Before the summary goes to your manager, check a few of its counts against the freezer database or the tank’s canister records. If they differ, find out why first.

Try another case

Before the quiz, write two or three sentences for yourself. A lab writes that its line has 300 embryos frozen across two tanks and a test thaw with live pups, and asks to send its last breeding pairs off the protocol next week. What would you look at in the records before the manager answers, and what would you tell the lab now?

A good answer asks which batches the test thaw came from and which tanks hold the untested ones, whether the pups were genotyped and how many carry the allele, and whether every straw the test used is marked as used. It tells the lab what the records show and that the decision is the manager’s and the lab’s together, not a number on a summary.

Key takeaways

  • Ask briefly, then give your planning numbers. Your AI tool’s questions fill in how each rate is counted.
  • Read the plan for what counts for what: stored straws only, each test thaw for its own batch or male, tanks per batch, both counts behind every rate.
  • A blank is not a zero, and a litter not yet born is not a failed transfer.
  • A test thaw speaks for its own batch. A line can meet every planning number and still have its only backup tank full of untested straws.
  • Practice data stays practice data: the service’s real records go to the finished program, with your AI tool closed, after the data check.
KNOWLEDGE CHECK

A line has 240 embryos in storage: batch 1, 110 embryos in Tank 1, and batch 2, 130 embryos in Tank 2. One straw from batch 1 was test-thawed and 21 of 23 recovered embryos were intact. What does that test thaw tell you?

What’s next

The next lesson is about quality checks on a stable isotope lab’s batches of analyses.

intellimetrics · Arlington, VA
© 2026 intellimetrics.net
Search lessons