Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DownloadTCGA下载报错 #2

Closed
ShixiangWang opened this issue Apr 23, 2019 · 1 comment
Closed

DownloadTCGA下载报错 #2

ShixiangWang opened this issue Apr 23, 2019 · 1 comment
Assignees

Comments

@ShixiangWang
Copy link
Member

downloadTCGA(project = "OV", data_type = "Phenotype", file_type = "Clinical Information", destdir = tempdir())
This will check url status, please be patient.
错误: Evaluation error: An unknown option was passed in to libcurl.

诗翔师兄你好,我在用ucscxenatools 出现上面的问题,下载不了数据,还有一个小问题是,GDC TCGA 和TCGA的数据有什么区别啊,为什么Xena要重复放这批数据? 麻烦师兄了!

---计算所-志强

@ShixiangWang
Copy link
Member Author

我重复不了该错误。

> downloadTCGA(project = "OV", data_type = "Phenotype", file_type = "Clinical Information", destdir = tempdir())
This will check url status, please be patient.
All downloaded files will under directory /var/folders/mx/rfkl27z90c96wbmn3_kjk8c80000gn/T//RtmpblndLG.
The 'trans_slash' option is FALSE, keep same directory structure as Xena.
Creating directories for datasets...
Downloading TCGA.OV.sampleMap/OV_clinicalMatrix.gz
试开URL’https://tcga.xenahubs.net/download/TCGA.OV.sampleMap/OV_clinicalMatrix.gz'
Content type 'application/gzip' length 113764 bytes (111 KB)
==================================================
downloaded 111 KB

能否使用以下命令安装最新版本的UCSCXenaTools然后再尝试下?

remotes::install_github("ShixiangWang/UCSCXenaTools")

看你的报错显示是使用了libcurl导致的报错,你可以使用method参数指定下载的方法:

downloadTCGA(project = "OV", data_type = "Phenotype", file_type = "Clinical Information", destdir = tempdir(), method = "curl")

具体可以运行?download.file()查看method一栏的说明,有多种下载方法可以指定。

第二个问题:GDC是美国为了整合癌症数据资源弄得一个数据端口,它不仅仅只包含TCGA。GDC TCGA使用的是hg38版本的参考基因组,而TCGA是hg19版本的基因组,所以它们的差别是参考基因组以及数据版本的不同,根据自己的需要选择使用。你现在使用的是https://shixiangwang.github.io/UCSCXenaTools/articles/USCSXenaTools.html#download-tcga-data-with-readable-options部分提供的函数,只支持hg19版本的数据下载。

另外推荐你使用标准的下载流程下载数据

XeneGenerate()
XenaQuery()
XenaDownload()

等函数。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant