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

支持断点续传 #13

Closed
ShixiangWang opened this issue Sep 26, 2019 · 6 comments
Closed

支持断点续传 #13

ShixiangWang opened this issue Sep 26, 2019 · 6 comments
Assignees
Labels
enhancement New feature or request plan

Comments

@ShixiangWang
Copy link
Member

#12

通过 wget curl 系统命令实现

@ShixiangWang ShixiangWang added the enhancement New feature or request label Sep 26, 2019
@ShixiangWang ShixiangWang self-assigned this Sep 26, 2019
@ShixiangWang
Copy link
Member Author

经过 curl 和 wget 测试,Xena 不支持断点续传 resume from breakpoint

@ShixiangWang
Copy link
Member Author

ucsc说会加入该特性 后面解决

@ShixiangWang
Copy link
Member Author

Reply from UCSC Xena team

Hi Shixiang -- We have deployed a hub that supports byte range requests, here:
http://ec2-34-230-81-173.compute-1.amazonaws.com:7222

It's a mirror of the toil hub. Note that it doesn't support https, so if you try to add it to a Xena session, you will get a mixed content error.

Can you let us know if this works for your use case? If so, we can update the production hubs to support byte ranges.

@ShixiangWang
Copy link
Member Author

It works

image

@ShixiangWang
Copy link
Member Author

UCSC Xena 已经支持断点续传,后面该包实现它

All of the public hubs should be updated now, to allow byte ranges.

@ShixiangWang
Copy link
Member Author

library(UCSCXenaTools)
xe = XenaGenerate(subset = XenaDatasets == "TcgaTargetGtex_expected_count")
xe
xq = XenaQuery(xe)
# You cannot resume from breakpoint in default mode
XenaDownload(xq, destdir = "~/test/", force = TRUE)
# You can do it with 'curl' command
XenaDownload(xq, destdir = "~/test/", method = "curl", extra = "-C -", force = TRUE)
# You can do it with 'wget' command
XenaDownload(xq, destdir = "~/test/", method = "wget", extra = "-c", force = TRUE)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request plan
Projects
None yet
Development

No branches or pull requests

1 participant