choosebank(seqinr)
choosebank()所属R语言包:seqinr
To select a database structured under ACNUC and located on the web
要选择一个数据库结构下ACNUC和在网络上
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This function allows to select one of the databases structured under ACNUC and located on the web. Called without arguments, choosebank(), will return the list of available databases. Then, you can use query to make your query and get a list of sequence names. Remote access to ACNUC databases works by opening a socket connection on a port (for example on port number 5558 at pbil.univ-lyon1.fr) and by communicating on this socket following the protocol described in the section references.
此功能允许选择结构下ACNUC和在网络上的数据库之一。不带参数调用,choosebank(),将返回可用数据库的列表。然后,你可以使用query使您的查询和获取序列名称的列表。打开一个socket连接端口(例如,端口号为5558在pbil.univ-lyon1.fr)和通过此套接字通信节“references描述的协议,ACNUC数据库的远程访问。
用法----------Usage----------
choosebank(bank = NA, host = "pbil.univ-lyon1.fr", port = 5558, server = FALSE,
blocking = TRUE, open = "a+", encoding = "", verbose = FALSE,
timeout = 5, infobank = FALSE, tagbank = NA)
参数----------Arguments----------
参数:bank
string. The name of the bank. If NA, choosebank will return the names of all database known by the server.
字符串。银行名称。如果不适用,choosebank将返回服务器已知的所有数据库的名称。
参数:host
string. Host name for port (see socketConnection)
字符串。港口的主机名(见socketConnection)
参数:port
integer. The TCP port number (see socketConnection)
整数。 TCP端口号(见socketConnection)
参数:server
logical. Should the socket be a client or a server? (see socketConnection)
逻辑。如果插座是一个客户端或服务器? (见socketConnection)
参数:blocking
logical. (see socketConnection)
逻辑。 (见socketConnection)
参数:open
string. A description of how to open the connection (see socketConnection)
字符串。描述如何打开连接(见socketConnection)
参数:encoding
string. The name of the encoding to be used. (see socketConnection)
字符串。要使用的编码方式的名称。 (见socketConnection)
参数:verbose
logical. If TRUE, verbose mode is on
逻辑。如果是TRUE,verbose模式,
参数:timeout
integer. The timeout in seconds for socketConnection. Default 5 seconds.
整数。在几秒钟的超时为socketConnection。默认值5秒。
参数:infobank
logical. If infobank is TRUE and bank is NA, a data.frame with all database informations will be returned
逻辑。如果infobank是TRUE和bank是NA,数据框的所有数据库的信息将被退回
参数:tagbank
string. If bank is NA and tagbank is documented, the names of special purposes databases are returned. Current allowed values are TP for frozen databases (TP is an acronym for "travaux pratiques" which means practicals in french, these databases are useful mainly for teaching so as to have stable results), TEST for test databases, and DEV for databases under development (unstable).
字符串。如果bank是NA和tagbank记录,特殊用途的数据库的名称都回来了。电流的允许值是TP冷冻库(TP是一个缩写为“准备pratiques”,这意味着在法国实习,这些数据库是有用的,主要用于教学,有稳定的结果),TEST测试数据库,并且DEV下的数据库发展(不稳定的)。
Details
详细信息----------Details----------
When called without arguments, choosebank() returns a list of all the databases names known by the server, as a vector of string. When called with choosebank(infobank = TRUE), a data.frame with more information is returned.
不带参数调用时,choosebank()返回一个列表,服务器已知的所有数据库的名称,作为向量的字符串。当调用choosebank(infobank = TRUE)返回更多的信息,数据框。
值----------Value----------
When called with a regular bank name, an (invisible) list with 6 components:
当调用一张普通的银行名称,(不可见)与6个组成部分:
参数:socket
an object of class socket
一个对象的类socket
参数:bankname
the name of the bank
银行名称
参数:banktype
the type of the bank (GENBANK, EMBL, SWISSPROT, NBRF)
类型的银行(GENBANK,EMBL,SWISSPROT,NBRF)
参数:totseqs
the total number of sequences present in the opened database
打开的数据库中存在的序列的总数
参数:totspecs
the total number of species present in the opened database
总种数呈现在打开的数据库
参数:totkeys
the total number of keywords present in the opened database
总数的关键字中存在打开的数据库
When called with bank = NA:
当被调用时,银行= NA:
参数:
A vector of all available bank names.
一个向量的所有可动用的银行名称。
When called with bank = NA and infobank = TRUE, a data.frame with three columns:
当被调用时与银行= NA和情报库= TRUE,数据框有三列:
参数:bank
The name of the bank.
银行名称。
参数:status
The bank status (on/of).
该行的状态(开/关)。
参数:info
Short description of bank with last release date.
银行与去年发布日期的简短说明。
注意----------Note----------
The invisible list returned when a database is opened is stored in the variable banknameSocket in the global environment.
无形返回列表打开数据库时,存储在变量banknameSocket在全球环境中。
(作者)----------Author(s)----------
D. Charif, J.R. Lobry
参考文献----------References----------
To get the release date and content of all the databases located at the pbil, please look at the following url: http://pbil.univ-lyon1.fr/search/releases.php<br> Gouy, M., Milleret, F., Mugnier, C., Jacobzone, M., Gautier,C. (1984) ACNUC: a nucleic acid sequence data base and analysis system. Nucl. Acids Res., 12:121-127.<br> Gouy, M., Gautier, C., Attimonelli, M., Lanave, C., Di Paola, G. (1985) ACNUC - a portable retrieval system for nucleic acid sequence databases: logical and physical designs and usage. Comput. Appl. Biosci., 3:167-172.<br> Gouy, M., Gautier, C., Milleret, F. (1985) System analysis and nucleic acid sequence banks. Biochimie, 67:433-436.<br>
参见----------See Also----------
where.is.this.acc if you have a sequence accession number but you don't know which database to open, query to make a query when a database
where.is.this.acc如果你有一个序列的登录号,但你不知道打开哪一个数据库,query进行查询时,数据库
实例----------Examples----------
## Not run: # Need internet connection[#不运行:#需要互联网连接]
# Show available databases: [显示可用的数据库:]
choosebank()
# Show frozen databases:[显示冷冻数据库:]
choosebank(tag = "TP")
# Select a database:[选择一个数据库:]
choosebank("emblTP", tag = "TP")
# Do something with the database:[做一些与数据库:]
myseq <- gfrag("LMFLCHR36", start = 1, length = 30)
stopifnot(myseq == "cgcgtgctggcggcaatgaagcgttcgatg")
# Close the database:[关闭数据库:]
closebank()
## End(Not run)[#(不执行)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|