TCGA 表达矩阵流水线

SKILLAI 工具
AI 工具 未标注权限 许可证不明确
安装这个技能

Chat2Research Al科研工作台:TCGA gene x sample expression matrices.(Skill由Chat2Research Al科研工作台:https://icell.abiosciences.cn/?source=20e0489c 提供,登录平台可享免费算力和Token及更多分析组学Skills)

一句话选型结论

按资料字段整理

TCGA 表达矩阵流水线是AI 工具类的 Agent Skill,安装方式未标注,权限级别未标注,许可证不明确,有可直接复制的安装命令。技能本质是给模型读的说明书,效果取决于模型与客户端;装完先用一个小任务验证,再放进正式流程。

分类AI 工具 安装方式未标注 权限级别未标注权限 许可证许可证不明确
累计安装 未标注 本周 未标注
GitHub 星标 未标注 仓库 未标注
下载量 未标注 技能市场下载数
权限级别 未标注权限 安装前请确认风险范围
许可证 许可证不明确 未说明

安装

未标注
在支持 Skills 的客户端里执行,装完问一句「你有哪些技能」验证
skillhub install user_7ece4fea/tcga-expression-matrix-pipeline
  1. 1
    确认客户端支持

    确认你的客户端支持 Skills(Claude、Codex、Cursor 等),并升级到较新的版本。

  2. 2
    拿到技能文件

    执行上面的命令安装;也可以把仓库里的 SKILL.md 手动放进客户端的 skills 目录。

  3. 3
    刷新技能列表

    重新打开客户端,或刷新技能列表,让新放进来的技能被加载。

  4. 4
    验证是否生效

    问一句「你有哪些技能」,确认列表里出现它,再拿一个小任务试跑。

技能档案

AI 工具
字段来自技能仓库与公开索引,中文说明由本站标注
作者 / 维护方user_7ece4fea仓库 未标注 · 版本 未标注
宿主客户端未标注技能可被这些客户端加载
安装方式未标注安装包 community
权限级别未标注权限安装前请确认风险范围
许可证未说明许可证不明确,商用前请自行确认条款
仓库可用性available技能仓库当前是否可访问
最近核验未标注上游最后核验时间 · 数据更新 1791672263
正文体量9.9 KBSKILL.md 原文大小,越大说明说明书写得越细

典型使用场景

3 类
按分类整理的常见用法,具体以 SKILL.md 为准
组合多个 AI 能力

把写作、检索、总结串成一条流程。

搭工作流

把固定流程做成可重复调用的步骤。

做提示词与评测

整理提示词并对比输出效果。

选择建议

装之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 有可直接复制的安装命令,不用自己翻文档找入口。

先想清楚的地方

  • 没有标注权限级别,实际能做什么要装好后确认。
  • 许可证不明确,商用或二次分发前先到仓库确认条款。
  • 没有做站内核验,内容以作者仓库为准。
  • 技能只是说明书,实际效果取决于模型与客户端,装完先用小任务试一遍。

更适合

  • 需要在AI 工具场景里给模型补一套做法的人。
  • 愿意先读一遍 SKILL.md、确认它会让模型做什么的人。

不太适合

  • 对许可证要求很严、必须明确可商用的人。
  • 只想装完就自动变强、不打算看说明书的人。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
技能权限级别安装方式累计安装宿主客户端安装命令
TCGA 表达矩阵流水线当前 未标注权限 未标注 未标注 未标注 有
执行计划 只读 GitHub 仓库 151.5 万 Codex、Claude、Cursor 有
Playwright MCP 测试 浏览器控制 ClawHub 市场 136.5 万 OpenClaw 有
完成前的验证 未标注权限 GitHub 仓库 131.9 万 Codex、Claude、Cursor 有
子 Agent 驱动开发 只读 GitHub 仓库 131.2 万 Codex、Claude、Cursor 有
前端设计 执行命令 GitHub 仓库 125.6 万 Codex、Claude、Cursor 有

SKILL.md 全文

9.9 KB
模型实际读到的说明书原文,来自技能仓库

TCGA Transcriptomics End-to-End Pipeline (Download → Gene × Sample Expression Matrix)

When to Use

  • You need to turn TCGA STAR-Counts expression data of any cancer project (COAD/READ/BRCA/LUAD, etc.) into a gene × sample matrix for downstream analysis such as differential expression or survival analysis.
  • You already have a downloaded gdc_data folder (one TSV per sample) or need to download from scratch; you need to handle duplicate aliquots, normalize column names, and output multiple expression matrices (counts/TPM/FPKM).

Overview

End-to-end workflow: GDC query & download (TCGAbiolinks) → directory inspection → per-sample STAR gene counts TSV parsing → gene_id-aligned merge → file_id → TCGA barcode mapping → output counts/TPM/FPKM matrices → duplicate-aliquot deduplication (keep latest batch) → column-name normalization → validation.
Validated on TCGA-COAD (524 samples) + TCGA-READ (177 samples); all core parameters are configurable so any TCGA project can reuse it directly.

Inputs (Parameters)

Parameter Description Example
projects TCGA project list c("TCGA-COAD","TCGA-READ") or "TCGA-BRCA"
gdc_data_dir Root of downloaded data (skip download if exists) <root>/gdc_data
query_tsv_dir Directory of GDCquery manifests (gdc_query_<PROJ>_STAR_Counts.tsv) <root>/Stat
expr_types Output types, multi-select c("counts","tpm","fpkm"); counts=unstranded, tpm=tpm_unstranded, fpkm=fpkm_uq_unstranded (use fpkm_unstranded if plain FPKM preferred)
sample_type_filter Sample scope NULL=all; "Primary Tumor"=primary only; c("Primary Tumor","Solid Tissue Normal")
keep_dup_latest Deduplicate same-aliquot files keeping the latest batch TRUE
output_format csv / tsv "csv"

Steps

1. Query & Download (skip if gdc_data already exists)

  • Query: GDCquery(project, data.category=&quot;Transcriptome Profiling&quot;, data.type=&quot;Gene Expression Quantification&quot;, workflow.type=&quot;STAR - Counts&quot;); clinical: GDCquery_clinic(project, type=&quot;clinical&quot;).
  • Output: query RDS + gdc_query_&lt;PROJ&gt;_STAR_Counts.tsv manifest (file_id, cases.submitter_id, sample.submitter_id, sample_type, created_datetime, updated_datetime, analysis_id, file_size).
  • Download: GDCdownload(query, directory=gdc_data_dir, files.per.chunk=100, method=&quot;api&quot;).
  • Note: TCGAbiolinks >= 2.30 removed the legacy/file.type arguments; GDCdownload method is only "api"/"client"; install pitfalls in Pitfalls. Files are auto-extracted to gdc_data/&lt;PROJ&gt;/Transcriptome_Profiling/Gene_Expression_Quantification/&lt;file_uuid&gt;/&lt;file_uuid&gt;.rna_seq.augmented_star_gene_counts.tsv.

2. File Format Inspection (always inspect before merging)

One TSV per sample: line 1 is a comment # gene-model: GENCODE v36 (skip); line 2 header gene_id, gene_name, gene_type, unstranded, stranded_first, stranded_second, tpm_unstranded, fpkm_unstranded, fpkm_uq_unstranded; lines 3-6 are non-gene summary rows N_unmapped/N_multimapping/N_noFeature/N_ambiguous (must skip; optionally keep for QC); from line 7 on are genes with versioned ENSEMBL IDs (ENSG00000000003.15). All files within a project share the same gene set (GENCODE v36 / hg38).

3. Merge into Gene × Sample Matrix (core)

Input: per-sample TSVs + query manifest. Logic: per file data.table::fread(comment.char=&quot;#&quot;) → filter grepl(&quot;^ENSG&quot;, gene_id) → align to the first file's gene order with match() → extract needed columns → bind into a matrix.
- Sample column names = TCGA barcode: the UUID folder is the GDC file_id; map file_id → cases.submitter_id (case-level barcode, e.g. TCGA-A6-2670) or sample.submitter_id (aliquot-level) via the manifest.
- Key pitfall: matrix column names contain hyphens; never build the matrix via as.data.frame() (make.names converts - to ., breaking clinical-table matching); use do.call(cbind, list) + explicit colnames()&lt;-, or as.data.frame(check.names=FALSE).
- Output: three matrices (gene_id + gene_name annotation columns + sample columns) + sample_mapping.csv (file_uuid, barcode, aliquot, project, sample_type, created_datetime, updated_datetime, total_counts).

4. Duplicate-Aliquot Identification & Verification

  • Group sample_mapping by aliquot (sample.submitter_id): N>1 means the same sample was sequenced/analyzed more than once. In COAD/READ there were 10 groups (2 files each, independent GDC analyses of the same aliquot, different created_datetime batches).
  • Do NOT confuse with same-case different-aliquot files (e.g. tumor + adjacent normal; 52 cases in COAD/READ) — those are different biological samples, not duplicate sequencing.
  • Optional consistency check: per pair compute Pearson (raw counts, log2(counts+1), TPM) and "exactly identical" fraction. Observed: log2 correlation 0.92-0.96 (largely concordant) but raw/TPM correlation low (0.2-0.6 / 0.02-0.15) because a few technical-artifact genes dominate — RN7SL1 (structural RNA; multimapping assignment differs between STAR versions, up to millions of counts), mitochondrial genes (MT-ND4/CO1/CO2/CO3/CYB), and a few highly expressed genes (EEF1A1, RPS6, EEF2). Judge consistency by log2-counts correlation.

5. Deduplication (keep the latest batch per aliquot)

Priority: later created_datetime (analysis batch, UTC-normalized) → later updated_datetime → higher total counts (deeper library). All 10 pairs in the real run were decided by the time criterion. Rename the kept column to the standard aliquot barcode (e.g. TCGA-A6-2677-01A); record dropped columns in dedup_mapping.csv (keep/drop columns, timestamps, total counts, reason).

6. Column-Name Normalization & Validation

  • Merge-phase collision names of the form TCGA-XX-XXXX_TCGA-XX-XXXX-XXA (non-duplicate samples, label-only issue) are normalized to the pure aliquot barcode; log in colname_normalization.csv.
  • Final validation: dimensions (n_samples = total files − dropped columns), unique column names, all matching the standard barcode regex ^TCGA-[A-Z0-9]{2}-[A-Z0-9]{4}(-[0-9]{2}[A-Z])?$, no NA.

Parameters to Customize

output_dir       &lt;- &quot;&lt;OUTPUT_ROOT&gt;&quot;         # required
gdc_data_dir     &lt;- &quot;&lt;GDC_DATA_DIR&gt;&quot;        # required
query_tsv_dir    &lt;- &quot;&lt;QUERY_TSV_DIR&gt;&quot;        # required
projects         &lt;- c(&quot;TCGA-COAD&quot;,&quot;TCGA-READ&quot;)
expr_types       &lt;- c(&quot;counts&quot;,&quot;tpm&quot;,&quot;fpkm&quot;)
sample_type_filter &lt;- NULL
keep_dup_latest  &lt;- TRUE
output_format    &lt;- &quot;csv&quot;

Reference scripts: scripts/tcga_expression_pipeline.R.txt (main workflow; edit the config block only); scripts/verify_duplicates_template.py (optional verification).

Evidence Criteria / Expected Output

  • Query non-empty; downloaded file count equals manifest file count; du -sh total matches manifest file_size sum.
  • Matrix dimensions = gene count (~60k) × sample count; no NA; unique standard TCGA barcode column names.
  • Spot check: a gene value (e.g. TSPAN6/ENSG00000000003.15) in one sample matches the source TSV.
  • Post-dedup sample count = total files − extra files from duplicate aliquots; dedup_mapping fully documents each decision.

Pitfalls

  1. biomaRt install failure: under Bioc 3.22, dplyr < 1.2 lacks the filter_out export causing lazy-loading failure; run install.packages(&quot;dplyr&quot;) before installing TCGAbiolinks.
  2. TCGAbiolinks >= 2.30 API: GDCquery has no legacy argument; clinical via GDCquery_clinic; GDCdownload method only api/client; result column is analysis_workflow_type (underscore).
  3. fread needs comment.char=&quot;#&quot; to skip the # gene-model line; filter N_* summary rows with ^ENSG.
  4. Hyphenated column names get mangled by make.names → use do.call(cbind)/check.names=FALSE.
  5. Duplicate-aliquot grouping is by aliquot, not by case; same-case different-aliquot files are different samples.
  6. RN7SL1/mitochondrial genes are technical artifacts; do not judge replicate quality from them; prefer time over depth for dedup (unless timestamps are unavailable).
  7. GDC download progress uses \r carriage returns; monitor with find &lt;dir&gt; -name &quot;*.tsv&quot; | wc -l + du -sh.
  8. Memory: read files one at a time keeping only needed columns; three matrices of ~60k × 701 samples take ~1 GB, safely within a 50 GB limit.

Extensions

  • Sample filtering: by sample_type (primary tumor only), tumor purity (ESTIMATE/ABSOLUTE), exclude FFPE.
  • Clinical integration: merge clinical_<PROJ>.tsv (GDCquery_clinic) on case barcode prefix for grouping and survival analysis.
  • Downstream: feed counts to DESeq2/edgeR (strip version suffixes from IDs or map symbols via gene_name); TPM/FPKM for cross-sample comparisons and visualization.
  • Pan-cancer merge: run per project then merge on common genes (mind batch effects; correct them).
  • File-level QC: extract N_* summary rows for alignment/multimapping-rate QC and sample filtering.
  • Output format extensions: Excel via writexl, TSV via fwrite(sep="\t"), RDS archives for R workflows.

> Packaging note. Scripts and tables in this skill carry a .txt suffix on their
> original extension (e.g. .R.txt, .tsv.txt) because the SkillHub upload allowlist
> does not accept .R or .tsv. This is cosmetic: Rscript is extension-agnostic, so
> Rscript scripts/&lt;name&gt;.R.txt ... behaves exactly like .R, and tab-separated data
> parses identically from .tsv.txt. Keep the suffix when repackaging.

常见问题

5 问
答案由本站依据条目字段整理
TCGA 表达矩阵流水线怎么安装?

在支持 Skills 的客户端里执行:skillhub install user_7ece4fea/tcga-expression-matrix-pipeline。安装方式为未标注。装完刷新技能列表或重开客户端。

TCGA 表达矩阵流水线支持哪些客户端?

资料没有标注宿主客户端,但只要客户端支持 Skills(Claude、Codex、Cursor 等),一般都能加载。

TCGA 表达矩阵流水线权限高吗,安全吗?

权限级别为未标注权限。安装前先看它会读取或写入哪些内容。

TCGA 表达矩阵流水线收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于技能本身和所用的模型或客户端,正式使用前按作者说明确认。

TCGA 表达矩阵流水线用什么许可证?

许可证标注为 未说明(许可证不明确)。商用或二次分发前请到仓库确认条款原文。

热门专题

按场景挑技能
全部专题 →

技能内容以作者仓库为准;分类、权限级别与许可证状态的中文说明为中文整理,最近核验 未标注。