使用getSRAdbFile()会产生sqlite错误

时间:2016-04-27 23:39:02

标签: r bioconductor rsqlite

我正在使用Bioconductor的SRAdb软件包。不幸的是,当尝试下载SRAdb时,我在sqliteSendQuery中遇到错误(见下文)。

有人建议安装最新的sqlite3版本。但问题仍然存在。

<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
    <group android:checkableBehavior="single">
        <item
            android:id="@+id/item1"
            android:checked="false"
            android:icon="@drawable/ic_call1"
            android:title="item1"/>

        <item
            android:id="@+id/item2"
            android:checked="false"
            android:icon="@drawable/ic_call2"
            android:title="item2"/>

        <item
            android:id="@+id/item3"
            android:checked="false"
            android:icon="@drawable/ic_call3"
            android:title="item3"/>

    </group>
</menu>

以下是会话信息:

sqlFile <- getSRAdbFile()

--2016-04-27 16:08:52--  http://dl.dropbox.com/u/51653511/SRAmetadb.sqlite.gz
Resolving dl.dropbox.com (dl.dropbox.com)... 108.160.172.6
Connecting to dl.dropbox.com (dl.dropbox.com)|108.160.172.6|:80... connected.
HTTP request sent, awaiting response... 302 FOUND
Location: http://dl.dropboxusercontent.com/u/51653511/SRAmetadb.sqlite.gz [following]
--2016-04-27 16:08:52--  http://dl.dropboxusercontent.com/u/51653511/SRAmetadb.sqlite.gz
Resolving dl.dropboxusercontent.com (dl.dropboxusercontent.com)... 199.47.217.69
Connecting to dl.dropboxusercontent.com (dl.dropboxusercontent.com)|199.47.217.69|:80... connected.
HTTP request sent, awaiting response... 302 Moved
Location: http://10.137.251.101:15871/cgi-bin/blockpage.cgi?ws-session=4060338223 [following]
--2016-04-27 16:08:52--  http://10.137.251.101:15871/cgi-bin/blockpage.cgi?ws-session=4060338223
Connecting to 10.137.251.101:15871... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1513 (1.5K) [text/html]
Saving to: ‘SRAmetadb.sqlite.gz’

     0K .                                                     100%  208M=0s

2016-04-27 16:08:52 (208 MB/s) - ‘SRAmetadb.sqlite.gz’ saved [1513/1513]

Unzipping...

Error in sqliteSendQuery(con, statement, bind.data) : 
  error in statement: file is encrypted or is not a database
Error in sqliteSendQuery(con, statement, bind.data) : 
  error in statement: file is encrypted or is not a database

1 个答案:

答案 0 :(得分:3)

我认为getSRAdbFile()出了问题。看起来文件未正确下载:

0K .                                                     100%  208M=0s

2016-04-27 16:08:52 (208 MB/s) - ‘SRAmetadb.sqlite.gz’ saved [1513/1513]

我通过使用相同的网址(http://dl.dropbox.com/u/51653511/SRAmetadb.sqlite.gz)下载文件,使用wget,使用gzip解压缩,然后从{{{}}开始正常连接来完成工作1}}。

要将所有内容保留在R内,您可以R使用system2download.file。{/ p>