服务器端使用TCGAbiolinks调用GDCquery时报错求助
解决TCGAbiolinks的"GDC server down"错误
问题重现
用户在服务器上运行以下R代码:
qry.rna <- GDCquery(project = "TCGA-BRCA", data.category= "Transcriptome Profiling", data.type = "Gene Expression Quantification", workflow.type = "STAR - Counts")
得到错误:
Error in value[[3L]](cond) : GDC server down, try to use this package later
解决方案
- 确认GDC服务器状态:错误提示直接指向服务器故障,先确认GDC服务是否正常,若为临时故障,等待1-2小时后重试即可。
- 排查服务器网络:服务器可能无法访问GDC API,执行
curl https://api.gdc.cancer.gov/status测试连通性,若失败需检查防火墙、代理设置或联系管理员开通网络权限。 - 更新TCGAbiolinks包:旧版本可能存在API兼容问题,执行以下代码更新:
if (!require("BiocManager")) install.packages("BiocManager") BiocManager::install("TCGAbiolinks", update = TRUE) - 调整查询参数:添加
access = "open"参数确保请求开放数据,同时核对参数拼写:qry.rna <- GDCquery(project = "TCGA-BRCA", data.category= "Transcriptome Profiling", data.type = "Gene Expression Quantification", workflow.type = "STAR - Counts", access = "open")
内容的提问来源于stack exchange,提问作者Rick...
相关产品推荐
相关产品推荐

