Change the download method for KEGG data #290
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
由于
downloader::download
在下载KEGG信息时常常下载不完全,而又不会给出下载的文件是否完整的提示信息,这导致了用户使用enrichKEGG
等与KEGG相关的富集分析函数时出现运行多次但每次结果不一致的情况。我改用download.file(url, destfile = f, quiet = FALSE, method="libcurl")
来下载,经过测试,可以下载到完整数据。另外,
enrichGO
等函数的参数pvalueCutoff
实际上控制的是矫正后的P值,因此我在函数的文档中加了个“adjusted”。