Bioconductor Qvalueのロゴ

Bioconductor Qvalue

組織
bioMate-AI
bioconductor-qvalue

このパッケージは、多数の仮説を同時に検定して得られたp値のリストを受け取り、q値と局所FDR値を推定します。検定のq値は、検定によって生じる偽陽性の割合(偽発見率と呼ばれます)を表します。

Add to TypingMind

概要

公開者bioMate-AI
リポジトリbiomate-bioconductor-kb
スキル名bioconductor-qvalue
スター
804
フォーク
66
同梱ファイル
指示のみ
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/bioMate-AI/biomate-bioconductor-kb.git /tmp/biomate-bioconductor-kb
mkdir -p .claude/skills
cp -r /tmp/biomate-bioconductor-kb/skills/general/qvalue .claude/skills/bioconductor-qvalue
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

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

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

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

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

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

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

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

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

スキルの指示

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

qvalue

Dependencies & Environment

Package-intrinsic requirements from the Bioconductor landing page — reproduce in any R environment.

  • Version: 2.44.0 · Bioconductor: 3.23 · R: ≥ 4.6
  • Imports: ggplot2, reshape2
  • Install: BiocManager::install("qvalue")

When to Use

  • False Discovery Rate Estimation: When analyzing thousands of features (e.g., differential gene expression) to estimate q-values and control the false discovery rate using qvalue.
  • Estimating True Nulls: When you need to estimate the overall proportion of true null hypotheses ($\pi_0$) from a distribution of p-values using pi0est.
  • Local FDR Calculation: When you want to calculate the empirical Bayesian posterior probability that a null hypothesis is true, conditional on the observed p-value, using lfdr.
  • Empirical P-value Calculation: When you have observed test-statistics and simulated/resampled null statistics and need to compute p-values using empPvals.

When NOT to Use

  • Dependent Test Statistics: When tests are strongly dependent or have uncorrected batch effects (indicated by a U-shaped p-value histogram), use the sva package first to correct the data.
  • Small-scale hypothesis testing: For experiments with very few tests, use standard Benjamini-Hochberg adjustment because the estimation of $\pi_0$ is highly unstable with small sample sizes.

Data Requirements

  • A numeric vector of p-values strictly bounded between 0 and 1, OR a vector of observed statistics and a matrix of empirical null statistics.
  • P-values must follow a Uniform(0,1) distribution under the null hypothesis (the right tail of the p-value histogram should be fairly flat).

Key Parameters

  • p (required): A vector of p-values.
  • fdr.level (NULL): The level at which to control the false discovery rate; returns a logical vector indicating significant tests.
  • pfdr (FALSE): Indicator of whether to use the positive false discovery rate (pFDR) to make the estimate more robust for small p-values.
  • lambda (seq(0, 0.95, 0.05)): Values of the tuning parameter considered in estimating $\pi_0$.
  • pi0.method ("smoother"): Method for automatically handling the tuning parameter in $\pi_0$ estimation ("smoother" or "bootstrap").
  • trunc (TRUE): If TRUE, local FDR estimates > 1 are set to 1 in lfdr.
  • stat (NULL): Vector of observed test-statistics calculated on the original data for empPvals.
  • stat0 (NULL): Matrix of empirical null statistics for empPvals.

Best Practices

  • Check P-value Histogram: Always view a histogram of the p-values (hist(p)) before running qvalue to confirm the right tail is flat.
  • Evaluate Pi0 Reliability: Use plot(qobj) to view the estimated $\pi_0$ versus the tuning parameter $\lambda$ to gauge the reliability of the $\pi_0$ estimate.
  • Summarize Results: Use summary(qobj) to view the $\pi_0$ estimate and the cumulative number of significant calls at various p-value, q-value, and local FDR cutoffs.

Common Pitfalls

  • U-shaped p-value histograms: Indicates dependence among variables or a one-sided test on data with two-sided signal. Fix: Compute p-values using a different model or use the sva package to correct for dependence.
  • Assuming q-values are adjusted p-values: Users often worry when q-values are smaller than original p-values. Fix: Understand that q-values are population quantities bounded by $\pi_0$, not Bonferroni adjusted p-values.
  • Incorrect empirical p-values: Passing statistics where larger values do not indicate more evidence against the null. Fix: Ensure statistics passed to empPvals are constructed such that larger values are "more extreme" (e.g., absolute values of t-statistics).

Alternatives

  • sva: For correcting dependent variables and batch effects before computing p-values.
  • fdrtool: Estimates local FDR and tail area FDR directly from z-scores or p-values.
  • IHW: Incorporates covariates (like base mean expression) to increase statistical power.
  • ashr: Uses adaptive shrinkage to model the distribution of effects, providing robust local FDR estimates.

Citations

  • Storey JD. (2002). A direct approach to false discovery rates. Journal of the Royal Statistical Society, Series B, 64:479–498.
  • Storey JD. (2003). The positive false discovery rate: A Bayesian interpretation and the q-value. Annals of Statistics, 31:2013–2035.
  • Storey JD, Tibshirani R. (2003). Statistical significance for genome-wide experiments. Proceedings of the National Academy of Sciences, 100:9440–9445.

References


Run this on BioMate

This skill is the knowledge layer — when, why, and how to use qvalue. To run this analysis on your own data with managed compute, automated QC, and reproducible outputs, use BioMate — free to start.

▶ Open qvalue on BioMate →

よくある質問

AIスキル「Bioconductor Qvalue」では何ができますか?

このパッケージは、多数の仮説を同時に検定して得られたp値のリストを受け取り、q値と局所FDR値を推定します。検定のq値は、検定によって生じる偽陽性の割合(偽発見率と呼ばれます)を表します。

TypingMindでBioconductor Qvalueを使うメリットは何ですか?

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

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

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

Bioconductor Qvalueを使えるAIモデルはどれですか?

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

Bioconductor Qvalueで使えるAIモデルの数に制限はありますか?

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

AIスキル「Bioconductor Qvalue」は無料ですか?

bioMate-AIがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

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

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

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

すべて見る

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

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