본문으로 건너뛰기
cccskills
무료GitHub에 공개

bioconductor-qvalue

This package takes a list of p-values resulting from the simultaneous testing of many hypotheses and estimates their q-values and local FDR values. The q-value of a test measures the proportion of false positives incurred (called the false

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md6.0 KB

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

<!-- biomate-cta -->

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 →

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

The package contains functions for exploratory oligonucleotide array analysis. The dependence on tkWidgets only concerns few convenience functions. 'affy' is fully functional without it.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

bioMate-AI/biomate-bioconductor-kb7972026년 6월 21일 업데이트

This tool uses the label-tree function from HyPhy to annotate a phylogenetic tree. It allows users to select a subset of leaves using either a regular expression or a list of sequence names, and then apply a specified label to these selecte

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

bioMate-AI/biomate-bioconductor-kb7972026년 6월 21일 업데이트

This package provides a client for the Bioconductor AnnotationHub web resource. The AnnotationHub web resource provides a central location where genomic files (e.g., VCF, bed, wig) and other resources from standard locations (e.g., UCSC, En

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

bioMate-AI/biomate-bioconductor-kb7972026년 6월 21일 업데이트

apeglm provides Bayesian shrinkage estimators for effect sizes for a variety of GLM models, using approximation of the posterior for individual coefficients.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

bioMate-AI/biomate-bioconductor-kb7972026년 6월 21일 업데이트

ASURAT is a software for single-cell data analysis. Using ASURAT, one can simultaneously perform unsupervised clustering and biological interpretation in terms of cell type, disease, biological process, and signaling pathway activity. Inputting a single-cell RNA-seq data and knowledge-based databases, such as Cell Ontology, Gene Ontology, KEGG, etc., ASURAT transforms gene expression tables into original multivariate tables, termed sign-by-sample matrices (SSMs).

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

bioMate-AI/biomate-bioconductor-kb7972026년 6월 21일 업데이트

AUCell allows to identify cells with active gene sets (e.g. signatures, gene modules...) in single-cell RNA-seq data. AUCell uses the "Area Under the Curve" (AUC) to calculate whether a critical subset of the input gene set is enriched with

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

bioMate-AI/biomate-bioconductor-kb7972026년 6월 21일 업데이트

bioMate-AI의 스킬 모두 보기

이 스킬의 문제 신고