← All posts

I asked Claude AI a question I already knew the answer to

I was working on an RNA-seq dataset recently and decided to test Claude on a step I could do in my head. I connected the tools and plugins, then asked it a question I already knew the answer to. The point was not to get the answer. It was to see how the AI would handle a simple step that a whole analysis pipeline depends on.

The question

Five genes from one control sample. Each had exactly 50,000 raw counts:

  • GAPDH, 1.3 kb
  • ACTB, 1.8 kb
  • MT-CO1, 1.5 kb
  • ALB, 2.0 kb
  • XIST, 19.3 kb

Are these genes expressed at the same level? Rank them from highest to lowest and give me RPK and TPM.

The answer is simple. Equal counts do not mean equal expression, because longer transcripts collect more reads. Divide the counts by length in kilobases and the order is GAPDH, MT-CO1, ACTB, ALB, XIST. The shortest gene ranks highest and the longest ranks lowest.

What the AI got right

The arithmetic was correct. Every RPK value was right:

GeneLength (kb)CountsRPK
GAPDH1.350,00038,462
MT-CO11.550,00033,333
ACTB1.850,00027,778
ALB2.050,00025,000
XIST19.350,0002,591

It also raised several good points without being asked. Five genes with identical counts look like a data problem. A 250,000-read total is implausible for a full library. ALB is liver-specific, so strong expression in a control sample is worth checking. XIST indicates the donor’s sex and should match the sample metadata. When I later asked about running differential expression on TPM, it said no and explained why, which is correct.

What it got wrong

The ranking was wrong. The table labeled “Rank” listed the genes in the order I typed them, which put ACTB second and MT-CO1 third. Below the table, the AI gave the correct order. It then said the table was “in your order, not this one”. So the table, which was the thing I had asked for, contradicted the text under it, and the AI explained the mismatch away instead of correcting it.

That explaining away is what concerns me. A wrong number can be fixed. A wrong number with a plausible explanation is the kind of error that gets through review, because it reads as if someone already checked.

A similar thing happened later, when I asked it to apply a Benjamini-Hochberg correction to eight p-values. Its first table had a column labeled “BH-adjusted” containing values from before the step that keeps adjusted p-values in rank order. XIST showed 0.0600 and APOA1 0.0640, when both should have been 0.0547. It fixed this in a second table a few lines down, but if you had taken the first table, you would have used numbers labeled “adjusted” that weren’t.

Neither mistake is exotic. They are the kind a first-year student makes, and they appear in the middle of output that is otherwise competent and well formatted. That is why they are dangerous.

Lesson one: check intermediate results, not just the final answer

The final answer is built from intermediate steps. If the ranking is wrong, everything downstream that uses it is wrong too: the normalization, the comparison to treated samples, and the list of genes you report to a client. If you only look at the conclusion, you won’t see where it came from.

So you must look at the results, including every intermediate table, to make sure the final output is correct. AI is an amazing research tool. It does the arithmetic faster than I can and it raises questions I might not think of. But it is no substitute for a good pair of eyes.

Lesson two: domain expertise is what makes the check possible

Checking only works if you know what the right answer looks like. I caught the ranking error immediately because I know a 1.5 kb transcript with the same count as a 1.8 kb transcript has the higher RPK. I knew why APOA1, with a raw p-value of 0.04, correctly fails at an FDR of 0.05. I knew the questions about ALB and XIST were real biology, not filler.

Without that background, the output would have looked fine. It was confident, well organized and mostly correct. A reviewer who can’t do the calculation, or doesn’t know what to expect in a polyA-selected control sample, has no way to tell the correct parts from the errors.

AI doesn’t remove the need for expertise. It moves it. Less time goes into producing the numbers and more into judging them. The judging can’t be delegated to the tool that produced the numbers.

Lesson three: tell the AI to save its trajectory

The most practical thing I learned from this is to tell the AI explicitly to save its trajectory: every question, every intermediate result and every correction, in order. A summary isn’t enough. When I first asked for the session to be saved, I got a tidy summary of the conclusions, which left out the error and its correction. I had to ask again for the verbatim transcript.

The full trajectory is what lets you review how a result was reached, not just what it was. It is also what you need if a client, a collaborator or a reviewer asks how you got a number. In regulated or high-stakes work, a record of the reasoning is part of the result.

The short version

  • Use AI. It is fast, it is often right, and it will raise useful questions.
  • Check every intermediate result, not only the final answer.
  • Be suspicious of explanations that make a discrepancy go away.
  • Make sure someone with the relevant expertise reviews the output.
  • Save the full trajectory so the work can be audited.

If you are bringing AI into a research workflow and want a scientist to check that the results hold up, get in touch.

Discuss this with me