[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M73B944QSAAF7PF1W7TJQJBR":3,"skill-same:01M73B944QSAAF7PF1W7TJQJBR":48},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M73B944QSAAF7PF1W7TJQJBR","archs4-database",null,"Query ARCHS4 REST API for uniformly processed RNA-seq expression, tissue patterns, co-expression across 1M+ human\u002Fmouse samples. Retrieve z-scores, co-expressed genes, samples by metadata, HDF5 matrices. For variant population genetics use gnomad-database; for pathway enrichment use gget-genomic-databases (Enrichr).","bg-szy\u002FTOP-SKILLS","bg-szy","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F106576190?v=4","01M73A4E8KPV67SFXRY8XZGNBX","ShuZhiyong","01M73A4E96MQ294MHM74TZBVQD",6,"CC-BY-4.0","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fawesome-skills\u002Farchs4-database\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: \"archs4-database\"\ndescription: \"Query ARCHS4 REST API for uniformly processed RNA-seq expression, tissue patterns, co-expression across 1M+ human\u002Fmouse samples. Retrieve z-scores, co-expressed genes, samples by metadata, HDF5 matrices. For variant population genetics use gnomad-database; for pathway enrichment use gget-genomic-databases (Enrichr).\"\nlicense: \"CC-BY-4.0\"\n---\n\n# ARCHS4 Database\n\n## Overview\n\nARCHS4 (All RNA-seq and ChIP-seq Sample and Signature Search) is a resource of uniformly aligned and processed human and mouse RNA-seq data from NCBI GEO and SRA, covering 1 million+ samples. The REST API at `https:\u002F\u002Fmaayanlab.cloud\u002Farchs4\u002Fapi\u002F` provides gene-level expression profiles, z-score normalized tissue expression, co-expression networks, and sample metadata search — all without authentication. Large-scale bulk queries can also use the downloadable HDF5 expression matrices.\n\n## When to Use\n\n- Retrieving tissue-specific or cell-type-specific expression z-scores for a gene of interest across hundreds of tissue types\n- Finding genes co-expressed with a query gene (co-expression network construction or guilt-by-association analysis)\n- Searching for RNA-seq samples by tissue, disease, or metadata keyword to identify candidate datasets for reanalysis\n- Comparing expression profiles of multiple genes across tissues to prioritize candidates for wet-lab follow-up\n- Accessing uniformly processed gene expression matrices (HDF5 format) for large-scale cross-study analysis\n- Validating differential expression results by checking whether a gene's expression direction matches population-level tissue profiles\n- Use **omics-plotting** SKILL to render bar charts and expression heatmaps from the query results\n- For variant-level population allele frequencies use `gnomad-database`; ARCHS4 provides expression evidence only\n- For Enrichr pathway enrichment from a gene list use `gget-genomic-databases` (`gget enrichr`); ARCHS4 is for expression lookups\n\n## Prerequisites\n\n- **Python packages**: `requests`, `pandas`, `matplotlib`, `seaborn`\n- **Data requirements**: gene symbols (HGNC format, e.g., `TP53`, `BRCA1`); sample GEO\u002FSRA IDs for direct sample queries\n- **Environment**: internet connection; no API key or account required\n- **Rate limits**: ~10 requests\u002Fsecond; add `time.sleep(0.1)` between sequential gene queries to avoid throttling\n\n```bash\npip install requests pandas matplotlib seaborn\n```\n\n## Quick Start\n\n```python\nimport requests\n\nARCHS4_BASE = \"https:\u002F\u002Fmaayanlab.cloud\u002Farchs4\u002Fapi\u002Fv1\"\n\ndef archs4_get(endpoint: str, params: dict = None) -> dict:\n    \"\"\"Send a GET request to the ARCHS4 API and return parsed JSON.\"\"\"\n    r = requests.get(f\"{ARCHS4_BASE}\u002F{endpoint}\", params=params, timeout=30)\n    r.raise_for_status()\n    return r.json()\n\n# Quick check: top tissues expressing TP53\ndata = archs4_get(\"meta\u002Fgenes\u002FTP53\u002Fzscore\")\ntissues = data.get(\"values\", [])\nprint(f\"TP53 tissue expression entries: {len(tissues)}\")\ntop5 = sorted(tissues, key=lambda x: x.get(\"zscore\", 0), reverse=True)[:5]\nfor t in top5:\n    print(f\"  {t['tissue']:\u003C40}  z={t['zscore']:.2f}\")\n# TP53 tissue expression entries: 200\n#   thymus                                   z=2.81\n#   testis                                   z=2.44\n```\n\n## Core API\n\n### Query 1: Gene Expression Z-Scores Across Tissues\n\nRetrieve z-score normalized expression for a gene across all available tissue types. Z-scores are computed per-sample relative to the population distribution; positive values indicate above-average expression.\n\n```python\nimport requests\nimport pandas as pd\n\nARCHS4_BASE = \"https:\u002F\u002Fmaayanlab.cloud\u002Farchs4\u002Fapi\u002Fv1\"\n\ndef get_gene_tissue_zscore(gene_symbol: str, species: str = \"human\") -> pd.DataFrame:\n    \"\"\"Return tissue z-score expression profile for a gene.\n\n    Parameters\n    ----------\n    gene_symbol : str\n        HGNC gene symbol (e.g., 'TP53').\n    species : str\n        'human' or 'mouse' (default: 'human').\n    \"\"\"\n    endpoint = f\"meta\u002Fgenes\u002F{gene_symbol}\u002Fzscore\"\n    r = requests.get(\n        f\"{ARCHS4_BASE}\u002F{endpoint}\",\n        params={\"species\": species},\n        timeout=30\n    )\n    r.raise_for_status()\n    data = r.json()\n    records = data.get(\"values\", [])\n    df = pd.DataFrame(records)\n    return df.sort_values(\"zscore\", ascending=False).reset_index(drop=True)\n\ndf = get_gene_tissue_zscore(\"MYC\")\nprint(f\"MYC tissue z-scores: {len(df)} tissue types\")\nprint(df[[\"tissue\", \"zscore\"]].head(10).to_string(index=False))\n# MYC tissue z-scores: 200\n#                     tissue  zscore\n#                      colon    3.12\n#             small intestine    2.98\n#                    placenta    2.74\n```\n\n```python\n# Query mouse tissues for a gene\ndf_mouse = get_gene_tissue_zscore(\"Myc\", species=\"mouse\")\nprint(f\"Mouse Myc: top 5 tissues\")\nprint(df_mouse[[\"tissue\", \"zscore\"]].head(5).to_string(index=False))\n```\n\n### Query 2: Co-expressed Genes\n\nFind genes whose expression is most correlated with a query gene across all ARCHS4 samples. Useful for identifying pathway partners, regulators, or candidate targets.\n\n```python\nimport requests\nimport pandas as pd\n\nARCHS4_BASE = \"https:\u002F\u002Fmaayanlab.cloud\u002Farchs4\u002Fapi\u002Fv1\"\n\ndef get_coexpressed_genes(gene_symbol: str, top_n: int = 50,\n                           species: str = \"human\") -> pd.DataFrame:\n    \"\"\"Return genes co-expressed with the query gene.\n\n    Parameters\n    ----------\n    gene_symbol : str\n        HGNC gene symbol.\n    top_n : int\n        Number of correlated genes to return (default: 50).\n    species : str\n        'human' or 'mouse' (default: 'human').\n    \"\"\"\n    r = requests.get(\n        f\"{ARCHS4_BASE}\u002Fmeta\u002Fgenes\u002F{gene_symbol}\u002Fcorrelations\",\n        params={\"species\": species, \"limit\": top_n},\n        timeout=30\n    )\n    r.raise_for_status()\n    data = r.json()\n    records = data.get(\"values\", [])\n    df = pd.DataFrame(records)\n    return df.sort_values(\"correlation\", ascending=False).reset_index(drop=True)\n\ncoexp = get_coexpressed_genes(\"PCNA\", top_n=20)\nprint(f\"Top co-expressed genes with PCNA (n={len(coexp)}):\")\nprint(coexp[[\"gene\", \"correlation\"]].head(10).to_string(index=False))\n# Top co-expressed genes with PCNA (n=20):\n#   gene  correlation\n#   RFC4         0.91\n#   RFC2         0.89\n#   MCM6         0.87\n```\n\n```python\n# Extract gene list for downstream enrichment\ngene_list = coexp[\"gene\"].tolist()\nprint(f\"Co-expression gene list: {gene_list[:10]}\")\n# Pass gene_list to Enrichr or pathway analysis tools\n```\n\n### Query 3: Sample Search\n\nSearch for RNA-seq samples by metadata keyword (tissue, disease condition, cell type, treatment). Returns GEO\u002FSRA sample identifiers with metadata fields.\n\n```python\nimport requests\nimport pandas as pd\n\nARCHS4_BASE = \"https:\u002F\u002Fmaayanlab.cloud\u002Farchs4\u002Fapi\u002Fv1\"\n\ndef search_samples(keyword: str, species: str = \"human\",\n                   limit: int = 100) -> pd.DataFrame:\n    \"\"\"Search ARCHS4 samples by metadata keyword.\n\n    Parameters\n    ----------\n    keyword : str\n        Search term (e.g., 'breast cancer', 'liver', 'HeLa').\n    species : str\n        'human' or 'mouse'.\n    limit : int\n        Maximum number of samples to return.\n    \"\"\"\n    r = requests.get(\n        f\"{ARCHS4_BASE}\u002Fsamples\u002Fsearch\",\n        params={\"query\": keyword, \"species\": species, \"limit\": limit},\n        timeout=30\n    )\n    r.raise_for_status()\n    data = r.json()\n    records = data.get(\"samples\", [])\n    return pd.DataFrame(records)\n\nsamples = search_samples(\"pancreatic cancer\", limit=50)\nprint(f\"Samples matching 'pancreatic cancer': {len(samples)}\")\nif len(samples) > 0:\n    print(samples[[\"sample_id\", \"series_id\", \"title\"]].head(5).to_string(index=False))\n# Samples matching 'pancreatic cancer': 50\n#   sample_id  series_id  title\n#   GSM2345678  GSE123456  Pancreatic ductal adenocarcinoma - sample 1\n```\n\n### Query 4: Gene-Level Metadata Summary\n\nRetrieve summary statistics and metadata for a gene including the number of samples expressing it, expression percentile, and available annotation.\n\n```python\nimport requests\n\nARCHS4_BASE = \"https:\u002F\u002Fmaayanlab.cloud\u002Farchs4\u002Fapi\u002Fv1\"\n\ndef get_gene_metadata(gene_symbol: str, species: str = \"human\") -> dict:\n    \"\"\"Return metadata and expression summary for a gene.\"\"\"\n    r = requests.get(\n        f\"{ARCHS4_BASE}\u002Fmeta\u002Fgenes\u002F{gene_symbol}\",\n        params={\"species\": species},\n        timeout=30\n    )\n    r.raise_for_status()\n    return r.json()\n\nmeta = get_gene_metadata(\"GAPDH\")\nprint(f\"Gene: {meta.get('gene_symbol', 'N\u002FA')}\")\nprint(f\"Species: {meta.get('species', 'N\u002FA')}\")\nprint(f\"Ensembl ID: {meta.get('ensembl_gene_id', 'N\u002FA')}\")\nprint(f\"Description: {meta.get('description', 'N\u002FA')[:80]}\")\n```\n\n```python\n# Compare metadata for a panel of housekeeping genes\nimport time\n\nhousekeeping = [\"GAPDH\", \"ACTB\", \"B2M\", \"HPRT1\", \"RPLP0\"]\nfor gene in housekeeping:\n    meta = get_gene_metadata(gene)\n    print(f\"  {gene:\u003C8}  {meta.get('ensembl_gene_id', 'N\u002FA')}\")\n    time.sleep(0.1)\n```\n\n### Query 5: Visualization — Tissue Expression Barplot\n\nFetch the top-tissue z-scores, then **read `skills\u002Fdata-visualization\u002Fomics-plotting\u002FSKILL.md` and follow its \"Box \u002F Violin \u002F Bar\" recipe** on the exported CSV (→ `figures\u002FBRCA1_tissue_expression.png`).\n\n```python\nimport requests\nimport pandas as pd\n\nARCHS4_BASE = \"https:\u002F\u002Fmaayanlab.cloud\u002Farchs4\u002Fapi\u002Fv1\"\n\ndef tissue_zscores(gene_symbol: str, top_n: int = 20, species: str = \"human\") -> pd.DataFrame:\n    \"\"\"Fetch top tissue z-scores for a gene and save for plotting.\"\"\"\n    r = requests.get(\n        f\"{ARCHS4_BASE}\u002Fmeta\u002Fgenes\u002F{gene_symbol}\u002Fzscore\",\n        params={\"species\": species},\n        timeout=30,\n    )\n    r.raise_for_status()\n    df = pd.DataFrame(r.json().get(\"values\", [])).sort_values(\"zscore\", ascending=False).head(top_n)\n    df.to_csv(f\"{gene_symbol}_tissue_zscores.csv\", index=False)\n    return df\n\ndf = tissue_zscores(\"BRCA1\", top_n=15)\nprint(f\"Top tissues for BRCA1: {len(df)} -> BRCA1_tissue_zscores.csv\")\n# Render with the omics-plotting SKILL (`skills\u002Fdata-visualization\u002Fomics-plotting\u002FSKILL.md`) \"Box \u002F Violin \u002F Bar\" recipe (horizontal bar of zscore by tissue).\n```\n\n### Query 6: HDF5 Bulk Data Access\n\nDownload or stream from ARCHS4's precomputed HDF5 expression matrices for large-scale cross-sample analysis. The HDF5 files contain gene × sample count matrices for human and mouse.\n\n```python\nimport requests\n\n# HDF5 files are available for bulk download from the ARCHS4 data portal\n# URL pattern: https:\u002F\u002Fmaayanlab.cloud\u002Farchs4\u002Fdownload#expression\n# Human gene-level: human_gene_v2.6.h5\n# Mouse gene-level: mouse_gene_v2.6.h5\n\ndef get_h5_download_urls() -> dict:\n    \"\"\"Return download URLs for ARCHS4 HDF5 expression matrices.\"\"\"\n    base = \"https:\u002F\u002Fmaayanlab.cloud\u002Farchs4\"\n    return {\n        \"human_gene\": f\"{base}\u002Ffiles\u002Fhuman_gene_v2.6.h5\",\n        \"mouse_gene\": f\"{base}\u002Ffiles\u002Fmouse_gene_v2.6.h5\",\n        \"human_transcript\": f\"{base}\u002Ffiles\u002Fhuman_transcript_v2.6.h5\",\n        \"mouse_transcript\": f\"{base}\u002Ffiles\u002Fmouse_transcript_v2.6.h5\",\n    }\n\nurls = get_h5_download_urls()\nfor key, url in urls.items():\n    print(f\"  {key:\u003C22}  {url}\")\n\n# To work with a downloaded HDF5 file:\ntry:\n    import h5py\n    import numpy as np\n\n    h5_path = \"human_gene_v2.6.h5\"   # after download\n\n    def extract_gene_from_h5(h5_path: str, gene_symbol: str,\n                              n_samples: int = 1000) -> dict:\n        \"\"\"Extract expression values for a gene from the HDF5 matrix.\"\"\"\n        with h5py.File(h5_path, \"r\") as f:\n            genes = [g.decode() for g in f[\"meta\"][\"genes\"][\"gene_symbol\"][:]]\n            if gene_symbol not in genes:\n                raise ValueError(f\"{gene_symbol} not found in HDF5\")\n            idx = genes.index(gene_symbol)\n            expr = f[\"data\"][\"expression\"][idx, :n_samples]\n            sample_ids = [s.decode() for s in f[\"meta\"][\"samples\"][\"geo_accession\"][:n_samples]]\n        return {\"gene\": gene_symbol, \"expression\": expr, \"sample_ids\": sample_ids}\n\n    result = extract_gene_from_h5(h5_path, \"TP53\", n_samples=500)\n    print(f\"TP53 expression: mean={result['expression'].mean():.2f},\"\n          f\" max={result['expression'].max():.2f} (n={len(result['expression'])} samples)\")\nexcept ImportError:\n    print(\"h5py not installed. Install with: pip install h5py\")\nexcept FileNotFoundError:\n    print(\"HDF5 file not downloaded yet. Use the URLs above to download first.\")\n```\n\n## Key Concepts\n\n### Z-Score Normalization\n\nARCHS4 reports gene expression as z-scores computed relative to all samples for that gene. A z-score of 0 means expression at the population mean; a z-score of 2.0 means expression 2 standard deviations above the mean. Z-scores are more interpretable across datasets than raw counts because they account for library size differences and batch effects introduced by uniform alignment across studies.\n\n```python\n# Example: Positive z-score = above-average expression for that gene\n# z > 2.0 → top ~2.5% of samples for that gene\n# z \u003C -2.0 → bottom ~2.5% of samples for that gene\n# Use absolute z-score thresholds consistently when comparing across genes\n```\n\n### HDF5 vs REST API\n\n| Access method | Best for | Limitations |\n|---------------|----------|-------------|\n| REST API (`\u002Fzscore`, `\u002Fcorrelations`) | Quick single-gene queries, exploration | Aggregated profiles only, no per-sample access |\n| REST API (`\u002Fsamples\u002Fsearch`) | Discovering relevant datasets | Returns metadata, not expression values |\n| HDF5 download | Bulk analysis, custom co-expression, ML | Requires 30–60 GB disk; download once |\n\n### Species and Gene Symbol Conventions\n\nARCHS4 indexes human samples using HGNC gene symbols (uppercase, e.g., `TP53`) and mouse samples using MGI symbols (first letter uppercase, e.g., `Trp53`). The `species` parameter accepts `\"human\"` or `\"mouse\"`. Mixed-case or ensemble IDs will return empty results.\n\n## Common Workflows\n\n### Workflow 1: Multi-Gene Tissue Expression Heatmap\n\n**Goal**: Compare tissue expression profiles of a gene panel and visualize as a heatmap to identify tissue-specific vs ubiquitous expression patterns.\n\n```python\nimport requests, time\nimport pandas as pd\n\nARCHS4_BASE = \"https:\u002F\u002Fmaayanlab.cloud\u002Farchs4\u002Fapi\u002Fv1\"\n\ngene_panel = [\"MYC\", \"TP53\", \"BRCA1\", \"EGFR\", \"KRAS\", \"CDK4\"]\ntop_n_tissues = 25\n\ndef get_tissue_zscores(gene: str) -> pd.Series:\n    r = requests.get(\n        f\"{ARCHS4_BASE}\u002Fmeta\u002Fgenes\u002F{gene}\u002Fzscore\",\n        params={\"species\": \"human\"},\n        timeout=30\n    )\n    r.raise_for_status()\n    records = r.json().get(\"values\", [])\n    df = pd.DataFrame(records).set_index(\"tissue\")[\"zscore\"]\n    return df\n\n# Build expression matrix (genes × tissues)\nall_data = {}\nfor gene in gene_panel:\n    try:\n        all_data[gene] = get_tissue_zscores(gene)\n        print(f\"  Fetched {gene}\")\n    except Exception as e:\n        print(f\"  Warning: {gene} failed — {e}\")\n    time.sleep(0.1)\n\nmatrix = pd.DataFrame(all_data).T   # genes × tissues\n# Select top tissues by max absolute z-score\ntissue_importance = matrix.abs().max(axis=0).sort_values(ascending=False)\ntop_tissues = tissue_importance.head(top_n_tissues).index\nmatrix_subset = matrix[top_tissues]\n\n# Save the gene × tissue matrix; render with the omics-plotting SKILL (`skills\u002Fdata-visualization\u002Fomics-plotting\u002FSKILL.md`) \"Expression heatmap\"\n# recipe (RdBu_r, center=0) -> figures\u002Farchs4_panel_heatmap.png\nmatrix_subset.to_csv(\"archs4_panel_matrix.csv\")\nprint(f\"Panel matrix ready: {matrix_subset.shape} -> archs4_panel_matrix.csv\")\n```\n\n### Workflow 2: Co-expression Network Seed Expansion\n\n**Goal**: Start from a seed gene, retrieve co-expressed partners, then query their co-expressed genes in turn to build a two-hop co-expression neighborhood.\n\n```python\nimport requests, time\nimport pandas as pd\n\nARCHS4_BASE = \"https:\u002F\u002Fmaayanlab.cloud\u002Farchs4\u002Fapi\u002Fv1\"\n\ndef get_coexp(gene: str, top_n: int = 20, species: str = \"human\") -> list:\n    r = requests.get(\n        f\"{ARCHS4_BASE}\u002Fmeta\u002Fgenes\u002F{gene}\u002Fcorrelations\",\n        params={\"species\": species, \"limit\": top_n},\n        timeout=30\n    )\n    r.raise_for_status()\n    return [rec[\"gene\"] for rec in r.json().get(\"values\", [])]\n\nseed_gene = \"PCNA\"\nmin_correlation = 0.80\n\n# Hop 1: direct co-expressed partners\nhop1_genes = get_coexp(seed_gene, top_n=30)\nprint(f\"Hop 1 partners of {seed_gene}: {len(hop1_genes)}\")\ntime.sleep(0.1)\n\n# Hop 2: co-expressed genes of each partner\nedges = set()\nfor gene in hop1_genes[:10]:   # limit for demonstration\n    partners = get_coexp(gene, top_n=20)\n    for partner in partners:\n        if partner != seed_gene:\n            edges.add((gene, partner))\n    time.sleep(0.1)\n\n# Summarize the network\nnetwork_df = pd.DataFrame(list(edges), columns=[\"source\", \"target\"])\nhub_counts = network_df[\"source\"].value_counts()\nprint(f\"\\nTwo-hop network: {len(edges)} edges\")\nprint(f\"Top hub genes:\")\nprint(hub_counts.head(5))\n\nnetwork_df.to_csv(f\"{seed_gene}_coexp_network.csv\", index=False)\nprint(f\"\\nSaved {seed_gene}_coexp_network.csv\")\n```\n\n### Workflow 3: Sample Discovery and Dataset Summary\n\n**Goal**: Search for samples by disease keyword, summarize how many GEO series are available, and export sample metadata for downstream reanalysis selection.\n\n```python\nimport requests, time\nimport pandas as pd\n\nARCHS4_BASE = \"https:\u002F\u002Fmaayanlab.cloud\u002Farchs4\u002Fapi\u002Fv1\"\n\ndef search_and_summarize(keyword: str, species: str = \"human\",\n                          limit: int = 200) -> pd.DataFrame:\n    \"\"\"Search samples and return a tidy metadata DataFrame.\"\"\"\n    r = requests.get(\n        f\"{ARCHS4_BASE}\u002Fsamples\u002Fsearch\",\n        params={\"query\": keyword, \"species\": species, \"limit\": limit},\n        timeout=30\n    )\n    r.raise_for_status()\n    records = r.json().get(\"samples\", [])\n    return pd.DataFrame(records)\n\nkeyword = \"colorectal cancer\"\ndf = search_and_summarize(keyword, limit=150)\nprint(f\"Samples matching '{keyword}': {len(df)}\")\n\nif len(df) > 0:\n    # Summarize by GEO series\n    series_counts = df[\"series_id\"].value_counts()\n    print(f\"\\nTop GEO series (by sample count):\")\n    print(series_counts.head(8).to_string())\n\n    # Export sample list\n    df.to_csv(f\"{keyword.replace(' ', '_')}_samples.csv\", index=False)\n    print(f\"\\nSaved {keyword.replace(' ', '_')}_samples.csv ({len(df)} samples)\")\n    print(f\"Unique GEO series: {df['series_id'].nunique()}\")\n```\n\n## Key Parameters\n\n| Parameter | Endpoint | Default | Range \u002F Options | Effect |\n|-----------|----------|---------|-----------------|--------|\n| `species` | All gene endpoints | `\"human\"` | `\"human\"`, `\"mouse\"` | Selects the species-specific sample index |\n| `limit` | `\u002Fcorrelations`, `\u002Fsamples\u002Fsearch` | `100` | `1`–`500` | Number of results returned |\n| `gene_symbol` (path) | `\u002Fmeta\u002Fgenes\u002F{gene}\u002Fzscore`, `\u002Fcorrelations` | — | HGNC symbol (human) or MGI symbol (mouse) | Query gene; case-sensitive |\n| `query` | `\u002Fsamples\u002Fsearch` | — | free-text string | Metadata keyword search across title, tissue, source fields |\n| `offset` | `\u002Fsamples\u002Fsearch` | `0` | integer | Pagination offset for large result sets |\n| `correlation` (response field) | `\u002Fcorrelations` | — | `-1.0`–`1.0` | Pearson correlation coefficient; filter `> 0.7` for high co-expression |\n| `zscore` (response field) | `\u002Fzscore` | — | continuous float | Expression z-score; `> 2.0` = high expression |\n| `page_size` (HDF5) | HDF5 slice | all | any integer | Number of samples to extract per read from HDF5 |\n\n## Best Practices\n\n1. **Use z-score thresholds consistently**: Because z-scores are gene-specific, a z-score of 2.0 for a ubiquitous gene (GAPDH) and a tissue-restricted gene (TTR, liver) have different interpretive meaning. Always annotate which gene you are comparing and the tissue background.\n\n2. **Sleep between batch queries**: ARCHS4 enforces a soft rate limit of ~10 requests\u002Fsecond. Add `time.sleep(0.1)` between sequential gene queries to avoid `429 Too Many Requests` errors.\n\n3. **Download HDF5 for large-scale analyses**: For queries covering 50+ genes or requiring per-sample expression values, the REST API is impractical. Download the HDF5 file once and use `h5py` slicing for fast matrix access; this avoids hitting rate limits and is 100× faster for bulk extraction.\n\n4. **Match gene symbol conventions by species**: Human queries require HGNC uppercase symbols (e.g., `TP53`); mouse queries require MGI-style symbols (e.g., `Trp53`). Using the wrong case returns empty results without an error.\n\n5. **Validate co-expression findings across datasets**: ARCHS4 co-expression aggregates across all tissue types. A high correlation may be driven by a single tissue or study. Cross-check with tissue-specific queries or manually inspect the top contributing GEO series.\n\n## Common Recipes\n\n### Recipe: Quick Tissue Specificity Check\n\nWhen to use: Rapidly determine whether a gene is broadly expressed (housekeeping) or tissue-restricted before designing experiments.\n\n```python\nimport requests\n\nARCHS4_BASE = \"https:\u002F\u002Fmaayanlab.cloud\u002Farchs4\u002Fapi\u002Fv1\"\n\ndef tissue_specificity_summary(gene_symbol: str) -> None:\n    \"\"\"Print a summary of high and low expression tissues for a gene.\"\"\"\n    r = requests.get(\n        f\"{ARCHS4_BASE}\u002Fmeta\u002Fgenes\u002F{gene_symbol}\u002Fzscore\",\n        params={\"species\": \"human\"},\n        timeout=30\n    )\n    r.raise_for_status()\n    records = r.json().get(\"values\", [])\n    zscores = [rec[\"zscore\"] for rec in records if rec.get(\"zscore\") is not None]\n    top_high = sorted(records, key=lambda x: x.get(\"zscore\", 0), reverse=True)[:5]\n    top_low = sorted(records, key=lambda x: x.get(\"zscore\", float(\"inf\")))[:3]\n    print(f\"\\n{gene_symbol} — {len(zscores)} tissues\")\n    print(f\"  Range: [{min(zscores):.2f}, {max(zscores):.2f}]  \"\n          f\"Mean: {sum(zscores)\u002Flen(zscores):.2f}\")\n    print(\"  High expression:\")\n    for t in top_high:\n        print(f\"    {t['tissue']:\u003C35}  z={t['zscore']:.2f}\")\n    print(\"  Low expression:\")\n    for t in top_low:\n        print(f\"    {t['tissue']:\u003C35}  z={t['zscore']:.2f}\")\n\ntissue_specificity_summary(\"TTR\")   # Transthyretin — liver-specific\n```\n\n### Recipe: Batch Gene Co-Expression Table\n\nWhen to use: Generate a pairwise correlation table for a gene panel from a list of differentially expressed genes.\n\n```python\nimport requests, time\nimport pandas as pd\n\nARCHS4_BASE = \"https:\u002F\u002Fmaayanlab.cloud\u002Farchs4\u002Fapi\u002Fv1\"\n\ndef batch_coexpr_table(gene_list: list, top_n: int = 10) -> pd.DataFrame:\n    \"\"\"For each gene in gene_list, return its top co-expressed genes.\"\"\"\n    rows = []\n    for gene in gene_list:\n        try:\n            r = requests.get(\n                f\"{ARCHS4_BASE}\u002Fmeta\u002Fgenes\u002F{gene}\u002Fcorrelations\",\n                params={\"species\": \"human\", \"limit\": top_n},\n                timeout=30\n            )\n            r.raise_for_status()\n            for rec in r.json().get(\"values\", []):\n                rows.append({\n                    \"query_gene\": gene,\n                    \"coexp_gene\": rec.get(\"gene\"),\n                    \"correlation\": rec.get(\"correlation\"),\n                })\n            time.sleep(0.1)\n        except Exception as e:\n            print(f\"Warning: {gene} skipped — {e}\")\n    return pd.DataFrame(rows)\n\ndeg_list = [\"MYC\", \"CCND1\", \"CDK4\", \"RB1\", \"E2F1\"]\ncoexp_table = batch_coexpr_table(deg_list, top_n=10)\nprint(f\"Co-expression entries: {len(coexp_table)}\")\nprint(coexp_table.groupby(\"query_gene\")[\"coexp_gene\"].count())\ncoexp_table.to_csv(\"deg_coexpression_table.csv\", index=False)\nprint(\"Saved deg_coexpression_table.csv\")\n```\n\n### Recipe: Export Sample IDs for GEO Download\n\nWhen to use: Identify relevant GEO accessions to download raw count matrices for a meta-analysis.\n\n```python\nimport requests\nimport pandas as pd\n\nARCHS4_BASE = \"https:\u002F\u002Fmaayanlab.cloud\u002Farchs4\u002Fapi\u002Fv1\"\n\nkeyword = \"glioblastoma\"\nr = requests.get(\n    f\"{ARCHS4_BASE}\u002Fsamples\u002Fsearch\",\n    params={\"query\": keyword, \"species\": \"human\", \"limit\": 200},\n    timeout=30\n)\nr.raise_for_status()\nsamples = pd.DataFrame(r.json().get(\"samples\", []))\nif len(samples) > 0:\n    # Get unique GEO series accessions\n    series = samples[\"series_id\"].dropna().unique()\n    print(f\"Unique GEO series for '{keyword}': {len(series)}\")\n    for s in series[:10]:\n        n = (samples[\"series_id\"] == s).sum()\n        print(f\"  {s}  ({n} samples)\")\n    # Export series list for GEO download script\n    pd.Series(series, name=\"geo_series\").to_csv(\n        f\"{keyword}_geo_series.txt\", index=False\n    )\n    print(f\"\\nSaved {keyword}_geo_series.txt\")\n```\n\n## Troubleshooting\n\n| Problem | Cause | Solution |\n|---------|-------|----------|\n| `HTTP 404` for gene query | Gene symbol not found in ARCHS4 index | Verify HGNC symbol spelling; check `species` parameter matches gene convention (human: uppercase, mouse: first-letter-upper) |\n| `HTTP 429 Too Many Requests` | Exceeded ~10 req\u002Fs rate limit | Add `time.sleep(0.1)` between requests; for batch queries use a 0.5 s delay |\n| Empty `values` list in z-score response | Gene is not expressed in any indexed tissue, or wrong species | Switch species; verify gene is protein-coding and has GEO coverage |\n| Empty `samples` list from search | Keyword not matched in metadata fields | Try broader or alternative keywords (e.g., `\"liver\"` instead of `\"hepatic\"`) |\n| HDF5 gene not found | Symbol mismatch between HDF5 version and query | Check available genes in `f[\"meta\"][\"genes\"][\"gene_symbol\"][:]`; try Ensembl ID or alias |\n| `requests.exceptions.Timeout` | Slow API response under load | Increase `timeout=60`; retry with exponential backoff |\n| Z-scores all near zero | Gene has very low or absent expression across tissues | Check the gene's expression in raw counts; the gene may be non-coding or very lowly expressed |\n\n## Related Skills\n\n- `gnomad-database` — Population variant frequencies; use after ARCHS4 to identify variants in highly expressed genes\n- `gget-genomic-databases` — Enrichr pathway enrichment for ARCHS4 co-expression gene lists (`gget enrichr`)\n- `pydeseq2-differential-expression` — Differential expression analysis on bulk RNA-seq; ARCHS4 HDF5 matrices can serve as reference cohorts\n\n## References\n\n- [ARCHS4 web portal](https:\u002F\u002Fmaayanlab.cloud\u002Farchs4\u002F) — Interactive expression browser and dataset download\n- [ARCHS4 REST API documentation](https:\u002F\u002Fmaayanlab.cloud\u002Farchs4\u002Fapi\u002F) — Endpoint reference and parameters\n- [Lachmann et al., Nature Communications 2018](https:\u002F\u002Fdoi.org\u002F10.1038\u002Fs41467-018-03751-6) — ARCHS4 original publication describing uniform alignment pipeline\n- [ARCHS4 GitHub](https:\u002F\u002Fgithub.com\u002FMaayanLab\u002Farchs4) — Source code and HDF5 schema documentation\n","# ARCHS4 Database\n\n## Overview\n\nARCHS4 (All RNA-seq and ChIP-seq Sample and Signature Search) is a resource of uniformly aligned and processed human and mouse RNA-seq data from NCBI GEO and SRA, covering 1 million+ samples. The REST API at `https:\u002F\u002Fmaayanlab.cloud\u002Farchs4\u002Fapi\u002F` provides gene-level expression profiles, z-score normalized tissue expression, co-expression networks, and sample metadata search — all without authentication. Large-scale bulk queries can also use the downloadable HDF5 expression matrices.\n\n## When to Use\n\n- Retrieving tissue-specific or cell-type-specific expression z-scores for a gene of interest across hundreds of tissue types\n- Finding genes co-expressed with a query gene (co-expression network construction or guilt-by-association analysis)\n- Searching for RNA-seq samples by tissue, disease, or metadata keyword to identify candidate datasets for reanalysis\n- Comparing expression profiles of multiple genes across tissues to prioritize candidates for wet-lab follow-up\n- Accessing uniformly processed gene expression matrices (HDF5 format) for large-scale cross-study analysis\n- Validating differential expression results by checking whether a gene's expression direction matches population-level tissue profiles\n- Use **omics-plotting** SKILL to render bar charts and expression heatmaps from the query results\n- For variant-level population allele frequencies use `gnomad-database`; ARCHS4 provides expression evidence only\n- For Enrichr pathway enrichment from a gene list use `gget-genomic-databases` (`gget enrichr`); ARCHS4 is for expression lookups\n\n## Prerequisites\n\n- **Python packages**: `requests`, `pandas`, `matplotlib`, `seaborn`\n- **Data requirements**: gene symbols (HGNC format, e.g., `TP53`, `BRCA1`); sample GEO\u002FSRA IDs for direct sample queries\n- **Environment**: internet connection; no API key or account required\n- **Rate limits**: ~10 requests\u002Fsecond; add `time.sleep(0.1)` between sequential gene queries to avoid throttling\n\n```bash\npip install requests pandas matplotlib seaborn\n```\n\n## Quick Start\n\n```python\nimport requests\n\nARCHS4_BASE = \"https:\u002F\u002Fmaayanlab.cloud\u002Farchs4\u002Fapi\u002Fv1\"\n\ndef archs4_get(endpoint: str, params: dict = None) -> dict:\n    \"\"\"Send a GET request to the ARCHS4 API and return parsed JSON.\"\"\"\n    r = requests.get(f\"{ARCHS4_BASE}\u002F{endpoint}\", params=params, timeout=30)\n    r.raise_for_status()\n    return r.json()\n\n# Quick check: top tissues expressing TP53\ndata = archs4_get(\"meta\u002Fgenes\u002FTP53\u002Fzscore\")\ntissues = data.get(\"values\", [])\nprint(f\"TP53 tissue expression entries: {len(tissues)}\")\ntop5 = sorted(tissues, key=lambda x: x.get(\"zscore\", 0), reverse=True)[:5]\nfor t in top5:\n    print(f\"  {t['tissue']:\u003C40}  z={t['zscore']:.2f}\")\n# TP53 tissue expression entries: 200\n#   thymus                                   z=2.81\n#   testis                                   z=2.44\n```\n\n## Core API\n\n### Query 1: Gene Expression Z-Scores Across Tissues\n\nRetrieve z-score normalized expression for a gene across all available tissue types. Z-scores are computed per-sample relative to the population distribution; positive values indicate above-average expression.\n\n```python\nimport requests\nimport pandas as pd\n\nARCHS4_BASE = \"https:\u002F\u002Fmaayanlab.cloud\u002Farchs4\u002Fapi\u002Fv1\"\n\ndef get_gene_tissue_zscore(gene_symbol: str, species: str = \"human\") -> pd.DataFrame:\n    \"\"\"Return tissue z-score expression profile for a gene.\n\n    Parameters\n    ----------\n    gene_symbol : str\n        HGNC gene symbol (e.g., 'TP53').\n    species : str\n        'human' or 'mouse' (default: 'human').\n    \"\"\"\n    endpoint = f\"meta\u002Fgenes\u002F{gene_symbol}\u002Fzscore\"\n    r = requests.get(\n        f\"{ARCHS4_BASE}\u002F{endpoint}\",\n        params={\"species\": species},\n        timeout=30\n    )\n    r.raise_for_status()\n    data = r.json()\n    records = data.get(\"values\", [])\n    df = pd.DataFrame(records)\n    return df.sort_values(\"zscore\", ascending=False).reset_index(drop=True)\n\ndf = get_gene_tissue_zscore(\"MYC\")\nprint(f\"MYC tissue z-scores: {len(df)} tissue types\")\nprint(df[[\"tissue\", \"zscore\"]].head(10).to_string(index=False))\n# MYC tissue z-scores: 200\n#                     tissue  zscore\n#                      colon    3.12\n#             small intestine    2.98\n#                    placenta    2.74\n```\n\n```python\n# Query mouse tissues for a gene\ndf_mouse = get_gene_tissue_zscore(\"Myc\", species=\"mouse\")\nprint(f\"Mouse Myc: top 5 tissues\")\nprint(df_mouse[[\"tissue\", \"zscore\"]].head(5).to_string(index=False))\n```\n\n### Query 2: Co-expressed Genes\n\nFind genes whose expression is most correlated with a query gene across all ARCHS4 samples. Useful for identifying pathway partners, regulators, or candidate targets.\n\n```python\nimport requests\nimport pandas as pd\n\nARCHS4_BASE = \"https:\u002F\u002Fmaayanlab.cloud\u002Farchs4\u002Fapi\u002Fv1\"\n\ndef get_coexpressed_genes(gene_symbol: str, top_n: int = 50,\n                           species: str = \"human\") -> pd.DataFrame:\n    \"\"\"Return genes co-expressed with the query gene.\n\n    Parameters\n    ----------\n    gene_symbol : str\n        HGNC gene symbol.\n    top_n : int\n        Number of correlated genes to return (default: 50).\n    species : str\n        'human' or 'mouse' (default: 'human').\n    \"\"\"\n    r = requests.get(\n        f\"{ARCHS4_BASE}\u002Fmeta\u002Fgenes\u002F{gene_symbol}\u002Fcorrelations\",\n        params={\"species\": species, \"limit\": top_n},\n        timeout=30\n    )\n    r.raise_for_status()\n    data = r.json()\n    records = data.get(\"values\", [])\n    df = pd.DataFrame(records)\n    return df.sort_values(\"correlation\", ascending=False).reset_index(drop=True)\n\ncoexp = get_coexpressed_genes(\"PCNA\", top_n=20)\nprint(f\"Top co-expressed genes with PCNA (n={len(coexp)}):\")\nprint(coexp[[\"gene\", \"correlation\"]].head(10).to_string(index=False))\n# Top co-expressed genes with PCNA (n=20):\n#   gene  correlation\n#   RFC4         0.91\n#   RFC2         0.89\n#   MCM6         0.87\n```\n\n```python\n# Extract gene list for downstream enrichment\ngene_list = coexp[\"gene\"].tolist()\nprint(f\"Co-expression gene list: {gene_list[:10]}\")\n# Pass gene_list to Enrichr or pathway analysis tools\n```\n\n### Query 3: Sample Search\n\nSearch for RNA-seq samples by metadata keyword (tissue, disease condition, cell type, treatment). Returns GEO\u002FSRA sample identifiers with metadata fields.\n\n```python\nimport requests\nimport pandas as pd\n\nARCHS4_BASE = \"https:\u002F\u002Fmaayanlab.cloud\u002Farchs4\u002Fapi\u002Fv1\"\n\ndef search_samples(keyword: str, species: str = \"human\",\n                   limit: int = 100) -> pd.DataFrame:\n    \"\"\"Search ARCHS4 samples by metadata keyword.\n\n    Parameters\n    ----------\n    keyword : str\n        Search term (e.g., 'breast cancer', 'liver', 'HeLa').\n    species : str\n        'human' or 'mouse'.\n    limit : int\n        Maximum number of samples to return.\n    \"\"\"\n    r = requests.get(\n        f\"{ARCHS4_BASE}\u002Fsamples\u002Fsearch\",\n        params={\"query\": keyword, \"species\": species, \"limit\": limit},\n        timeout=30\n    )\n    r.raise_for_status()\n    data = r.json()\n    records = data.get(\"samples\", [])\n    return pd.DataFrame(records)\n\nsamples = search_samples(\"pancreatic cancer\", limit=50)\nprint(f\"Samples matching 'pancreatic cancer': {len(samples)}\")\nif len(samples) > 0:\n    print(samples[[\"sample_id\", \"series_id\", \"title\"]].head(5).to_string(index=False))\n# Samples matching 'pancreatic cancer': 50\n#   sample_id  series_id  title\n#   GSM2345678  GSE123456  Pancreatic ductal adenocarcinoma - sample 1\n```\n\n### Query 4: Gene-Level Metadata Summary\n\nRetrieve summary statistics and metadata for a gene including the number of samples expressing it, expression percentile, and available annotation.\n\n```python\nimport requests\n\nARCHS4_BASE = \"https:\u002F\u002Fmaayanlab.cloud\u002Farchs4\u002Fapi\u002Fv1\"\n\ndef get_gene_metadata(gene_symbol: str, species: str = \"human\") -> dict:\n    \"\"\"Return metadata and expression summary for a gene.\"\"\"\n    r = requests.get(\n        f\"{ARCHS4_BASE}\u002Fmeta\u002Fgenes\u002F{gene_symbol}\",\n        params={\"species\": species},\n        timeout=30\n    )\n    r.raise_for_status()\n    return r.json()\n\nmeta = get_gene_metadata(\"GAPDH\")\nprint(f\"Gene: {meta.get('gene_symbol', 'N\u002FA')}\")\nprint(f\"Species: {meta.get('species', 'N\u002FA')}\")\nprint(f\"Ensembl ID: {meta.get('ensembl_gene_id', 'N\u002FA')}\")\nprint(f\"Description: {meta.get('description', 'N\u002FA')[:80]}\")\n```\n\n```python\n# Compare metadata for a panel of housekeeping genes\nimport time\n\nhousekeeping = [\"GAPDH\", \"ACTB\", \"B2M\", \"HPRT1\", \"RPLP0\"]\nfor gene in housekeeping:\n    meta = get_gene_metadata(gene)\n    print(f\"  {gene:\u003C8}  {meta.get('ensembl_gene_id', 'N\u002FA')}\")\n    time.sleep(0.1)\n```\n\n### Query 5: Visualization — Tissue Expression Barplot\n\nFetch the top-tissue z-scores, then **read `skills\u002Fdata-visualization\u002Fomics-plotting\u002FSKILL.md` and follow its \"Box \u002F Violin \u002F Bar\" recipe** on the exported CSV (→ `figures\u002FBRCA1_tissue_expression.png`).\n\n```python\nimport requests\nimport pandas as pd\n\nARCHS4_BASE = \"https:\u002F\u002Fmaayanlab.cloud\u002Farchs4\u002Fapi\u002Fv1\"\n\ndef tissue_zscores(gene_symbol: str, top_n: int = 20, species: str = \"human\") -> pd.DataFrame:\n    \"\"\"Fetch top tissue z-scores for a gene and save for plotting.\"\"\"\n    r = requests.get(\n        f\"{ARCHS4_BASE}\u002Fmeta\u002Fgenes\u002F{gene_symbol}\u002Fzscore\",\n        params={\"species\": species},\n        timeout=30,\n    )\n    r.raise_for_status()\n    df = pd.DataFrame(r.json().get(\"values\", [])).sort_values(\"zscore\", ascending=False).head(top_n)\n    df.to_csv(f\"{gene_symbol}_tissue_zscores.csv\", index=False)\n    return df\n\ndf = tissue_zscores(\"BRCA1\", top_n=15)\nprint(f\"Top tissues for BRCA1: {len(df)} -> BRCA1_tissue_zscores.csv\")\n# Render with the omics-plotting SKILL (`skills\u002Fdata-visualization\u002Fomics-plotting\u002FSKILL.md`) \"Box \u002F Violin \u002F Bar\" recipe (horizontal bar of zscore by tissue).\n```\n\n### Query 6: HDF5 Bulk Data Access\n\nDownload or stream from ARCHS4's precomputed HDF5 expression matrices for large-scale cross-sample analysis. The HDF5 files contain gene × sample count matrices for human and mouse.\n\n```python\nimport requests\n\n# HDF5 files are available for bulk download from the ARCHS4 data portal\n# URL pattern: https:\u002F\u002Fmaayanlab.cloud\u002Farchs4\u002Fdownload#expression\n# Human gene-level: human_gene_v2.6.h5\n# Mouse gene-level: mouse_gene_v2.6.h5\n\ndef get_h5_download_urls() -> dict:\n    \"\"\"Return download URLs for ARCHS4 HDF5 expression matrices.\"\"\"\n    base = \"https:\u002F\u002Fmaayanlab.cloud\u002Farchs4\"\n    return {\n        \"human_gene\": f\"{base}\u002Ffiles\u002Fhuman_gene_v2.6.h5\",\n        \"mouse_gene\": f\"{base}\u002Ffiles\u002Fmouse_gene_v2.6.h5\",\n        \"human_transcript\": f\"{base}\u002Ffiles\u002Fhuman_transcript_v2.6.h5\",\n        \"mouse_transcript\": f\"{base}\u002Ffiles\u002Fmouse_transcript_v2.6.h5\",\n    }\n\nurls = get_h5_download_urls()\nfor key, url in urls.items():\n    print(f\"  {key:\u003C22}  {url}\")\n\n# To work with a downloaded HDF5 file:\ntry:\n    import h5py\n    import numpy as np\n\n    h5_path = \"human_gene_v2.6.h5\"   # after download\n\n    def extract_gene_from_h5(h5_path: str, gene_symbol: str,\n                              n_samples: int = 1000) -> dict:\n        \"\"\"Extract expression values for a gene from the HDF5 matrix.\"\"\"\n        with h5py.File(h5_path, \"r\") as f:\n            genes = [g.decode() for g in f[\"meta\"][\"genes\"][\"gene_symbol\"][:]]\n            if gene_symbol not in genes:\n                raise ValueError(f\"{gene_symbol} not found in HDF5\")\n            idx = genes.index(gene_symbol)\n            expr = f[\"data\"][\"expression\"][idx, :n_samples]\n            sample_ids = [s.decode() for s in f[\"meta\"][\"samples\"][\"geo_accession\"][:n_samples]]\n        return {\"gene\": gene_symbol, \"expression\": expr, \"sample_ids\": sample_ids}\n\n    result = extract_gene_from_h5(h5_path, \"TP53\", n_samples=500)\n    print(f\"TP53 expression: mean={result['expression'].mean():.2f},\"\n          f\" max={result['expression'].max():.2f} (n={len(result['expression'])} samples)\")\nexcept ImportError:\n    print(\"h5py not installed. Install with: pip install h5py\")\nexcept FileNotFoundError:\n    print(\"HDF5 file not downloaded yet. Use the URLs above to download first.\")\n```\n\n## Key Concepts\n\n### Z-Score Normalization\n\nARCHS4 reports gene expression as z-scores computed relative to all samples for that gene. A z-score of 0 means expression at the population mean; a z-score of 2.0 means expression 2 standard deviations above the mean. Z-scores are more interpretable across datasets than raw counts because they account for library size differences and batch effects introduced by uniform alignment across studies.\n\n```python\n# Example: Positive z-score = above-average expression for that gene\n# z > 2.0 → top ~2.5% of samples for that gene\n# z \u003C -2.0 → bottom ~2.5% of samples for that gene\n# Use absolute z-score thresholds consistently when comparing across genes\n```\n\n### HDF5 vs REST API\n\n| Access method | Best for | Limitations |\n|---------------|----------|-------------|\n| REST API (`\u002Fzscore`, `\u002Fcorrelations`) | Quick single-gene queries, exploration | Aggregated profiles only, no per-sample access |\n| REST API (`\u002Fsamples\u002Fsearch`) | Discovering relevant datasets | Returns metadata, not expression values |\n| HDF5 download | Bulk analysis, custom co-expression, ML | Requires 30–60 GB disk; download once |\n\n### Species and Gene Symbol Conventions\n\nARCHS4 indexes human samples using HGNC gene symbols (uppercase, e.g., `TP53`) and mouse samples using MGI symbols (first letter uppercase, e.g., `Trp53`). The `species` parameter accepts `\"human\"` or `\"mouse\"`. Mixed-case or ensemble IDs will return empty results.\n\n## Common Workflows\n\n### Workflow 1: Multi-Gene Tissue Expression Heatmap\n\n**Goal**: Compare tissue expression profiles of a gene panel and visualize as a heatmap to identify tissue-specific vs ubiquitous expression patterns.\n\n```python\nimport requests, time\nimport pandas as pd\n\nARCHS4_BASE = \"https:\u002F\u002Fmaayanlab.cloud\u002Farchs4\u002Fapi\u002Fv1\"\n\ngene_panel = [\"MYC\", \"TP53\", \"BRCA1\", \"EGFR\", \"KRAS\", \"CDK4\"]\ntop_n_tissues = 25\n\ndef get_tissue_zscores(gene: str) -> pd.Series:\n    r = requests.get(\n        f\"{ARCHS4_BASE}\u002Fmeta\u002Fgenes\u002F{gene}\u002Fzscore\",\n        params={\"species\": \"human\"},\n        timeout=30\n    )\n    r.raise_for_status()\n    records = r.json().get(\"values\", [])\n    df = pd.DataFrame(records).set_index(\"tissue\")[\"zscore\"]\n    return df\n\n# Build expression matrix (genes × tissues)\nall_data = {}\nfor gene in gene_panel:\n    try:\n        all_data[gene] = get_tissue_zscores(gene)\n        print(f\"  Fetched {gene}\")\n    except Exception as e:\n        print(f\"  Warning: {gene} failed — {e}\")\n    time.sleep(0.1)\n\nmatrix = pd.DataFrame(all_data).T   # genes × tissues\n# Select top tissues by max absolute z-score\ntissue_importance = matrix.abs().max(axis=0).sort_values(ascending=False)\ntop_tissues = tissue_importance.head(top_n_tissues).index\nmatrix_subset = matrix[top_tissues]\n\n# Save the gene × tissue matrix; render with the omics-plotting SKILL (`skills\u002Fdata-visualization\u002Fomics-plotting\u002FSKILL.md`) \"Expression heatmap\"\n# recipe (RdBu_r, center=0) -> figures\u002Farchs4_panel_heatmap.png\nmatrix_subset.to_csv(\"archs4_panel_matrix.csv\")\nprint(f\"Panel matrix ready: {matrix_subset.shape} -> archs4_panel_matrix.csv\")\n```\n\n### Workflow 2: Co-expression Network Seed Expansion\n\n**Goal**: Start from a seed gene, retrieve co-expressed partners, then query their co-expressed genes in turn to build a two-hop co-expression neighborhood.\n\n```python\nimport requests, time\nimport pandas as pd\n\nARCHS4_BASE = \"https:\u002F\u002Fmaayanlab.cloud\u002Farchs4\u002Fapi\u002Fv1\"\n\ndef get_coexp(gene: str, top_n: int = 20, species: str = \"human\") -> list:\n    r = requests.get(\n        f\"{ARCHS4_BASE}\u002Fmeta\u002Fgenes\u002F{gene}\u002Fcorrelations\",\n        params={\"species\": species, \"limit\": top_n},\n        timeout=30\n    )\n    r.raise_for_status()\n    return [rec[\"gene\"] for rec in r.json().get(\"values\", [])]\n\nseed_gene = \"PCNA\"\nmin_correlation = 0.80\n\n# Hop 1: direct co-expressed partners\nhop1_genes = get_coexp(seed_gene, top_n=30)\nprint(f\"Hop 1 partners of {seed_gene}: {len(hop1_genes)}\")\ntime.sleep(0.1)\n\n# Hop 2: co-expressed genes of each partner\nedges = set()\nfor gene in hop1_genes[:10]:   # limit for demonstration\n    partners = get_coexp(gene, top_n=20)\n    for partner in partners:\n        if partner != seed_gene:\n            edges.add((gene, partner))\n    time.sleep(0.1)\n\n# Summarize the network\nnetwork_df = pd.DataFrame(list(edges), columns=[\"source\", \"target\"])\nhub_counts = network_df[\"source\"].value_counts()\nprint(f\"\\nTwo-hop network: {len(edges)} edges\")\nprint(f\"Top hub genes:\")\nprint(hub_counts.head(5))\n\nnetwork_df.to_csv(f\"{seed_gene}_coexp_network.csv\", index=False)\nprint(f\"\\nSaved {seed_gene}_coexp_network.csv\")\n```\n\n### Workflow 3: Sample Discovery and Dataset Summary\n\n**Goal**: Search for samples by disease keyword, summarize how many GEO series are available, and export sample metadata for downstream reanalysis selection.\n\n```python\nimport requests, time\nimport pandas as pd\n\nARCHS4_BASE = \"https:\u002F\u002Fmaayanlab.cloud\u002Farchs4\u002Fapi\u002Fv1\"\n\ndef search_and_summarize(keyword: str, species: str = \"human\",\n                          limit: int = 200) -> pd.DataFrame:\n    \"\"\"Search samples and return a tidy metadata DataFrame.\"\"\"\n    r = requests.get(\n        f\"{ARCHS4_BASE}\u002Fsamples\u002Fsearch\",\n        params={\"query\": keyword, \"species\": species, \"limit\": limit},\n        timeout=30\n    )\n    r.raise_for_status()\n    records = r.json().get(\"samples\", [])\n    return pd.DataFrame(records)\n\nkeyword = \"colorectal cancer\"\ndf = search_and_summarize(keyword, limit=150)\nprint(f\"Samples matching '{keyword}': {len(df)}\")\n\nif len(df) > 0:\n    # Summarize by GEO series\n    series_counts = df[\"series_id\"].value_counts()\n    print(f\"\\nTop GEO series (by sample count):\")\n    print(series_counts.head(8).to_string())\n\n    # Export sample list\n    df.to_csv(f\"{keyword.replace(' ', '_')}_samples.csv\", index=False)\n    print(f\"\\nSaved {keyword.replace(' ', '_')}_samples.csv ({len(df)} samples)\")\n    print(f\"Unique GEO series: {df['series_id'].nunique()}\")\n```\n\n## Key Parameters\n\n| Parameter | Endpoint | Default | Range \u002F Options | Effect |\n|-----------|----------|---------|-----------------|--------|\n| `species` | All gene endpoints | `\"human\"` | `\"human\"`, `\"mouse\"` | Selects the species-specific sample index |\n| `limit` | `\u002Fcorrelations`, `\u002Fsamples\u002Fsearch` | `100` | `1`–`500` | Number of results returned |\n| `gene_symbol` (path) | `\u002Fmeta\u002Fgenes\u002F{gene}\u002Fzscore`, `\u002Fcorrelations` | — | HGNC symbol (human) or MGI symbol (mouse) | Query gene; case-sensitive |\n| `query` | `\u002Fsamples\u002Fsearch` | — | free-text string | Metadata keyword search across title, tissue, source fields |\n| `offset` | `\u002Fsamples\u002Fsearch` | `0` | integer | Pagination offset for large result sets |\n| `correlation` (response field) | `\u002Fcorrelations` | — | `-1.0`–`1.0` | Pearson correlation coefficient; filter `> 0.7` for high co-expression |\n| `zscore` (response field) | `\u002Fzscore` | — | continuous float | Expression z-score; `> 2.0` = high expression |\n| `page_size` (HDF5) | HDF5 slice | all | any integer | Number of samples to extract per read from HDF5 |\n\n## Best Practices\n\n1. **Use z-score thresholds consistently**: Because z-scores are gene-specific, a z-score of 2.0 for a ubiquitous gene (GAPDH) and a tissue-restricted gene (TTR, liver) have different interpretive meaning. Always annotate which gene you are comparing and the tissue background.\n\n2. **Sleep between batch queries**: ARCHS4 enforces a soft rate limit of ~10 requests\u002Fsecond. Add `time.sleep(0.1)` between sequential gene queries to avoid `429 Too Many Requests` errors.\n\n3. **Download HDF5 for large-scale analyses**: For queries covering 50+ genes or requiring per-sample expression values, the REST API is impractical. Download the HDF5 file once and use `h5py` slicing for fast matrix access; this avoids hitting rate limits and is 100× faster for bulk extraction.\n\n4. **Match gene symbol conventions by species**: Human queries require HGNC uppercase symbols (e.g., `TP53`); mouse queries require MGI-style symbols (e.g., `Trp53`). Using the wrong case returns empty results without an error.\n\n5. **Validate co-expression findings across datasets**: ARCHS4 co-expression aggregates across all tissue types. A high correlation may be driven by a single tissue or study. Cross-check with tissue-specific queries or manually inspect the top contributing GEO series.\n\n## Common Recipes\n\n### Recipe: Quick Tissue Specificity Check\n\nWhen to use: Rapidly determine whether a gene is broadly expressed (housekeeping) or tissue-restricted before designing experiments.\n\n```python\nimport requests\n\nARCHS4_BASE = \"https:\u002F\u002Fmaayanlab.cloud\u002Farchs4\u002Fapi\u002Fv1\"\n\ndef tissue_specificity_summary(gene_symbol: str) -> None:\n    \"\"\"Print a summary of high and low expression tissues for a gene.\"\"\"\n    r = requests.get(\n        f\"{ARCHS4_BASE}\u002Fmeta\u002Fgenes\u002F{gene_symbol}\u002Fzscore\",\n        params={\"species\": \"human\"},\n        timeout=30\n    )\n    r.raise_for_status()\n    records = r.json().get(\"values\", [])\n    zscores = [rec[\"zscore\"] for rec in records if rec.get(\"zscore\") is not None]\n    top_high = sorted(records, key=lambda x: x.get(\"zscore\", 0), reverse=True)[:5]\n    top_low = sorted(records, key=lambda x: x.get(\"zscore\", float(\"inf\")))[:3]\n    print(f\"\\n{gene_symbol} — {len(zscores)} tissues\")\n    print(f\"  Range: [{min(zscores):.2f}, {max(zscores):.2f}]  \"\n          f\"Mean: {sum(zscores)\u002Flen(zscores):.2f}\")\n    print(\"  High expression:\")\n    for t in top_high:\n        print(f\"    {t['tissue']:\u003C35}  z={t['zscore']:.2f}\")\n    print(\"  Low expression:\")\n    for t in top_low:\n        print(f\"    {t['tissue']:\u003C35}  z={t['zscore']:.2f}\")\n\ntissue_specificity_summary(\"TTR\")   # Transthyretin — liver-specific\n```\n\n### Recipe: Batch Gene Co-Expression Table\n\nWhen to use: Generate a pairwise correlation table for a gene panel from a list of differentially expressed genes.\n\n```python\nimport requests, time\nimport pandas as pd\n\nARCHS4_BASE = \"https:\u002F\u002Fmaayanlab.cloud\u002Farchs4\u002Fapi\u002Fv1\"\n\ndef batch_coexpr_table(gene_list: list, top_n: int = 10) -> pd.DataFrame:\n    \"\"\"For each gene in gene_list, return its top co-expressed genes.\"\"\"\n    rows = []\n    for gene in gene_list:\n        try:\n            r = requests.get(\n                f\"{ARCHS4_BASE}\u002Fmeta\u002Fgenes\u002F{gene}\u002Fcorrelations\",\n                params={\"species\": \"human\", \"limit\": top_n},\n                timeout=30\n            )\n            r.raise_for_status()\n            for rec in r.json().get(\"values\", []):\n                rows.append({\n                    \"query_gene\": gene,\n                    \"coexp_gene\": rec.get(\"gene\"),\n                    \"correlation\": rec.get(\"correlation\"),\n                })\n            time.sleep(0.1)\n        except Exception as e:\n            print(f\"Warning: {gene} skipped — {e}\")\n    return pd.DataFrame(rows)\n\ndeg_list = [\"MYC\", \"CCND1\", \"CDK4\", \"RB1\", \"E2F1\"]\ncoexp_table = batch_coexpr_table(deg_list, top_n=10)\nprint(f\"Co-expression entries: {len(coexp_table)}\")\nprint(coexp_table.groupby(\"query_gene\")[\"coexp_gene\"].count())\ncoexp_table.to_csv(\"deg_coexpression_table.csv\", index=False)\nprint(\"Saved deg_coexpression_table.csv\")\n```\n\n### Recipe: Export Sample IDs for GEO Download\n\nWhen to use: Identify relevant GEO accessions to download raw count matrices for a meta-analysis.\n\n```python\nimport requests\nimport pandas as pd\n\nARCHS4_BASE = \"https:\u002F\u002Fmaayanlab.cloud\u002Farchs4\u002Fapi\u002Fv1\"\n\nkeyword = \"glioblastoma\"\nr = requests.get(\n    f\"{ARCHS4_BASE}\u002Fsamples\u002Fsearch\",\n    params={\"query\": keyword, \"species\": \"human\", \"limit\": 200},\n    timeout=30\n)\nr.raise_for_status()\nsamples = pd.DataFrame(r.json().get(\"samples\", []))\nif len(samples) > 0:\n    # Get unique GEO series accessions\n    series = samples[\"series_id\"].dropna().unique()\n    print(f\"Unique GEO series for '{keyword}': {len(series)}\")\n    for s in series[:10]:\n        n = (samples[\"series_id\"] == s).sum()\n        print(f\"  {s}  ({n} samples)\")\n    # Export series list for GEO download script\n    pd.Series(series, name=\"geo_series\").to_csv(\n        f\"{keyword}_geo_series.txt\", index=False\n    )\n    print(f\"\\nSaved {keyword}_geo_series.txt\")\n```\n\n## Troubleshooting\n\n| Problem | Cause | Solution |\n|---------|-------|----------|\n| `HTTP 404` for gene query | Gene symbol not found in ARCHS4 index | Verify HGNC symbol spelling; check `species` parameter matches gene convention (human: uppercase, mouse: first-letter-upper) |\n| `HTTP 429 Too Many Requests` | Exceeded ~10 req\u002Fs rate limit | Add `time.sleep(0.1)` between requests; for batch queries use a 0.5 s delay |\n| Empty `values` list in z-score response | Gene is not expressed in any indexed tissue, or wrong species | Switch species; verify gene is protein-coding and has GEO coverage |\n| Empty `samples` list from search | Keyword not matched in metadata fields | Try broader or alternative keywords (e.g., `\"liver\"` instead of `\"hepatic\"`) |\n| HDF5 gene not found | Symbol mismatch between HDF5 version and query | Check available genes in `f[\"meta\"][\"genes\"][\"gene_symbol\"][:]`; try Ensembl ID or alias |\n| `requests.exceptions.Timeout` | Slow API response under load | Increase `timeout=60`; retry with exponential backoff |\n| Z-scores all near zero | Gene has very low or absent expression across tissues | Check the gene's expression in raw counts; the gene may be non-coding or very lowly expressed |\n\n## Related Skills\n\n- `gnomad-database` — Population variant frequencies; use after ARCHS4 to identify variants in highly expressed genes\n- `gget-genomic-databases` — Enrichr pathway enrichment for ARCHS4 co-expression gene lists (`gget enrichr`)\n- `pydeseq2-differential-expression` — Differential expression analysis on bulk RNA-seq; ARCHS4 HDF5 matrices can serve as reference cohorts\n\n## References\n\n- [ARCHS4 web portal](https:\u002F\u002Fmaayanlab.cloud\u002Farchs4\u002F) — Interactive expression browser and dataset download\n- [ARCHS4 REST API documentation](https:\u002F\u002Fmaayanlab.cloud\u002Farchs4\u002Fapi\u002F) — Endpoint reference and parameters\n- [Lachmann et al., Nature Communications 2018](https:\u002F\u002Fdoi.org\u002F10.1038\u002Fs41467-018-03751-6) — ARCHS4 original publication describing uniform alignment pipeline\n- [ARCHS4 GitHub](https:\u002F\u002Fgithub.com\u002FMaayanLab\u002Farchs4) — Source code and HDF5 schema documentation\n",{"name":5,"license":15,"description":7},"master","fd76f882a04e445e899d5cfb2732f2105ea054ee","skills\u002Fawesome-skills\u002Farchs4-database",0,"https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS","https:\u002F\u002Fbg-szy.github.io\u002FTOP-SKILLS\u002F","https:\u002F\u002Fgithub.com\u002Fbg-szy","https:\u002F\u002Fwww.ecust.edu.cn\u002F","a student of East China University of Science and Technology","2026-11-15 03:38:02",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add bg-szy\u002FTOP-SKILLS --skill archs4-database",{"tool":40,"command":41},"bunx","bunx skills add bg-szy\u002FTOP-SKILLS --skill archs4-database",{"tool":43,"command":44},"pnpm","pnpm dlx skills add bg-szy\u002FTOP-SKILLS --skill archs4-database","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fawesome-skills\u002Farchs4-database\u002FSKILL.md",true,[],[49,58,65,72,79,86],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":53,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":57},"01M7DXW9N826PKXK174PVW3038","serpmaven","Scrape Google search results (SERP) to JSON with SERP Maven (serpmaven) - a real Chrome browser on a residential proxy with sticky sessions. Run it as a CLI, a Python library, a local HTTP search API (`serve`), an MCP server or a Docker image; set the proxy login, workers, pages and cost tracking. Use when the user wants Google results, rank tracking, a self-hosted SERP API, or live Google search for an AI agent.","MIT","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Fserpmaven\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":53,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":57},"01M7DXVHSTWDV65475QEQ915M7","revnu-landing-page-audit","Find out why a landing page isn't turning visitors into signups, demos or sales. Audits one page against what the ad, post or search that sends people there promised, then checks the first screen, proof, call to action, friction and mobile. Returns at most 7 prioritized fixes, plus what is fine and what could not be checked; rewrites specific lines and fixes the page in the repo when asked. Never promises a conversion lift. Works without a Revnu account. Use when the user says or asks: \"audit my landing page\", \"why isn't this page converting\", \"review my homepage\", \"my ads get clicks but no signups\", \"people bounce from the pricing page\", \"CRO review\", \"improve conversion rate\", \"is my hero section clear\", \"roast my landing page\", \"rewrite my headline\", \"what's wrong with this page\", \"landing page feedback\", \"make the signup page convert better\". Not for SEO or AI-search audits, page speed engineering on its own, or building a new page from scratch.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Frevnu-landing-page-audit\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":53,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":57},"01M7DXV8X2D7B3VTD4HHYYHTGR","revnu-growth-context","Write down once who buys, what they're stuck on, what it costs, what proof you have and what you've already tried, so every growth task starts from facts instead of a questionnaire. Creates or updates .agents\u002Frevnu-growth.md from the repo, the live site and the user, and imports an existing product-marketing.md. Use when the user says \"set up our marketing context\", \"who is our ideal customer\", \"write our ICP\", \"describe the product for marketing\", \"positioning doc\", \"what's our brand voice\", \"remember this about our customers\", \"log what we tried\", \"what have we learned from marketing\", \"we changed pricing, update the context\", \"update our growth notes\", \"summarize the business for the agent\", \"import my product-marketing.md\", \"start a growth doc\", or before a first marketing, SEO, outreach or launch task when no context file exists. Works without a Revnu account.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Frevnu-growth-context\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":53,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":57},"01M7DXV0DGJ1G0A60PAHC6J3C5","revnu-get-listed","Get onto the third-party pages AI answers and search cite when buyers ask for the best tool in your category: \"best X\" roundups, directories, review sites, GitHub awesome lists, community threads and comparison pages. Finds which ones are cited, ranks them by fit and effort, and drafts each submission, PR or pitch by the target's own rules. Use when the user says \"get us listed\", \"which directories should we submit to\", \"how do we get into best-of lists\", \"why does ChatGPT recommend competitors and not us\", \"get mentioned in AI answers\", \"submit to awesome lists\", \"get on G2\", \"where are our competitors listed\", \"pitch listicle authors\", \"find backlink opportunities\", \"launch directories\", \"get into roundups\", \"Product Hunt alternatives\", \"where should we be listed\", \"get cited by Perplexity\". Never submits, pays or posts without a yes. Works without a Revnu account.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Frevnu-get-listed\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":53,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":57},"01M7DXTSPMGT9D6DSS0HP9BSTA","revnu-ai-readiness-audit","Audit whether your website gives ChatGPT, Perplexity, Claude, Gemini and Google's AI Overviews something worth quoting, and fix the pages that don't. Use when the user says or asks \"is my site ready for AI search\", \"audit my site for AI answers\", \"AEO audit\", \"GEO audit\", \"why doesn't ChatGPT quote our pricing\", \"make our pages citable by AI\", \"do I need llms.txt\", \"does schema help with ChatGPT\", \"check our structured data\", \"is our content visible without JavaScript\", \"AI SEO audit\", \"optimize our homepage for AI answers\", \"LLM SEO check\", \"why does AI get our product wrong\", \"fix our site for AI Overviews\". Checks fetchability and indexability, answers in the raw HTML, entity facts, schema (including JS-injected markup), headings, dates and llms.txt, then gives at most 10 prioritised fixes and edits the repo when asked. Works without a Revnu account.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Frevnu-ai-readiness-audit\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":53,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":57},"01M7DXSZHCVTRS620GC3S97JZV","proxy-troubleshooting","Diagnose residential proxy failures, with NodeMaven's gateway as the reference - 407 with correct credentials, 406, 410, 500, a connection that hangs, ERR_TUNNEL_CONNECTION_FAILED in a browser, Playwright or Puppeteer ignoring proxy credentials, a sticky session that changes IP, geo-targeting that is silently ignored, passwords with special characters, and unexpected traffic from headless Chrome. Use when a proxy connection fails, returns the wrong location, or costs more traffic than expected.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Fproxy-troubleshooting\u002FSKILL.md",[],[]]