From ChatGPT to AI Agents: Practical RNA-seq Workflows with Claude Code

Hands-on Project

Part 1. Set Up the Project Directory

1.1 Set up your Claude account (if needed)

If you have not set up your Claude account on a BioHPC server, follow the instructions here.

https://biohpc.cornell.edu/doc/setup_account_claude.html

 

1.2 Connect to your assigned server.

Find your assigned server on this page:

https://biohpc.cornell.edu/ww/machines.aspx?i=169

 

1.3 Prepare your working directory and data

You should see :

 

1.4 Inspect the two guardrail files.

Descriptions:

You may use either RNA-seq protocols for this project. If you want to run both protocols, make sure to run them in two different sessions.

Part 2. Run Claude Code

2.1 Start Claude Code

If your Claude account is not been linked, you will be prompted to connect it.

Use number keys or arrow keys + Enter to navigate prompts.

 

2.2 Default file access policy

By default Claude Code always asks for permission before modifying or deleting file. If this default policy is changed, you can find setting in the file ~/.claude/settings.json.

 

2.3 Generate the RNA-seq pipeline script

⏱ Runtime: ~2 minutes. Claude will generate a script.

 

Exit Claude:

To resume later:

 

2.4 Run the RNA-seq data analysis script

Inspect the script and the formatted sample file:

Then run

⏱ Runtime: ~5–10 minutes (small training dataset)

Optional (skip computation and copy the pre-made results):

 

2.5 Verify results

Resume Claude:

Ask:

Other useful prompts:

You can download HTML reports using FileZilla and view them locally.

 

2.6 Downstream data analysis

Example tasks:

If Claude creates but does not run a script:

Plots are saved as .png files. You can:

2.7 Function over-representation analysis (ORA).

ORA requires a GO annotation file. For most model organisms, GO annotation files are available online.

If the GO annotation file is not available, generate it in two steps:

  1. Ask the agent to create a protein fasta file:

  1. use the BLAST2GO on BioHPC to generate the GO annotation: https://biohpc.cornell.edu/lab/userguide.aspx?a=software&i=73#c

For this workshop, use the pre-made GO annotation file: R64.go.txt

Alternative:

Adjust thresholds:

 

Part 3. Documentation

Documentation is essential in research.

Example prompts:

 

Part 4. Using VS Code (optional)

VS Code improves visualization and workflow.

Setup instructions: https://biohpc.cornell.edu/doc/setup_account_claude.html

VS Code layout:

 

Running Claude in VS Code

Option 1: Terminal

Option 2: Agent panel (GUI)

Key concepts:

Switching agents:

At the top of the panel, you can select which Agent to use for your project:

Codex: OpenAI agent

Claude: Anthropic agent

Chat: Microsoft Copilot agent

Project directory = folder opened in VS Code

Open with: Ctrl + Shift + P → Open Folder

Session management:

Try this example

The .png will appear in the file explorer—double-click to view.