Closed Pigeongeon closed 5 months ago
甲基化数据需要在线下载数据,你的网络不行,这个对网络要求很高,不是简单的翻墙就行了,你可以了解下sesame
和sesameData
这两个包。
我刚才把dbplyr降级到2.0.0后成功了,因为数据是已经下载好了,主要是整理合并一直报错:> packageVersion("dbplyr") [1] ‘2.0.0’
谢谢博主的easyTCGA包,非常好用简单!
wenpeizhen1996 | |
---|---|
@.
|
---- Replied Message ----
| From | @.> |
| Date | 6/3/2024 13:12 |
| To | @.> |
| Cc | @.> ,
@.***> |
| Subject | Re: [ayueme/easyTCGA] Error in collect()
: (Issue #5) |
甲基化数据需要在线下载数据,你的网络不行,这个对网络要求很高,不是简单的翻墙就行了,你可以了解下sesame和sesameData这两个包。
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
function (project) { if (!dir.exists("output_methy")) { dir.create("outputmethy") } message("=> Querying data. \n") query <- TCGAbiolinks::GDCquery(project = project, data.category = "DNA Methylation", data.type = "Methylation Beta Value", platform = "Illumina Human Methylation 450") message("=> Downloading data. \n") TCGAbiolinks::GDCdownload(query, files.per.chunk = 100) if (length(project) > 1) { project <- paste(project, collapse = "") } message("\n=> Preparing data.") TCGAbiolinks::GDCprepare(query, save = T, save.filename = paste0("output_methy/", project, "_methy_beta_SummarizedExperiment.rdata")) load(file = paste0("output_methy/", project, "_methy_beta_SummarizedExperiment.rdata")) clinicalSE <- as.data.frame(SummarizedExperiment::colData(data)) save(clinicalSE, file = paste0("output_methy/", project, "_clinicalSE.rdata")) probe_info <- as.data.frame(SummarizedExperiment::rowData(data)) save(probe_info, file = paste0("output_methy/", project, "_probe_info.rdata")) beta_expr <- SummarizedExperiment::assay(data) save(beta_expr, file = paste0("output_methy/", project, "_methy_beta_expr.rdata")) pd <- data.frame(Sample_Name = colnames(beta_expr), sample_type = ifelse(as.numeric(substr(colnames(beta_expr), 14, 15)) < 10, "tumor", "normal")) save(pd, file = paste0("output_methy/", project, "_pd.rdata")) message("\n=> Successful.") } <bytecode: 0x00000242dbd0d950>