Skip to content
curate-bulk-rnaseq logo

Bulk RNA-seq Dataset Curation

curate-bulk-rnaseq

Process bulk RNA-seq datasets for VEuPathDB resources

SKILL.md

Full skill instructions

Bulk RNA-seq Dataset Curation

This skill guides processing of bulk RNA-seq datasets for VEuPathDB resources.

Prerequisites Check

This workflow requires the following repositories in veupathdb-repos/:

  • ApiCommonPresenters
  • EbrcModelCommon

First, run the repository status check to verify repositories are present:

Note: this script is located in the skill directory

bash scripts/​check-repos.sh ApiCommonPresenters EbrcModelCommon

If repositories are missing, the script will provide clone instructions.

Branch Confirmation: After verifying repositories exist, check their current branches and status using git -C <path>, then confirm with the user before proceeding.

Example:

git -C veupathdb-repos/​ApiCommonPresenters branch --show-current
git -C veupathdb-repos/​ApiCommonPresenters status -sb

Working Directory (Curation Workspace Directory)

IMPORTANT: All commands in this workflow must be run from your curation workspace directory (the directory that contains veupathdb-repos/ as a subdirectory).

For Claude Code:

  • DO NOT use cd commands to change into subdirectories
  • Use git -C <path> for git operations in subdirectories
  • Use absolute paths or relative paths from the curation workspace directory

The workflow creates:

  • tmp/ - Intermediate files (gitignored)
  • delivery/​bulk-rnaseq/<BIOPROJECT>/ - Pipeline outputs (gitignored)

Required Information

Gather the following before starting:

Optional: Journal Article PDF

If a journal article is available for this dataset, providing it enhances the curation workflow:

  • Better descriptions: Abstract and introduction provide richer experiment context
  • Strandedness detection: Methods section reveals library prep protocol
  • Contact identification: Author affiliations clarify roles (experimentalist, analyst, submitter)
  • Sample annotation context: Methods help decode unclear sample metadata

To include a PDF:

  1. Download the article PDF
  2. Copy it to tmp/<BIOPROJECT>_article.pdf (e.g., tmp/​PRJNA1018599_article.pdf)
  3. Tell Claude the PDF is available when starting Step 1

The PDF will be processed by a subagent once in Step 1 and extracted data saved to tmp/<BIOPROJECT>_pdf_extracted.json for use throughout the workflow.

Workflow Overview

Step 1: Fetch Metadata (and Extract PDF)

Fetch run-level metadata from ENA and sample attributes from NCBI BioSample. If a journal article PDF is available, extract key information for use in later steps.

Commands:

node scripts/​fetch-sra-metadata.js <BIOPROJECT>

Output: tmp/<BIOPROJECT>_sra_metadata.json

Optional - Fetch MINiML for GEO-linked datasets:

node scripts/​fetch-miniml.js <BIOPROJECT>

Output: tmp/<GSE>_family.xml (if GEO-linked)

Optional - Extract PDF data:

If tmp/<BIOPROJECT>_article.pdf is present, a subagent will extract it (do not read it yourself).

Output (on success): tmp/<BIOPROJECT>_pdf_extracted.json

Detailed instructions: Step 1 - Fetch Metadata

Step 2: Analyze Samples

Claude analyzes the fetched metadata to:

  1. Identify experimental factors (attributes that vary between samples)
  2. Generate sample annotations with meaningful labels
  3. Group technical replicates
  4. Determine strand specificity

Output: tmp/<BIOPROJECT>_sample_annotations.json

Detailed instructions: Step 2 - Analyze Samples

Step 3: Curate Contacts

Identify and curate contact entries from GEO contributors or BioProject submitters.

Actions:

  • Search existing contacts in veupathdb-repos/​EbrcModelCommon/​Model/​lib/​xml/​datasetPresenters/​contacts/​allContacts.xml
  • Create new contact entries if needed
  • Present choices to curator for review

Detailed instructions: Step 3 - Curate Contacts

Step 4: Generate Presenter XML

Generate the datasetPresenter XML, review/​edit it, then insert into the presenter file.

Command:

node scripts/​generate-presenter-xml.js <BIOPROJECT> <PROJECT> <PRIMARY_CONTACT_ID> [ADDITIONAL_CONTACT_IDS...]

Output: tmp/<BIOPROJECT>_presenter.xml

Workflow:

  1. Generate initial XML with script (saves to tmp/)
  2. Review and edit the temp file to fill in TODOs (shortDisplayName, pubmedIds, etc.)
  3. Insert finalized XML into presenter file

Target file: veupathdb-repos/​ApiCommonPresenters/​Model/​lib/​xml/​datasetPresenters/<PROJECT>.xml

Detailed instructions: Step 4 - Generate Presenter

Step 5: Generate Delivery Outputs

Generate pipeline configuration files for the data processing team.

Commands:

bash scripts/​check-delivery-dirs.sh bulk-rnaseq <BIOPROJECT>
node scripts/​generate-analysis-config.js <BIOPROJECT> [--strand-specific]
node scripts/​generate-samplesheet.js <BIOPROJECT> [strandedness]

The strandedness argument accepts: stranded, unstranded, or auto. If omitted, the script checks _pdf_extracted.json and _sample_annotations.json before falling back to auto.

Outputs in delivery/​bulk-rnaseq/<BIOPROJECT>/:

  • analysisConfig.xml - Pipeline configuration
  • samplesheet.csv - Also for the processing pipeline

Detailed instructions: Step 5 - Generate Outputs

Next Steps

After completing this workflow:

  1. Review generated XML for TODO fields that require curator input
  2. Commit changes to dataset branch (curator handles git operations)
  3. Create pull request for review (curator handles PR creation)
  4. Deliver output files from delivery/​bulk-rnaseq/<BIOPROJECT>/ to data processing team

Resources

Scripts

  • scripts/​fetch-sra-metadata.js - Fetches SRA run metadata from ENA + BioSample attributes from NCBI
  • scripts/​fetch-miniml.js - Fetches MINiML XML for GEO-linked datasets
  • scripts/​generate-presenter-xml.js - Generates RNA-seq datasetPresenter XML
  • scripts/​generate-analysis-config.js - Generates analysisConfig.xml for pipeline
  • scripts/​generate-samplesheet.js - Generates/​delivers samplesheet.csv and sampleAnnotations.json
  • scripts/​check-repos.sh - Validates veupathdb-repos/ repository setup (synced from shared/)
  • scripts/​check-delivery-dirs.sh - Creates delivery directory structure (synced from shared/)

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View