[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CZ28MB84TTP81GQR6Q8G7R":3,"skill-same:01M6CZ28MB84TTP81GQR6Q8G7R":80},{"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":30,"linkOnly":31,"markdownContent":32,"markdownBody":33,"frontMatter":34,"refName":35,"commitSha":36,"skillDirectory":37,"forksCount":38,"repositoryHtmlUrl":39,"repositoryHomepageUrl":6,"ownerHtmlUrl":40,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":41,"install":42,"resources":55},"01M6CZ28MB84TTP81GQR6Q8G7R","download-gdc",null,"Download files from the NCI Genomic Data Commons (GDC) using the GDC Data Transfer Tool and REST API, supporting both open-access and controlled-access data.","Scientific-Tooling\u002Fstructured-intelligence","Scientific-Tooling","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F267453265?v=4","01M6CZ1SE6GGD4F67EAQ0PVX38","Scientific Tooling","01M6CZ1SJKCFVGH10Z3A152K02",4,"MIT","https:\u002F\u002Fgithub.com\u002FScientific-Tooling\u002Fstructured-intelligence\u002Fblob\u002Fmain\u002Fskills\u002Fdownload-gdc\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29],"download","download gdc","transfer","data","REST","api","open","access","tool","files","rest api","2026-11-10 10:12:30",false,"---\nname: download-gdc\ndescription: Download files from the NCI Genomic Data Commons (GDC) using the GDC Data Transfer Tool and REST API, supporting both open-access and controlled-access data.\n---\n\n# Skill: Download GDC\n\n## Use When\n\n- A user wants to download BAM, VCF, FASTQ, or other files from the NCI GDC (TCGA, TARGET, CPTAC, etc.).\n- A user has a GDC manifest file and wants to download all listed files.\n- A user wants to query the GDC API to build a manifest by project, data type, workflow, or data category.\n- A user wants to download controlled-access data using a GDC user token.\n- A user wants to verify downloaded file integrity using MD5 checksums from the GDC manifest.\n- A user wants to organize downloaded files by case, sample, or data type.\n\n## Inputs\n\n- Required:\n  - one of:\n    - path to a GDC manifest file (TSV with columns: `id`, `filename`, `md5`, `size`, `state`)\n    - GDC file UUID(s) to generate a manifest on the fly\n    - GDC project ID (e.g., `TCGA-BRCA`) and filters to query and build a manifest\n- Optional:\n  - `--token-file FILE` — GDC user token for controlled-access data (required for dbGaP-protected files)\n  - `--outdir DIR` — output directory (default: `gdc_downloads`)\n  - `--jobs N` — number of parallel download streams (default: 1; max recommended: 8)\n  - `--retries N` — retry count on network errors (default: 3)\n  - `--no-verify` — skip MD5 verification after download\n  - `--dry-run` — print manifest and download commands without executing\n  - `--data-type TYPE` — filter for manifest generation (e.g., `\"Aligned Reads\"`, `\"Masked Somatic Mutation\"`)\n  - `--workflow TYPE` — workflow filter (e.g., `\"STAR 2-Pass\"`, `\"MuTect2\"`)\n  - `--experimental-strategy` — filter (e.g., `\"RNA-Seq\"`, `\"WXS\"`, `\"WGS\"`)\n\n## Workflow\n\n1. **Obtain a manifest**:\n   - If a manifest file is provided, validate it (check columns: `id`, `filename`, `md5`, `size`, `state`).\n   - If UUIDs are provided, generate a manifest via GDC API:\n     ```bash\n     curl -o manifest.txt \\\n       \"https:\u002F\u002Fapi.gdc.cancer.gov\u002Fmanifest?ids=$(echo \"$UUIDS\" | tr ' ' ',')\"\n     ```\n   - If a project ID and filters are provided, query the GDC files endpoint and produce a manifest:\n     ```bash\n     curl -XPOST \"https:\u002F\u002Fapi.gdc.cancer.gov\u002Ffiles\" \\\n       -H \"Content-Type: application\u002Fjson\" \\\n       -d '{\"filters\":{\"op\":\"and\",\"content\":[\n             {\"op\":\"=\",\"content\":{\"field\":\"cases.project.project_id\",\"value\":\"TCGA-BRCA\"}},\n             {\"op\":\"=\",\"content\":{\"field\":\"data_type\",\"value\":\"Aligned Reads\"}},\n             {\"op\":\"=\",\"content\":{\"field\":\"access\",\"value\":\"open\"}}]},\n            \"fields\":\"file_id,file_name,md5sum,file_size,state\",\n            \"size\":\"10000\",\"format\":\"tsv\"}'\n     ```\n\n2. **Check access tier**: inspect the `access` field in the API response.\n   - `open`: no token needed.\n   - `controlled`: `--token-file` is required; warn the user if it is absent.\n\n3. **Download with gdc-client**:\n   ```bash\n   gdc-client download \\\n     -m manifest.txt \\\n     [-t token.txt] \\\n     -d \"$OUTDIR\" \\\n     --n-processes \"$JOBS\" \\\n     --retry-amount \"$RETRIES\"\n   ```\n\n4. **Verify MD5 checksums**:\n   ```bash\n   while IFS=$'\\t' read -r uuid filename md5 size state; do\n     [[ \"$uuid\" == \"id\" ]] && continue\n     actual=$(md5sum \"$OUTDIR\u002F$uuid\u002F$filename\" | awk '{print $1}')\n     if [[ \"$actual\" != \"$md5\" ]]; then\n       echo \"CHECKSUM FAIL: $filename\" >&2\n     fi\n   done \u003C manifest.txt\n   ```\n\n5. **Organize files** (optional): flatten the `\u003Cuuid>\u002F\u003Cfilename>` layout into a user-specified directory structure by data type, project, or sample.\n\n6. Write `download_report.tsv` with: `uuid`, `filename`, `expected_md5`, `actual_md5`, `size_bytes`, `status`.\n\n## Output Contract\n\n- Downloaded files under `\u003Coutdir>\u002F\u003Cuuid>\u002F\u003Cfilename>` (GDC default layout)\n- `manifest.txt` used for the download (generated or provided)\n- `download_report.tsv` with columns: `uuid`, `filename`, `expected_md5`, `actual_md5`, `size_bytes`, `status` (`OK` \u002F `CHECKSUM_FAIL` \u002F `MISSING`)\n- `failed_uuids.txt` listing UUIDs that failed all retry attempts\n- Exact `gdc-client` command issued\n\n## Limits\n\n- GDC Data Transfer Tool (`gdc-client`) must be installed; download from https:\u002F\u002Fgdc.cancer.gov\u002Faccess-data\u002Fgdc-data-transfer-tool.\n- Controlled-access data requires a GDC user token obtained from https:\u002F\u002Fportal.gdc.cancer.gov after dbGaP authorization. Tokens expire after 30 days.\n- Open-access files (e.g., gene expression counts, masked somatic mutations) do not require a token.\n- GDC manifest files are project-snapshot–specific; file UUIDs are stable but a manifest generated today may differ from one generated later as projects update.\n- Parallel downloads (`--jobs > 1`) may trigger GDC rate limiting; start with 3–4 jobs and increase cautiously.\n- Common failure cases:\n  - expired or invalid token causing 403 errors on controlled-access files\n  - manifest containing files from multiple access tiers; download will fail on controlled-access files if no token is provided\n  - disk space exhaustion for large TCGA BAM files (whole-genome BAMs are 50–200 GB each)\n  - MD5 mismatch indicating a partial or corrupted download; delete the file and retry\n  - mixing GDC file UUIDs with TCGA barcode IDs (barcodes must be resolved to UUIDs via the GDC API before use)\n","# Skill: Download GDC\n\n## Use When\n\n- A user wants to download BAM, VCF, FASTQ, or other files from the NCI GDC (TCGA, TARGET, CPTAC, etc.).\n- A user has a GDC manifest file and wants to download all listed files.\n- A user wants to query the GDC API to build a manifest by project, data type, workflow, or data category.\n- A user wants to download controlled-access data using a GDC user token.\n- A user wants to verify downloaded file integrity using MD5 checksums from the GDC manifest.\n- A user wants to organize downloaded files by case, sample, or data type.\n\n## Inputs\n\n- Required:\n  - one of:\n    - path to a GDC manifest file (TSV with columns: `id`, `filename`, `md5`, `size`, `state`)\n    - GDC file UUID(s) to generate a manifest on the fly\n    - GDC project ID (e.g., `TCGA-BRCA`) and filters to query and build a manifest\n- Optional:\n  - `--token-file FILE` — GDC user token for controlled-access data (required for dbGaP-protected files)\n  - `--outdir DIR` — output directory (default: `gdc_downloads`)\n  - `--jobs N` — number of parallel download streams (default: 1; max recommended: 8)\n  - `--retries N` — retry count on network errors (default: 3)\n  - `--no-verify` — skip MD5 verification after download\n  - `--dry-run` — print manifest and download commands without executing\n  - `--data-type TYPE` — filter for manifest generation (e.g., `\"Aligned Reads\"`, `\"Masked Somatic Mutation\"`)\n  - `--workflow TYPE` — workflow filter (e.g., `\"STAR 2-Pass\"`, `\"MuTect2\"`)\n  - `--experimental-strategy` — filter (e.g., `\"RNA-Seq\"`, `\"WXS\"`, `\"WGS\"`)\n\n## Workflow\n\n1. **Obtain a manifest**:\n   - If a manifest file is provided, validate it (check columns: `id`, `filename`, `md5`, `size`, `state`).\n   - If UUIDs are provided, generate a manifest via GDC API:\n     ```bash\n     curl -o manifest.txt \\\n       \"https:\u002F\u002Fapi.gdc.cancer.gov\u002Fmanifest?ids=$(echo \"$UUIDS\" | tr ' ' ',')\"\n     ```\n   - If a project ID and filters are provided, query the GDC files endpoint and produce a manifest:\n     ```bash\n     curl -XPOST \"https:\u002F\u002Fapi.gdc.cancer.gov\u002Ffiles\" \\\n       -H \"Content-Type: application\u002Fjson\" \\\n       -d '{\"filters\":{\"op\":\"and\",\"content\":[\n             {\"op\":\"=\",\"content\":{\"field\":\"cases.project.project_id\",\"value\":\"TCGA-BRCA\"}},\n             {\"op\":\"=\",\"content\":{\"field\":\"data_type\",\"value\":\"Aligned Reads\"}},\n             {\"op\":\"=\",\"content\":{\"field\":\"access\",\"value\":\"open\"}}]},\n            \"fields\":\"file_id,file_name,md5sum,file_size,state\",\n            \"size\":\"10000\",\"format\":\"tsv\"}'\n     ```\n\n2. **Check access tier**: inspect the `access` field in the API response.\n   - `open`: no token needed.\n   - `controlled`: `--token-file` is required; warn the user if it is absent.\n\n3. **Download with gdc-client**:\n   ```bash\n   gdc-client download \\\n     -m manifest.txt \\\n     [-t token.txt] \\\n     -d \"$OUTDIR\" \\\n     --n-processes \"$JOBS\" \\\n     --retry-amount \"$RETRIES\"\n   ```\n\n4. **Verify MD5 checksums**:\n   ```bash\n   while IFS=$'\\t' read -r uuid filename md5 size state; do\n     [[ \"$uuid\" == \"id\" ]] && continue\n     actual=$(md5sum \"$OUTDIR\u002F$uuid\u002F$filename\" | awk '{print $1}')\n     if [[ \"$actual\" != \"$md5\" ]]; then\n       echo \"CHECKSUM FAIL: $filename\" >&2\n     fi\n   done \u003C manifest.txt\n   ```\n\n5. **Organize files** (optional): flatten the `\u003Cuuid>\u002F\u003Cfilename>` layout into a user-specified directory structure by data type, project, or sample.\n\n6. Write `download_report.tsv` with: `uuid`, `filename`, `expected_md5`, `actual_md5`, `size_bytes`, `status`.\n\n## Output Contract\n\n- Downloaded files under `\u003Coutdir>\u002F\u003Cuuid>\u002F\u003Cfilename>` (GDC default layout)\n- `manifest.txt` used for the download (generated or provided)\n- `download_report.tsv` with columns: `uuid`, `filename`, `expected_md5`, `actual_md5`, `size_bytes`, `status` (`OK` \u002F `CHECKSUM_FAIL` \u002F `MISSING`)\n- `failed_uuids.txt` listing UUIDs that failed all retry attempts\n- Exact `gdc-client` command issued\n\n## Limits\n\n- GDC Data Transfer Tool (`gdc-client`) must be installed; download from https:\u002F\u002Fgdc.cancer.gov\u002Faccess-data\u002Fgdc-data-transfer-tool.\n- Controlled-access data requires a GDC user token obtained from https:\u002F\u002Fportal.gdc.cancer.gov after dbGaP authorization. Tokens expire after 30 days.\n- Open-access files (e.g., gene expression counts, masked somatic mutations) do not require a token.\n- GDC manifest files are project-snapshot–specific; file UUIDs are stable but a manifest generated today may differ from one generated later as projects update.\n- Parallel downloads (`--jobs > 1`) may trigger GDC rate limiting; start with 3–4 jobs and increase cautiously.\n- Common failure cases:\n  - expired or invalid token causing 403 errors on controlled-access files\n  - manifest containing files from multiple access tiers; download will fail on controlled-access files if no token is provided\n  - disk space exhaustion for large TCGA BAM files (whole-genome BAMs are 50–200 GB each)\n  - MD5 mismatch indicating a partial or corrupted download; delete the file and retry\n  - mixing GDC file UUIDs with TCGA barcode IDs (barcodes must be resolved to UUIDs via the GDC API before use)\n",{"name":5,"description":7},"main","5118e7fda890e9aa819cb71e003cd243d3a31970","skills\u002Fdownload-gdc",1,"https:\u002F\u002Fgithub.com\u002FScientific-Tooling\u002Fstructured-intelligence","https:\u002F\u002Fgithub.com\u002FScientific-Tooling","2026-11-03 00:01:40",{"source":8,"skillName":5,"commands":43,"prompt":53,"zipAvailable":54},[44,47,50],{"tool":45,"command":46},"npx","npx skills add Scientific-Tooling\u002Fstructured-intelligence --skill download-gdc",{"tool":48,"command":49},"bunx","bunx skills add Scientific-Tooling\u002Fstructured-intelligence --skill download-gdc",{"tool":51,"command":52},"pnpm","pnpm dlx skills add Scientific-Tooling\u002Fstructured-intelligence --skill download-gdc","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FScientific-Tooling\u002Fstructured-intelligence\u002Fblob\u002Fmain\u002Fskills\u002Fdownload-gdc\u002FSKILL.md",true,[56,62,66,70,74],{"path":57,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":61},"agents\u002Fclaude.yaml","REFERENCE","参考文档",354,"https:\u002F\u002Fgithub.com\u002FScientific-Tooling\u002Fstructured-intelligence\u002Fblob\u002Fmain\u002Fskills\u002Fdownload-gdc\u002Fagents\u002Fclaude.yaml",{"path":63,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":64,"sourceHtmlUrl":65},"agents\u002Fopenai.yaml",355,"https:\u002F\u002Fgithub.com\u002FScientific-Tooling\u002Fstructured-intelligence\u002Fblob\u002Fmain\u002Fskills\u002Fdownload-gdc\u002Fagents\u002Fopenai.yaml",{"path":67,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":68,"sourceHtmlUrl":69},"config.yaml",329,"https:\u002F\u002Fgithub.com\u002FScientific-Tooling\u002Fstructured-intelligence\u002Fblob\u002Fmain\u002Fskills\u002Fdownload-gdc\u002Fconfig.yaml",{"path":71,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":72,"sourceHtmlUrl":73},"references\u002Fgdc-client.md",3902,"https:\u002F\u002Fgithub.com\u002FScientific-Tooling\u002Fstructured-intelligence\u002Fblob\u002Fmain\u002Fskills\u002Fdownload-gdc\u002Freferences\u002Fgdc-client.md",{"path":75,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":78,"sourceHtmlUrl":79},"scripts\u002Frun.sh","SCRIPT","脚本",4398,"https:\u002F\u002Fgithub.com\u002FScientific-Tooling\u002Fstructured-intelligence\u002Fblob\u002Fmain\u002Fskills\u002Fdownload-gdc\u002Fscripts\u002Frun.sh",[81,104,117,129,143,155],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":30},"01M6CZ6S2C54G03K71G77H22KE","structured-intelligence-skill-creator","Create or update repository skills that conform to local templates, provider metadata requirements, registry rules, and validation workflows.","https:\u002F\u002Fgithub.com\u002FScientific-Tooling\u002Fstructured-intelligence\u002Fblob\u002Fmain\u002Fskills\u002Fstructured-intelligence-skill-creator\u002FSKILL.md",[],[88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103],"structured intelligence skill creator","skill creator","intelligence","structured","create","requirements","workflows","provider","update","registry","local","validation","metadata","repository","templates","Rules",{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":30},"01M6CZ6M3JFN400406T1NPWNER","stat-survival-analysis","Estimate and compare survival functions using Kaplan-Meier curves and log-rank test, with optional Cox proportional hazards regression.","https:\u002F\u002Fgithub.com\u002FScientific-Tooling\u002Fstructured-intelligence\u002Fblob\u002Fmain\u002Fskills\u002Fstat-survival-analysis\u002FSKILL.md",[],[111,112,113,114,115,116],"analysis","stat survival analysis","regression","log","functions","test",{"skillNo":118,"name":119,"nameZh":6,"description":120,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":30},"01M6CZ6G5JPDZASM4DRD9QCTEE","stat-pca","Perform PCA on a numeric data matrix to reduce dimensionality, visualize sample structure, and identify top contributing features.","https:\u002F\u002Fgithub.com\u002FScientific-Tooling\u002Fstructured-intelligence\u002Fblob\u002Fmain\u002Fskills\u002Fstat-pca\u002FSKILL.md",[],[124,125,126,127,22,128],"stat pca","sample","visualize","contributing","structure",{"skillNo":130,"name":131,"nameZh":6,"description":132,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":133,"categories":134,"keywords":135,"publishedAt":30},"01M6CZ6D9A3N6849BT9VYFSBK5","stat-pairwise-correlation","Compute pairwise correlations and significance tests across all numeric variables, and produce a correlation heatmap.","https:\u002F\u002Fgithub.com\u002FScientific-Tooling\u002Fstructured-intelligence\u002Fblob\u002Fmain\u002Fskills\u002Fstat-pairwise-correlation\u002FSKILL.md",[],[136,137,138,139,140,141,142],"stat pairwise correlation","correlation","produce","heatmap","compute","across","tests",{"skillNo":144,"name":145,"nameZh":6,"description":146,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":147,"categories":148,"keywords":149,"publishedAt":30},"01M6CZ69DMF1PDKW83RWARQX6D","stat-nonlinear-embedding","Embed high-dimensional data into 2D using t-SNE or UMAP for exploratory visualization of sample or cell relationships.","https:\u002F\u002Fgithub.com\u002FScientific-Tooling\u002Fstructured-intelligence\u002Fblob\u002Fmain\u002Fskills\u002Fstat-nonlinear-embedding\u002FSKILL.md",[],[150,151,22,152,125,153,154],"stat nonlinear embedding","visualization","relationships","cell","exploratory visualization",{"skillNo":156,"name":157,"nameZh":6,"description":158,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":159,"categories":160,"keywords":161,"publishedAt":30},"01M6CZ65YZGJV40F2FZNH04PBS","stat-logistic-regression","Fit a logistic regression model for binary outcomes, report odds ratios and model performance (AUC-ROC, confusion matrix).","https:\u002F\u002Fgithub.com\u002FScientific-Tooling\u002Fstructured-intelligence\u002Fblob\u002Fmain\u002Fskills\u002Fstat-logistic-regression\u002FSKILL.md",[],[113,162,163,164,165,166],"stat logistic regression","report","model","outcomes","performance"]