前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >下载sra数据库文件不仅仅是prefetch那么简单了

下载sra数据库文件不仅仅是prefetch那么简单了

作者头像
生信技能树
发布2019-10-09 15:52:37
3.2K0
发布2019-10-09 15:52:37
举报
文章被收录于专栏:生信技能树

最近下载一个文章的数据,发现3个数据,就有3种结果:

代码语言:javascript
复制
$cat logs/down.log.4
$cat need.sra.list  |while read id;do (  ~/biosoft/sratoolkit/sratoolkit.2.9.2-centos_linux64/bin/prefetch $id -O ./ );done

2019-10-03T02:25:45 prefetch.2.9.2: 1) Downloading 'SRR5908780'...
2019-10-03T02:25:45 prefetch.2.9.2:  Downloading via https...
2019-10-03T02:32:55 prefetch.2.9.2 sys: timeout exhausted while reading file within network system module - mbedtls_ssl_read returned -76 ( NET - Reading information from the socket failed )
2019-10-03T02:32:55 prefetch.2.9.2 int: timeout exhausted while reading file within network system module - Cannot KStreamRead: https://sra-download.ncbi.nlm.nih.gov/traces/sra51/SRR/005770/SRR5908780
2019-10-03T02:32:55 prefetch.2.9.2: 1) failed to download SRR5908780

2019-10-03T02:32:58 prefetch.2.9.2: 1) Downloading 'SRR5908829'...
2019-10-03T02:32:58 prefetch.2.9.2:  Downloading via https...
2019-10-03T02:51:48 prefetch.2.9.2: 1) 'SRR5908829' was downloaded successfully
2019-10-03T02:53:08 prefetch.2.9.2: 'SRR5908829' has 0 unresolved dependencies
2019-10-03T02:53:11 prefetch.2.9.2: 'SRR5908829' has remote vdbcache
2019-10-03T02:53:11 prefetch.2.9.2:  Downloading vdbcache...
2019-10-03T02:53:11 prefetch.2.9.2:  Downloading via https...
2019-10-03T02:55:07 prefetch.2.9.2:  vdbcache was downloaded successfully

2019-10-03T02:55:10 prefetch.2.9.2: 1) Downloading 'SRR5908833'...
2019-10-03T02:55:10 prefetch.2.9.2:  Downloading via https...
2019-10-03T03:14:08 prefetch.2.9.2: 1) 'SRR5908833' was downloaded successfully
2019-10-03T03:15:31 prefetch.2.9.2: 'SRR5908833' has 0 unresolved dependencies
2019-10-03T03:15:40 prefetch.2.9.2: 'SRR5908833' has no remote vdbcache

其中SRR5908780是确认是报错:

代码语言:javascript
复制
2019-10-03T05:17:48 prefetch.2.9.2: 1) Downloading 'SRR5908780'...
2019-10-03T05:17:48 prefetch.2.9.2:  Downloading via https...
2019-10-03T05:23:25 prefetch.2.9.2 sys: timeout exhausted while reading file within network system module - mbedtls_ssl_read returned -76 ( NET - Reading information from the socket failed )
2019-10-03T05:23:25 prefetch.2.9.2 int: timeout exhausted while reading file within network system module - Cannot KStreamRead: https://sra-download.ncbi.nlm.nih.gov/traces/sra51/SRR/005770/SRR5908780
2019-10-03T05:23:25 prefetch.2.9.2: 1) failed to download SRR5908780

但实际上,我把这个网址输入到浏览器,是可以下载的:

代码语言:javascript
复制
https://sra-download.ncbi.nlm.nih.gov/traces/sra51/SRR/005770/SRR5908780

速度也还行:

不能理解为什么使用命令行就下载失败!

但是,诡异的是,第二天同样的命令又成功了

代码语言:javascript
复制
$~/biosoft/sratoolkit/sratoolkit.2.9.2-centos_linux64/bin/prefetch SRR5908780 -O ./

2019-10-04T01:22:05 prefetch.2.9.2: 1) Downloading 'SRR5908780'...
2019-10-04T01:22:05 prefetch.2.9.2:  Downloading via https...
2019-10-04T01:41:19 prefetch.2.9.2: 1) 'SRR5908780' was downloaded successfully
2019-10-04T01:42:37 prefetch.2.9.2: 'SRR5908780' has 0 unresolved dependencies
2019-10-04T01:42:40 prefetch.2.9.2: 'SRR5908780' has remote vdbcache
2019-10-04T01:42:40 prefetch.2.9.2:  Downloading vdbcache...
2019-10-04T01:42:40 prefetch.2.9.2:  Downloading via https...
2019-10-04T01:44:38 prefetch.2.9.2:  vdbcache was downloaded successfully

得到的文件如下:

代码语言:javascript
复制
3.8G Oct  4 09:41 SRR5908780.sra
3.7G Oct  3 10:51 SRR5908829.sra
3.5G Oct  3 11:14 SRR5908833.sra

本文参与 腾讯云自媒体同步曝光计划,分享自微信公众号。
原始发表:2019-10-04,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 生信技能树 微信公众号,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档