Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计提醒

jgi-lakehouse杰吉莱克豪斯

Agent Skill

jgi-lakehouse 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

367

周安装

15

GitHub Stars

1

下载量

119
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:jgi-lakehouse(杰吉莱克豪斯)
来源仓库:https://github.com/fmschulz/omics-skills
仓库路径:skills/jgi-lakehouse
安装命令:
npx skills add https://github.com/fmschulz/omics-skills --skill jgi-lakehouse
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/fmschulz/omics-skills --skill jgi-lakehouse

简介

jgi-lakehouse 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。

  • 适用于基因组学或生物信息学相关数据湖资源查询。
  • 通过 npx skills add 命令从 GitHub 仓库安装并使用。
  • 安装前建议确认权限范围和维护状态,避免触发联网或文件读写操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

JGI Lakehouse Skill

Instructions

  1. Decide whether the task needs metadata from the Lakehouse or files from the JGI filesystem.
  2. Start with a small validation query, then remove LIMIT for final counts or complete result sets.
  3. Use the query and download patterns below instead of improvising SQL or filesystem paths.
  4. Record the exact tables, filters, taxon OIDs, file paths, and commands used.

Quick Reference

TaskAction
Find metadataQuery the Lakehouse with SQL
Download IMG genome packagesCopy {taxon_oid}.tar.gz from /clusterfs/jgi/img_merfs-ro/img_web/img_web_data/download/
Retrieve Mycocosm or Phytozome filesQuery portal.downloadRequestFiles, then copy from /global/dna/dm_archive/
Query metagenome proteinsUse the NUMG tables and join on both oid and gene_oid
Inspect schemasUse SHOW TABLES and DESCRIBE before writing larger joins

Input Requirements

  • Clear task description: metadata discovery, annotation lookup, file retrieval, or sequence download
  • Access to the relevant JGI environment and filesystem paths
  • Known identifiers when available: GOLD IDs, IMG taxon OIDs, project names, or organism names
  • Output scope: exploratory sample, complete count, or file retrieval target

Output

  • SQL queries or filesystem commands that match the request
  • Returned metadata, counts, taxon IDs, file paths, or copied files
  • A concise summary of what was found, including any limits or caveats

Quality Gates

  • Data source chosen correctly: Lakehouse for metadata, filesystem for sequence files
  • LIMIT removed from final comprehensive queries
  • Table and column names validated before final query execution
  • File paths and taxon OIDs recorded exactly

Examples

See the worked examples and query blocks below, especially:

  • ## NUMG (Metagenome Proteins) Agent Workflow
  • ## Downloading Genomes with IMG Taxon OIDs
  • ## Portal Downloads (Mycocosm / Phytozome)
  • ## Common Queries

Troubleshooting

Issue: Query returns only a sample and not the full answer Solution: Remove LIMIT after validating query shape and use aggregation for totals.

Issue: Expected genome sequences are not in the Lakehouse Solution: Use the filesystem paths described below; the Lakehouse is for metadata and annotations.

Quick Start

What is it? JGI's unified data warehouse (651 tables) + filesystem access to genome files.

Two data access methods:

  1. Lakehouse (Dremio) → Metadata, annotations, taxonomy (no sequences)
  2. JGI Filesystem → Actual genome files (FNA, FAA, GFF) via taxon OID

SQL Dialect: ANSI SQL (not PostgreSQL)

  • Use CAST(x AS type) not ::
  • Use REGEXP_LIKE() not ~
  • Identifiers with dashes need double quotes: "gold-db-2 postgresql"
-- Quick test
SELECT gold_id, project_name FROM "gold-db-2 postgresql".gold.project
WHERE is_public = 'Yes' LIMIT 5;

When to Use

  • Query JGI genomics metadata (GOLD, IMG, Mycocosm, Phytozome)
  • Find genomes and/or metagenomes by taxonomy, ecosystem, or phenotype.
  • Download microbial genomes with IMG taxon OIDs
  • Cross-reference GOLD projects with IMG annotations

Data Access: Lakehouse vs Filesystem

NeedSourceAccess Method
Metadata (taxonomy, projects)LakehouseSQL via REST API
Gene annotations (COG, Pfam, KO)LakehouseSQL via REST API
Genome sequences (FNA)JGI FilesystemCopy from /clusterfs/jgi/img_merfs-ro/
Protein sequences (FAA)JGI FilesystemCopy from /clusterfs/jgi/img_merfs-ro/
Metagenome proteins onlyLakehousenumg-iceberg.faa table

Critical insight: The Lakehouse is a METADATA warehouse. Genome sequences must be accessed from the JGI filesystem.


Key Data Sources

SourcePathContents
GOLD"gold-db-2 postgresql".gold.*Projects, studies, samples, taxonomy
IMG"img-db-2 postgresql".img_core_v400.*Taxons, genes, annotations (244 tables)
Portal"portal-db-1".portal.*Download tracking, file paths
Mycocosm"myco-db-1 mysql".<organism>.*Fungal genomes (2,711 schemas)
Phytozome"plant-db-7 postgresql".*Plant genomics
NUMG"numg-iceberg"."numg-iceberg".*Metagenome proteins, Pfam hits

Full table catalog: See docs/data-catalog.md


NUMG (Metagenome Proteins) Agent Workflow

Use NUMG when the task is metagenome protein sequence/domain analysis.

Scope rules:

  • numg-iceberg is metagenome-focused.
  • Do not use NUMG for isolate genome protein retrieval; use IMG filesystem packages.

Core tables:

  • "numg-iceberg"."numg-iceberg".faa

- oid, gene_oid, faa (protein sequence)

  • "numg-iceberg"."numg-iceberg".gene2pfam

- oid, gene_oid, pfam, evalue, alignment coordinate fields

Recommended query flow:

-- 1) Confirm available NUMG tables
SHOW TABLES IN "numg-iceberg"."numg-iceberg";

-- 2) Inspect schema before writing joins/filters
DESCRIBE "numg-iceberg"."numg-iceberg".faa;
DESCRIBE "numg-iceberg"."numg-iceberg".gene2pfam;

-- 3) Domain filter (use exact lowercase pfam IDs)
SELECT oid, gene_oid, pfam, evalue
FROM "numg-iceberg"."numg-iceberg".gene2pfam
WHERE pfam IN ('pfam00001', 'pfam00004')
LIMIT 100;

-- 4) Join domains to protein sequences
SELECT
  p.oid,
  p.gene_oid,
  p.pfam,
  p.evalue,
  f.faa
FROM "numg-iceberg"."numg-iceberg".gene2pfam p
JOIN "numg-iceberg"."numg-iceberg".faa f
  ON p.oid = f.oid
 AND p.gene_oid = f.gene_oid
WHERE p.pfam = 'pfam00001'
LIMIT 100;

Important NUMG rules:

  • Join on both oid and gene_oid (not gene_oid alone).
  • Keep Pfam filters exact (pfam00001, not case-transformed).
  • Always start with LIMIT and expand only after verifying row shape.

See also: examples/05-query-numg-metagenome-proteins.md


Downloading Genomes with IMG Taxon OIDs

Option 1: JGI Filesystem (Fastest)

# Genome packages are at:
/clusterfs/jgi/img_merfs-ro/img_web/img_web_data/download/{taxon_oid}.tar.gz

# Example: Copy and extract
cp /clusterfs/jgi/img_merfs-ro/img_web/img_web_data/download/8136918376.tar.gz .
tar -xzf 8136918376.tar.gz

Package contents:

  • {taxon_oid}.fna - Genome assembly
  • {taxon_oid}.genes.faa - Protein sequences
  • {taxon_oid}.genes.fna - Gene nucleotide sequences
  • {taxon_oid}.gff - GFF annotations
  • {taxon_oid}.cog.tab.txt - COG annotations
  • {taxon_oid}.pfam.tab.txt - Pfam annotations
  • {taxon_oid}.ko.tab.txt - KEGG KO annotations

Portal Downloads (Mycocosm / Phytozome)

The portal tracks downloadable files for Mycocosm and Phytozome in "portal-db-1".portal.downloadRequestFiles. Use filePath to copy data from the JGI filesystem (/global/dna/dm_archive/...).

Mycocosm (fungal genomes/proteins):

SELECT filePath, fileType
FROM "portal-db-1".portal.downloadRequestFiles
WHERE LOWER(filePath) LIKE '%mycocosm%'
  AND (filePath LIKE '%.fasta%' OR filePath LIKE '%.fa%' OR filePath LIKE '%.faa%')
LIMIT 20;

Phytozome (plant genomes/proteins):

SELECT filePath, fileType
FROM "portal-db-1".portal.downloadRequestFiles
WHERE LOWER(filePath) LIKE '%phytozome%'
  AND (filePath LIKE '%.fa%' OR filePath LIKE '%.fna%' OR filePath LIKE '%.faa%')
LIMIT 20;

Download from filesystem:

cp /global/dna/dm_archive/<path/from-filePath> .

Notes:

  • fileType typically includes Assembly, Annotation, or Sequence.
  • virtualPath can provide a user-facing download label but filePath is the real location.

Query Best Practices

⚠️ CRITICAL: When building queries, distinguish between exploration and comprehensive analysis:

Exploration Queries

Use LIMIT for quick validation during development:

-- For testing query structure and results
SELECT gold_id, project_name
FROM "gold-db-2 postgresql".gold.project
WHERE is_public = 'Yes'
LIMIT 10;  -- ✓ OK for testing

Comprehensive Queries

Remove LIMIT and other result-limiting clauses when answering actual questions:

-- For getting actual dataset counts/results
SELECT COUNT(DISTINCT taxon_oid)
FROM "img-db-2 postgresql".img_core_v400.taxon
WHERE genome_type = 'metagenome'
  AND is_public = 'Yes';
-- ✓ No LIMIT - gets true total

Common pitfalls:

  • LIMIT 100 on initial exploration → assumes only 100 results exist
  • LIMIT 50 on a "find all" query → misses 99% of data
  • ❌ Using FETCH FIRST N ROWS → same issue as LIMIT

Best practice:

  1. Use LIMIT with COUNT(*) or small LIMIT during development
  2. Once query logic is correct, remove LIMIT to get true results
  3. For very large result sets, use aggregation (COUNT, GROUP BY) to summarize instead

Common Queries

Find Bacterial Isolate Genomes

-- Get count of all finished bacterial isolates
SELECT COUNT(DISTINCT taxon_oid) as total_isolates
FROM "img-db-2 postgresql".img_core_v400.taxon
WHERE domain = 'Bacteria'
  AND genome_type = 'isolate'
  AND is_public = 'Yes'
  AND seq_status = 'Finished';

-- Get sample of isolates (if you need details)
SELECT taxon_oid, taxon_display_name, phylum, genus, species
FROM "img-db-2 postgresql".img_core_v400.taxon
WHERE domain = 'Bacteria'
  AND genome_type = 'isolate'
  AND is_public = 'Yes'
  AND seq_status = 'Finished'
LIMIT 100;

Link GOLD Project to IMG Taxon

SELECT COUNT(DISTINCT t.taxon_oid) as total_linked
FROM "img-db-2 postgresql".img_core_v400.taxon t
WHERE t.sequencing_gold_id IS NOT NULL;

Find Genomes with File Paths (Portal)

SELECT COUNT(DISTINCT taxonOid) as total_tar_gz
FROM "portal-db-1".portal.downloadRequestFiles
WHERE taxonOid IS NOT NULL
  AND filePath LIKE '%.tar.gz';

Critical Pitfalls

WrongCorrect
Using LIMIT in comprehensive queriesRemove LIMIT when answering actual questions; use COUNT() for aggregation
Join ncbi_assembly on project_idncbi_assembly has no project_id; use bioproject or biosample
project.ecosystemJoin study via master_study_id
SHOW SCHEMAS IN "source"Works, but some syntax errors in older Dremio
Get sequences from LakehouseDownload from JGI filesystem
sra_experiment_v2.platformUse library_instrument
gene_ko_terms = 'K00025'Use gene_ko_terms = 'KO:K00025'
Join NUMG on gene_oid onlyJoin on both oid and gene_oid
Case-normalizing large function tablesUse exact normalized values (pfam00001, COG1389, etc.)
Isolate benchmark counts varyAdd obsolete_flag = 'No' and is_public = 'Yes'
IMG.gene_feature fails expansionFallback to "img-db-2 postgresql".img_core_v400.* tables
show_schemas() misses sourcesUse higher limit (e.g. show_schemas(limit=2000))

Authentication

export DREMIO_PAT=$(cat ~/.secrets/dremio_pat)

Token setup: See docs/authentication.md


API Access

REST API Base: http://lakehouse-1.jgi.lbl.gov:9047/api/v3

# Use scripts/rest_client.py
from rest_client import query
results = query("SELECT * FROM ... LIMIT 10")

Arrow Flight (Python)

For higher-performance programmatic access, use Arrow Flight with Python.

python3 -m venv venv
. venv/bin/activate
pip install \
  https://github.com/dremio-hub/arrow-flight-client-examples/releases/download/dremio-flight-python-v1.1.0/dremio_flight-1.1.0-py3-none-any.whl

Full guide: docs/arrow-flight-python.md


Documentation

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.63%
按下载量换算40

Claude

30.41%
按下载量换算36

Cursor

18.85%
按下载量换算22

Gemini CLI

9.72%
按下载量换算12

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills