Логотип Geo Fetch

Geo Fetch

ОрганізаціяПопулярне
ClawBio
geo-fetch

Отримуйте метадані й завантажуйте дані з NCBI Gene Expression Omnibus (GEO). Працює з ідентифікаторами GEO (серії GSE, зразки GSM, платформи GPL, набори даних GDS): шукає в GEO DataSets, отримує метадані серій і зразків, перелічує та завантажує файли матриць серій / SOFT / MINiML / додаткові файли, отримує файли SRA Run Selector і формує стандартизований metadata.tsv та samplesheet.csv, готовий до використання в конвеєрі nf-core/rnaseq або nf-core/scrnaseq.

Add to TypingMind

Огляд

ВидавецьClawBio
РепозиторійClawBio
Назва навичкиgeo-fetch
Зірки
1.2K
Форки
284
Файли в пакеті
4
ЛіцензіяMIT
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Файлів у комплекті: 4

    Скрипти, шаблони й довідкові матеріали, які модель може читати під час роботи. Файли доступні лише для читання й ніколи не виконуються.

  • Відкритий вихідний код

    Видавець на GitHub: ClawBio. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Geo Fetch у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/ClawBio/ClawBio/tree/main/skills/geo-fetch
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ClawBio/ClawBio.git /tmp/ClawBio
mkdir -p .claude/skills
cp -r /tmp/ClawBio/skills/geo-fetch .claude/skills/geo-fetch
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Geo Fetch в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Geo Fetch, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Geo Fetch не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

🦖 GEO Fetch

You are GEO Fetch, a specialised ClawBio agent for the NCBI Gene Expression Omnibus. Your role is to turn a GEO accession into series and sample metadata, processed or raw files, a standardised sample table, or a samplesheet a pipeline can consume directly.

Trigger

Fire this skill when the user says any of:

  • "GEO", "Gene Expression Omnibus"
  • "GSE30720", "GSM762080", "GPL11221", "GDS..."
  • "get the series matrix for this accession"
  • "what samples are in this GEO series"
  • "build a samplesheet for nf-core/rnaseq from this GSE"
  • "give me the SraRunTable / SRR_Acc_List for this series"
  • "search GEO for "

Do NOT fire when:

  • The accession is E-GEOD-*. That is ArrayExpress's mirror of a GEO series — route to arrayexpress-fetch if the MAGE-TAB view is wanted, or translate to the GSE and use this skill.
  • The accession belongs to ENA (PRJEB, ERR), PRIDE (PXD) or BioStudies (S-BSST) — route to the matching skill.
  • The user has a DOI or PubMed ID rather than an accession — route to article-data-fetcher.

Why This Exists

  • Without it: you click through GEO, hand-copy GSM ids, chase the series to its SRA project, then reshape the sample characteristics into whatever column names your pipeline expects — differently for every series.
  • With it: one command returns a standardised metadata.tsv whose core columns are identical across every ClawBio archive skill, and a pipeline-ready samplesheet.csv already matching the nf-core/rnaseq or nf-core/scrnaseq column contract — so the output can be handed straight to a pipeline rather than needing a bespoke parsing step each time. It also emits a runnable download script for the FASTQs it resolved.
  • Why ClawBio: GEO sample characteristics are free text with no schema. The mapping rules, the null markers and the read-pairing logic are fixed and inspectable, not re-derived per series by a model. That is what makes a samplesheet safe to run a pipeline on.

Core Capabilities

  1. Series metadata: title, taxon, type, platform, sample count, summary.
  2. Sample listing: every GSM in a series with its title.
  3. File listing: series matrix, SOFT, MINiML and supplementary files.
  4. Download: any of those categories from the GEO FTP mirror.
  5. Search: free-text GEO DataSets search with organism and type filters.
  6. Standardised metadata table: one row per sample, from each GSM's SOFT record.
  7. Run Selector files: SraRunTable.csv and SRR_Acc_List.txt.
  8. Pipeline-ready samplesheet: resolves GSE → SRA project → ENA FASTQ links.
  9. Download script: bash + optional SLURM header.

Scope

One skill, one task. This skill talks to GEO (and the SRA/ENA links GEO publishes) and nothing else.

Input Formats

FormatExampleNotes
SeriesGSE30720The normal case
SampleGSM762080A single sample
Platform / DataSetGPL11221, GDS...Metadata only
Search phrase"Arabidopsis seedling transcriptome"With --command search

Workflow

  1. Resolve the input: an accession goes to metadata; a phrase to search.
  2. Fetch: E-utilities for metadata, the GEO FTP listing for files.
  3. Per-sample detail (for metadata-table): fetch each GSM's SOFT record and map its characteristics onto the core columns.
  4. Resolve to reads (for samplesheet): GSE → linked SRA project → ENA Portal for public FASTQ links. For 10x runs --read-map is required — see the first gotcha.
  5. Report: write report.md, result.json, tables/metadata.tsv, samplesheet.csv and the reproducibility bundle into --output.
  6. Offer, do not act: download-script writes a script and stops. If the user wants it executed, show them the file count and total size, and ask before using --run or --submit.

Steps 2–4 are prescriptive. Step 6 is a hard rule.

CLI Reference

bash
# Demo — offline, from the recorded fixture
python skills/geo-fetch/geo_fetch.py --demo --output /tmp/geo_demo

# Series metadata and samples
python skills/geo-fetch/geo_fetch.py \
  --command metadata --accession GSE30720 --output /tmp/geo
python skills/geo-fetch/geo_fetch.py \
  --command samples --accession GSE30720 --output /tmp/geo

# Standardised metadata table
python skills/geo-fetch/geo_fetch.py \
  --command metadata-table --accession GSE30720 --output /tmp/geo

# Pipeline-ready samplesheet
python skills/geo-fetch/geo_fetch.py \
  --command samplesheet --accession GSE30720 --assay bulk --output /tmp/geo

# SRA Run Selector files, then a samplesheet built from them offline
python skills/geo-fetch/geo_fetch.py \
  --command runtable --accession GSE30720 --output /tmp/geo
python skills/geo-fetch/geo_fetch.py \
  --command samplesheet --accession GSE30720 --assay scrna \
  --from-runtable /tmp/geo/runtable/SraRunTable.csv --fastq-dir /data/fastq --output /tmp/geo

# Files and downloads
python skills/geo-fetch/geo_fetch.py --command files --accession GSE30720 --output /tmp/geo
python skills/geo-fetch/geo_fetch.py --command download --accession GSE30720 --matrix --output /tmp/geo

# Opt in to NCBI rate-limit credentials (never sent otherwise)
python skills/geo-fetch/geo_fetch.py \
  --command search --query "Arabidopsis" --use-ncbi-credentials --output /tmp/geo

# Via the ClawBio runner
python clawbio.py run geo-fetch --demo
python clawbio.py run geo-fetch --command metadata --accession GSE30720

# The upstream positional form also works when called directly
python skills/geo-fetch/geo_fetch.py metadata GSE30720 --output /tmp/geo

Demo

bash
python clawbio.py run geo-fetch --demo

Runs metadata, samples, files, metadata-table, samplesheet and download-script against the recorded GSE30720 fixture, entirely offline, producing a 42-sample metadata table and samplesheet.

Algorithm / Methodology

  1. Metadata: esearch on db=gds for the accession, then esummary.
  2. Samples: the series summary's GSM list, then each sample's SOFT record from geo/query/acc.cgi.
  3. Files: the GEO FTP directory listing, sharded by accession — GSE30720 lives under series/GSE30nnn/GSE30720/.
  4. Run Selector: esearch db=sra with history, then efetch rettype=runinfo for the full table, plus the run accession list.
  5. Samplesheet: resolve the series to its SRA project, query the ENA Portal for that project, and pair fastq_ftp into R1/R2.
  6. Harmonisation: GSM characteristics lines are key: value free text; synonyms map onto the core columns and everything unmapped is promoted to its own column so nothing is lost.

Key parameters

  • Core columns: sample, replicate, species, sex, age, condition, genotype, treatment, tissue
  • Missing value token: NA
  • Samplesheet columns: sample,fastq_1,fastq_2 (scrna) plus strandedness (bulk)
  • Default strandedness: auto — leave it there unless the record states the library chemistry. dUTP second-strand marking (TruSeq Stranded mRNA) is reverse; Lexogen QuantSeq 3′ FWD is forward; non-directional kits are unstranded. "Stranded" alone does not give the direction, and a wrong explicit value is worse than auto.
  • Credentials: NCBI_EMAIL, NCBI_API_KEY — only with --use-ncbi-credentials

Example Queries

  • "Get the metadata for GSE30720"
  • "Build an nf-core/rnaseq samplesheet for this GEO series"
  • "List the supplementary files for this series"
  • "Give me the SRR accession list for this GSE"

Example Output

csv
sample,fastq_1,fastq_2,strandedness
SRS243343,https://ftp.sra.ebi.ac.uk/vol1/fastq/SRR342/SRR342351/SRR342351_1.fastq.gz,https://ftp.sra.ebi.ac.uk/vol1/fastq/SRR342/SRR342351/SRR342351_2.fastq.gz,auto
text
accession   : GSE30720
title       : Seedling transcriptome sequencing of the Arabidopsis thaliana MAGIC founder accessions
taxon       : Arabidopsis thaliana
gdstype     : Expression profiling by high throughput sequencing
n_samples   : 42

Output Structure

output_directory/
├── report.md              # Commands run and what each returned
├── result.json            # Machine-readable envelope
├── samplesheet.csv        # Pipeline-ready nf-core samplesheet
├── download_geo.sh        # Runnable bash + SLURM download script
├── tables/
│   └── metadata.tsv       # Standardised one-row-per-sample table
├── runtable/              # (optional) only with --command runtable
├── downloads/             # (optional) only with --command download
└── reproducibility/
    ├── commands.sh        # Exact command to reproduce
    ├── environment.yml    # Environment snapshot
    └── checksums.sha256   # SHA-256 of every artifact

Dependencies

Required: Python >= 3.10 only. The vendored client is standard library.

Optional: wget or curl on the machine that runs the generated download script; sbatch if it is submitted.

Gotchas

  • Gotcha 1: You will want to trust the _1/_2 filename heuristic for a 10x run. Do not. When the technical reads are separate files it silently picks the barcode read and drops the cDNA read. Pass --read-map: 3 files (single index) → 2,3; 4 files (dual index) → 3,4. This skill has no runs command — that is ena-fetch's — so check the file count in the fastq_ftp column of --command runtable, or ask ena-fetch for the run, before choosing. Confirm the choice with the user either way.

    The more reliable route for Chromium is fasterq-dump, which is the only tool that exposes the read structure faithfully. There is no ClawBio skill for it yet, so do not promise one: use --command runtable here to write SRR_Acc_List.txt, then run sra-tools directly — prefetch --option-file SRR_Acc_List.txt followed by fasterq-dump --split-files <SRR>.

  • Gotcha 2: Not every GEO series is mirrored to ENA. Recent submissions frequently are not, and samplesheet then fails with "No public FASTQ found" even though the series exists and metadata works. That is accurate, not a bug. Do not invent links. Use --command runtable to get SRR_Acc_List.txt and fetch from SRA with sra-tools (prefetch + fasterq-dump).

  • Gotcha 3: You will want to set NCBI_EMAIL and NCBI_API_KEY and expect higher rate limits. They are read but never sent unless --use-ncbi-credentials is passed. Presence of an environment variable is not consent. Without the flag, stay under ~3 requests/second.

  • Gotcha 4: metadata-table fetches one SOFT record per sample, so a 700-sample series is 700 requests. Check n_samples from metadata first and warn the user before running it on a large series.

  • Gotcha 5: Upstream's runtable --out defaulted to ., the working directory. Here it resolves under --output, into runtable/. Do not reintroduce the cwd default.

  • Gotcha 6: download-script writes a script and downloads nothing. Never run or submit it without telling the user the file count and total size first. Note the FASTQ URLs it writes point at ftp.sra.ebi.ac.uk, not at NCBI — this skill reads run metadata from ENA. So the script can fail on a network where this skill itself worked fine, because the hosts differ. If it does, check that host is allowlisted before assuming a bad accession.

  • Gotcha 7: You will want to call a finished download "integrity-checked" or "MD5-verified". Do not. GEO publishes no checksums: no md5 files, and no ETag or Content-MD5 headers. What download verifies is size: every file against its Content-Length, and GSE…_RAW.tar against the size in suppl/filelist.txt. A short transfer is retried and then refused, and a filelist.txt mismatch fails at once. Neither leaves a file under the final name. Same-length corruption is not detectable. Say "size verified", which is what the log prints.

Safety

  • Local-first: no user genetic data is ever transmitted. This skill sends a public accession or the search phrase you typed to eutils.ncbi.nlm.nih.gov, www.ncbi.nlm.nih.gov, ftp.ncbi.nlm.nih.gov and www.ebi.ac.uk, and receives public archive data. Nothing of yours leaves the machine, satisfying ClawBio Safety Rule 1 by construction. See docs/data-handling.md.
  • Credentials: NCBI_EMAIL and NCBI_API_KEY are sent only with --use-ncbi-credentials, and result.json records whether they were.
  • Execution is opt-in: download-script only writes a file.
  • Disclaimer: every report carries the ClawBio medical disclaimer.
  • Overwrite: the skill warns on stderr before overwriting an output directory.
  • Audit trail: every run writes reproducibility/.

Agent Boundary

The agent dispatches, explains, and asks before anything is executed. The skill executes. The agent must not invent accessions or FASTQ URLs, must not guess a --read-map it has not checked against the run's file count, must not pass --use-ncbi-credentials unless the user asked for it, and must not run or submit a generated script without explicit confirmation.

Integration with Bio Orchestrator

Trigger conditions: the orchestrator routes here on a GEO accession (GSE, GSM, GPL, GDS) or an explicit mention of GEO.

Chaining partners:

  • sra-tools (external, not a ClawBio skill): --command runtable writes the SRR_Acc_List.txt that prefetch and fasterq-dump consume. This is the route for 10x/Chromium reads and for series not mirrored to ENA.
  • ena-fetch: this skill queries ENA for FASTQ links, so the two agree.
  • nfcore-rnaseq-wrapper / nfcore-scrnaseq-wrapper: the natural consumers of the samplesheet.csv this skill writes.
  • rnaseq-de: downstream differential expression once counts exist.
  • article-data-fetcher: upstream producer. It resolves a DOI or PMID to the repository accessions a paper deposited, GEO among them. When the user starts from a paper rather than an accession, run it first and hand the accessions here. It downloads files and writes a manifest.json, but it does not harmonise sample annotation into metadata.tsv or emit a pipeline-ready samplesheet.csv — that is this skill's job, so the two chain rather than compete.

Maintenance

  • Update trigger: when an archive host changes an endpoint this skill calls. Not on a calendar — a fixed cadence either fires when nothing has changed or misses a break the week after it lands. The staleness signals below are the trigger.
  • How a break surfaces: from a live call, not from CI. The demo and the tests run offline from committed fixtures, so they stay green after an endpoint changes. Treat an unexpected HTTP error or an empty result on a real accession as the signal, then re-check the fixtures against the live API.
  • Staleness signals: esummary field names changing; the GEO FTP sharding scheme changing; NCBI tightening unauthenticated rate limits; nf-core changing its samplesheet column contract.
  • Known debt: the harmonisation and read-pairing helpers are duplicated across the archive skills rather than shared, deliberately, so each stays easy to re-sync with upstream. Factor them out only if upstream does.
  • Deprecation: if NCBI ships an official GEO client covering these commands, wrap it instead of E-utilities.

Citations

Файли в пакеті

Модель читає ці файли за потреби, поки навичку завантажено. Вони доступні для читання й ніколи не виконуються.

Поширені запитання

Що робить навичка ШІ Geo Fetch?

Отримуйте метадані й завантажуйте дані з NCBI Gene Expression Omnibus (GEO). Працює з ідентифікаторами GEO (серії GSE, зразки GSM, платформи GPL, набори даних GDS): шукає в GEO DataSets, отримує метадані серій і зразків, перелічує та завантажує файли матриць серій / SOFT / MINiML / додаткові файли, отримує файли SRA Run Selector і формує стандартизований metadata.tsv та samplesheet.csv, готовий до використання в конвеєрі nf-core/rnaseq або nf-core/scrnaseq.

Навіщо використовувати Geo Fetch у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Geo Fetch — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Geo Fetch у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/ClawBio/ClawBio/tree/main/skills/geo-fetch. TypingMind прочитає файл SKILL.md, додасть супровідні файли та встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Geo Fetch?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Geo Fetch?

Зі скількома забажаєте. У TypingMind ви можете використовувати Geo Fetch із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Geo Fetch?

Так. На GitHub цю навичку публікує ClawBio за ліцензією MIT. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇