
One RNA-seq sample has 20 million counts. Another has nearly 25 million. Which has more detected genes? In a public mouse mammary gland dataset, the smaller library does. A coding agent can write and run the calculation that reveals the difference. A researcher still has to decide what the difference means. AIPOCH’s sample quality-control data
What is agentic coding?
Agentic coding is a way to give an AI agent a programming goal and let the agent inspect files, write and run code, and use the results to choose its next action, while the researcher sets the scientific question and decides what evidence will count as an answer.
An agent can choose a different tool or change course in response to an observation, a distinction Anthropic drew in its 2024 guide Building effective agents. A coding agent can also execute a test, read the failure and revise the implementation, as illustrated in Google Cloud’s agentic coding guide (accessed 2026).
Suppose you ask for Python to summarize a count matrix. With code completion, you get a suggestion, run it yourself and decide what to change. With agentic programming, as the term is used here, you can ask for a checked table. The agent opens the input, inspects the header and runs the calculation. If the table has thirteen sample rows when you specified twelve, the agent has a reason to revisit the column selection. One agent can do that work. A separate methods reviewer is an optional role. When specialist agents fit into research
How does agentic coding work?
Agentic coding works through a feedback loop in which the agent chooses an action, observes what actually happened and uses that observation to decide whether to revise the code, run another check, request a scientific decision or return a result the researcher can inspect.
In AIPOCH’s 2026 RNA-seq example, the attachment preview shows only part of the count matrix, so the agent reads the full file in the Notebook before calculating sample totals (input preview). If a file version cannot be found, the 2026 AIPOCH quality-control walkthrough recommends retrying with the attached matrix and verifying its filename and checksum before continuing.
For a research task, the most useful part of the prompt is often the acceptance test. “Check my data” leaves the agent to decide what success means. “Return one row per sample, preserve the original column names, and show that every gene is accounted for” gives both the agent and the researcher something to check. A failed test can send the agent back to an earlier stage.
What do the five stages look like in a research analysis?
A researcher can organize an agent-assisted analysis around five tasks that a colleague can review in turn, starting with a decision and an inspection of the input, then running the calculation, checking the output independently and handing over the evidence needed to repeat the work.
The 2015 GEO record for GSE60450 describes a study comparing gene expression in mouse mammary cell populations across developmental stages. The 2026 AIPOCH Open-Science walkthrough uses that study’s public matrix to check file integrity and summarize twelve samples before statistical analysis.
1. Define the decision and the stopping point
The first decision is whether the file is internally consistent enough to proceed to sample annotation. Give the agent a stopping point in the request. “Keep the input unchanged. Produce a table with one row per sample, a plot of total raw counts and a report explaining the checks. Stop before testing for differential expression.” A researcher can approve those outputs before the agent writes any code.
2. Inspect the input and identify the sample columns
The file has 27,179 gene rows. Two columns, EntrezGeneID and Length, describe the genes. The next twelve hold sample counts. A script that sums every numeric column could produce a convincing-looking extra library from gene lengths. Inspecting the header catches that error before plotting. The case also retains the full source column name beside each short display label, so a colleague can trace a plotted sample back to the matrix. Example data and expected results

The attachment preview shows the column order. The sample calculations start after the two gene metadata fields.
3. Run the code and check which genes enter the median
For each sample, the Open-Science Session Notebook calculates total raw counts, the number of zero-count genes, the number of genes with a positive count, and the median among genes with a positive count. That last phrase matters. Including zeros would answer a different question. For sample MCL1-DG, 18,515 genes contribute to the median of 237. The other 8,664 genes have a recorded zero. A blank cell would instead trigger an input check. Sample quality-control walkthrough
You can check that part of the calculation in two lines of Python. Here, counts holds one validated sample column and median comes from statistics.
detected_counts = [count for count in counts if count > 0]
median_among_detected = median(detected_counts) if detected_counts else None

The Notebook output records 27,179 rows and 14 columns in the input file. Twelve of those columns contain sample counts.
4. Check the saved table against the raw matrix
Start with a check you can do by hand. For MCL1-DG, 18,515 detected genes plus 8,664 zero-count genes equals all 27,179 rows. Then test something that arithmetic alone cannot catch, such as the right values attached to the wrong sample. We independently recalculated all four metrics from the public matrix and matched all 48 values to the saved CSV by original sample identifier. Two rows explain the opening puzzle. GEO count matrix · AIPOCH result table
| Sample | Total raw counts | Genes with a positive count |
|---|---|---|
| MCL1-DL | 20,015,386 | 18,010 |
| MCL1-LE | 24,723,827 | 16,701 |

The saved QC table keeps the original column name beside each short sample label so the results can be checked against the input.
The two measures answer different questions. A library total adds up every count. A detection tally counts each gene once if its count exceeds zero. The ordering can therefore reverse. Neither column alone gives a sound reason to exclude a sample.
5. Hand over the evidence and name the next decision
Keep the original matrix and the analysis code alongside the sample table, raw-count plot and methods report. Record the input checksum, software versions and definition of each metric so a colleague can repeat the calculation. The National Academies’ definition of computational reproducibility calls for consistent results using the same data, computational steps and conditions. In this case, the counts check out. To compare biological groups, a researcher still needs to map sample identifiers to experimental conditions and specify the comparison and normalization. Reproducibility and Replicability in Science

The raw-count plot shows library size. To see how many genes were detected in each sample, read the QC table.
The handoff depends on the research question. For a literature project, the equivalent deliverable might be an evidence table with a source location for each trial. For a computational project, the ability to reopen code alongside its outputs is a practical criterion for choosing a research workspace.
Download AIPOCH Open-Science to try an agent-assisted analysis in your own workspace. Start with the public GSE60450 matrix, run one sample check in the Notebook and compare the result with the published QC table.
What should researchers check before using agentic coding for an analysis?
Researchers can start with one calculation that has a checkable answer, then inspect the execution record, compare the saved output with an independent reference and keep the input, code and software versions together so a colleague can run the same analysis again.
The 2026 AIPOCH walkthrough uses the original sample identifier to match the saved metrics to an independent baseline. The National Academies’ 2019 report on reproducibility defines computational reproducibility in terms of consistent results using the same input data, computational steps and conditions.
Do I need to know Python to use a coding agent for research?
You can describe an analysis in plain language. To review the result, you or a collaborator should be able to follow how the code selects rows and columns, handles missing values and calculates each metric. Ask the agent to explain one result from input to output if a step is unclear.
What is a good first task for agentic coding in research?
Ask the agent to calculate one metric for one sample from a public dataset. For example, have it sum the counts for MCL1-DG, record the original column name and show the code it ran. Compare the total with the published value before extending the task to the other samples. Example data and expected results
How can I tell whether the agent actually ran the code?
Look for an executed cell or a run log that identifies the input and shows the result, then open the saved output and check that it agrees with the run. In the GSE60450 case, the Notebook shows the matrix dimensions and the saved CSV contains the sample metrics. AIPOCH Notebook walkthrough
What if the agent's result differs from my reference?
Start with the first value that differs. Confirm the file version, original sample identifier and metric definition. For example, a median of all gene counts can differ from a median of positive counts. Once you find the cause, rerun the calculation and check the saved table again. GSE60450 metric definitions
Can a colleague repeat the analysis without the original AI conversation?
Yes, if the colleague has the exact input, runnable code, instructions for setting up the software environment and a reference output to compare against. For a notebook, add a short note explaining how to run the cells from a fresh session. Reproducibility and Replicability in Science