Flow Bioのロゴ

Flow Bio

組織人気
ClawBio
flow-bio

Flow.bio API bridge — authenticate, browse pipelines/samples/projects, search, upload data, launch pipeline executions, and check run status on any Flow instance.

概要

公開者ClawBio
リポジトリClawBio
スキル名flow-bio
スター
1.2K
フォーク
280
同梱ファイル
4
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 4個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    ClawBioがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルFlow BioをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/ClawBio/ClawBio/tree/main/skills/flow-bio
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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/flow-bio .claude/skills/flow-bio
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでFlow Bioを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にFlow Bioを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Flow Bioは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Flow Bio Bridge

ClawBio's gateway to the Flow.bio platform — browse, search, upload, and launch bioinformatics pipelines on Flow from the command line.

Why This Exists

Flow.bio is a bioinformatics platform hosting curated Nextflow pipelines with managed compute, sample tracking, and collaborative project management. But interacting with Flow requires navigating the web UI or writing custom API scripts.

Flow Bio Bridge makes the platform agent-accessible: authenticate once, then list pipelines, upload samples, launch executions, and poll for results — all from the CLI or via the ClawBio orchestrator.

  • Without it: Users must switch between web UI and local analysis, manually track execution IDs, and write one-off upload scripts
  • With it: A single CLI covers discovery, upload, execution, and status checking across any Flow instance
  • Why ClawBio: Chain Flow pipeline outputs with local ClawBio skills (e.g. Flow RNA-seq → ClawBio diffviz)

Core Capabilities

  1. Authentication — Login via username/password, existing JWT token, or environment variables
  2. Pipeline discovery — List and inspect available Nextflow pipelines with versions and parameter schemas
  3. Sample management — List, search, and upload samples with metadata and organism tagging
  4. Project browsing — List owned/shared projects and their contents
  5. Execution tracking — Launch pipeline runs, poll status, and retrieve logs
  6. Search — Full-text search across samples, projects, data, and executions
  7. Data listing — Browse owned and shared data files
  8. Organism & type discovery — List available organisms and sample types for uploads
  9. Overview mode — Live overview of any Flow instance; public data without credentials, full account view with login

Input Formats

FormatExtensionRequired FieldsExample
FASTQ (single-end).fq, .fastq, .fq.gzreads1sample_R1.fastq.gz
FASTQ (paired-end).fq, .fastq, .fq.gzreads1, reads2sample_R1.fastq.gz, sample_R2.fastq.gz
Any data fileany—annotation, reference, BED, etc.

Workflow

When the user asks to interact with Flow.bio:

  1. Authenticate: Use stored token, env vars, or prompt for credentials
  2. Discover: List pipelines, sample types, organisms as needed
  3. Act: Upload samples, launch executions, or query status
  4. Report: Write structured output (JSON + markdown) to output directory
  5. Bundle: Generate reproducibility commands and checksums

CLI Reference

bash
# Login (stores token for subsequent calls)
python skills/flow-bio/flow_bio.py --login --username USER --password PASS
python skills/flow-bio/flow_bio.py --login --token TOKEN

# Discovery
python skills/flow-bio/flow_bio.py --pipelines
python skills/flow-bio/flow_bio.py --samples
python skills/flow-bio/flow_bio.py --projects
python skills/flow-bio/flow_bio.py --organisms
python skills/flow-bio/flow_bio.py --sample-types
python skills/flow-bio/flow_bio.py --executions
python skills/flow-bio/flow_bio.py --data

# Inspect details
python skills/flow-bio/flow_bio.py --execution EXEC_ID
python skills/flow-bio/flow_bio.py --sample SAMPLE_ID
python skills/flow-bio/flow_bio.py --pipeline PIPELINE_ID

# Inspect details via clawbio.py runner (uses --*-detail flags)
python clawbio.py run flow --execution-detail EXEC_ID
python clawbio.py run flow --sample-detail SAMPLE_ID
python clawbio.py run flow --pipeline-detail PIPELINE_ID

# Search
python skills/flow-bio/flow_bio.py --search "RNA-seq tumor"

# Raw JSON output (for piping to jq, etc.)
python skills/flow-bio/flow_bio.py --samples --json

# Upload sample
python skills/flow-bio/flow_bio.py --upload-sample \
  --name "Tumour_01" --sample-type "RNA-Seq" \
  --reads1 R1.fastq.gz --reads2 R2.fastq.gz \
  --organism "Homo sapiens" --project PROJECT_ID

# Launch pipeline
python skills/flow-bio/flow_bio.py --run-pipeline PIPELINE_VERSION_ID \
  --run-samples SAMPLE_ID1,SAMPLE_ID2 --output /tmp/flow_run

# Check execution status
python skills/flow-bio/flow_bio.py --execution EXEC_ID --output /tmp/flow_status

# Overview (public endpoints, no credentials needed)
python skills/flow-bio/flow_bio.py --demo --output /tmp/flow_demo

# Overview with authentication (shows owned samples, projects, executions)
python skills/flow-bio/flow_bio.py --demo --username USER --password PASS --output /tmp/flow_demo

Demo

bash
# Public overview (no credentials)
python skills/flow-bio/flow_bio.py --demo --output /tmp/flow_demo

# Full overview with account data
python skills/flow-bio/flow_bio.py --demo --username USER --password PASS --output /tmp/flow_demo

Expected output: a live overview of the Flow.bio instance showing available pipelines, organisms, and sample types (public), plus owned samples, projects, and executions if authenticated.

Algorithm / Methodology

  1. Token acquisition: POST /login with credentials → JWT token (5-min access, 7-day refresh)
  2. API traversal: RESTful GET/POST with Authorization: Bearer <token> header
  3. Pagination: Offset-based (?page=N) with lazy loading
  4. Chunked upload: Files split into 1 MB chunks, uploaded sequentially with progress tracking
  5. Execution polling: GET /executions/<id> until status reaches terminal state

Key parameters:

  • Base URL: https://app.flow.bio/api (configurable via FLOW_URL)
  • Chunk size: 1 MB (configurable)
  • Rate limits: 1000 req/hr API, 100/hr uploads, 500/hr downloads

Example Queries

  • "What pipelines are available on Flow?"
  • "List my samples on Flow.bio"
  • "Upload these FASTQ files to Flow"
  • "Run the RNA-seq pipeline on my sample"
  • "What's the status of my Flow execution?"
  • "Search Flow for breast cancer samples"

Output Structure

output_dir/
├── report.md              # Summary of Flow API interaction
├── result.json            # Machine-readable response data
└── reproducibility/
    ├── commands.sh        # Portable replay recipe (CLAWBIO_ROOT / OUTPUT_DIR)
    ├── environment.yml    # Conda environment for the run (python + requests)
    └── checksums.sha256   # SHA-256 of report.md and result.json

Dependencies

Required:

  • requests >= 2.28 — HTTP client for REST API calls

Optional:

  • tqdm — progress bars during file upload (graceful degradation without it)

Safety

  • Credentials never stored on disk — tokens held in memory or via environment variables only
  • No destructive defaults — delete/transfer operations are not exposed in v0.1
  • Audit trail: Every API interaction logged to reproducibility bundle
  • Disclaimer: ClawBio is a research and educational tool. It is not a medical device and does not provide clinical diagnoses. Consult a healthcare professional before making any medical decisions.

Integration with Bio Orchestrator

Trigger conditions — the orchestrator routes here when:

  • User mentions "flow", "flow.bio", "flow pipeline", "run on flow"
  • User wants to upload samples to a cloud platform
  • User asks about pipeline execution status on Flow

Chaining partners:

  • rnaseq-de — Flow RNA-seq pipeline output → ClawBio differential expression
  • diffviz — Flow DE results → ClawBio visualization
  • scrna-orchestrator — Flow Cell Ranger output → ClawBio scRNA analysis
  • illumina-bridge — Illumina DRAGEN → Flow upload → pipeline execution

Citations

  • Flow.bio — Bioinformatics platform
  • Nextflow — Workflow engine powering Flow pipelines

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Flow Bio」では何ができますか?

Flow.bio API bridge — authenticate, browse pipelines/samples/projects, search, upload data, launch pipeline executions, and check run status on any Flow instance.

TypingMindでFlow Bioを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Flow Bioはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにFlow Bioをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/ClawBio/ClawBio/tree/main/skills/flow-bioを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Flow Bioを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Flow Bioは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもFlow Bioを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Flow Bio」は無料ですか?

はい。ClawBioがGitHubでMITライセンスの下で公開しています。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇