# Bootstrap Confidence Interval Computation

> Use when when you have computed z-score deviations for genomic annotations (e.g., motifs) across multiple cells or samples and need to quantify uncertainty in their variability rankings before performing differential or comparative analyses.

- **Type:** Skill
- **Install:** `agentstack add skill-holobiomicslab-asb-skill-collections-bootstrap-confidence-interval-computation`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [HolobiomicsLab](https://agentstack.voostack.com/s/holobiomicslab)
- **Installs:** 0
- **Category:** [AI & ML](https://agentstack.voostack.com/c/ai-and-ml)
- **Latest version:** 0.1.0
- **License:** Apache-2.0
- **Upstream author:** [HolobiomicsLab](https://github.com/HolobiomicsLab)
- **Source:** https://github.com/HolobiomicsLab/asb-skill-collections/tree/main/collections/epigenomics/v1/skills/bootstrap-confidence-interval-computation
- **Website:** https://holobiomicslab.cnrs.fr

## Install

```sh
agentstack add skill-holobiomicslab-asb-skill-collections-bootstrap-confidence-interval-computation
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# bootstrap-confidence-interval-computation

## Summary

Compute bootstrap confidence intervals around variability metrics (e.g., standard deviations of z-scores) for genomic annotations by resampling cells or samples with replacement. This skill provides uncertainty quantification for ranking and hypothesis testing of motif variability across chromatin accessibility datasets.

## When to use

When you have computed z-score deviations for genomic annotations (e.g., motifs) across multiple cells or samples and need to quantify uncertainty in their variability rankings before performing differential or comparative analyses. Use this when sample size is small or variability estimates may be unstable.

## When NOT to use

- Input is already a pre-computed confidence interval table or posterior distribution — do not resample.
- Sample size is very large (n >> 1000) and asymptotic methods are more efficient.
- Variability is computed on aggregated bulk data with no cell/sample structure to resample.

## Inputs

- chromVARDeviations object (bias-corrected z-score deviations for annotations × samples)
- Variability metric (standard deviation of z-scores per annotation)
- Annotation labels (e.g., motif IDs)
- Sample/cell metadata (colData)

## Outputs

- Bootstrap confidence intervals (lower and upper bounds per annotation)
- Bootstrap replicate distributions (variability scores across resamples)
- Ranked annotations by variability with uncertainty bands

## How to apply

After computing variability scores (e.g., standard deviation of z-scores across samples for each motif), resample cells or samples with replacement multiple times (bootstrap replicates) to recompute the variability metric for each annotation in each replicate. Collect the distribution of bootstrap estimates and compute percentile-based confidence intervals (e.g., 2.5th and 97.5th percentiles for 95% CI). These intervals quantify the range of plausible variability values and support downstream hypothesis testing against a null variability threshold (e.g., 1.0 for normalized deviations).

## Related tools

- **chromVAR** (Core R package providing computeVariability() function to compute standard deviation of z-scores and bootstrap confidence intervals for motif variability) — https://github.com/GreenleafLab/chromVAR
- **SummarizedExperiment** (Data structure container for storing chromVARDeviations object with assays (z-scores) and colData (sample annotations))
- **BiocParallel** (Enables parallelized bootstrap resampling across multiple cores for computational efficiency)

## Examples

```
dev 10,000 annotations.
- Does not account for spatial or temporal structure in the data; independent resampling assumes i.i.d. samples.

## Evidence

- [other] Variability computation with bootstrap: "Call computeVariability(dev) to compute standard deviation of z-scores across samples for each motif, generate bootstrap confidence intervals by resampling cells/samples"
- [readme] chromVAR package purpose: "chromVAR is an R package for the analysis of sparse chromatin accessibility data from single cell or bulk ATAC or DNAse-seq data"
- [other] Hypothesis testing context: "perform hypothesis tests against null variability of 1"
- [readme] Annotation identification: "aims to identify motifs or other genomic annotations associated with variability in chromatin accessibility between individual cells or samples"

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [HolobiomicsLab](https://github.com/HolobiomicsLab)
- **Source:** [HolobiomicsLab/asb-skill-collections](https://github.com/HolobiomicsLab/asb-skill-collections)
- **License:** Apache-2.0
- **Homepage:** https://holobiomicslab.cnrs.fr

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-holobiomicslab-asb-skill-collections-bootstrap-confidence-interval-computation
- Seller: https://agentstack.voostack.com/s/holobiomicslab
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
