找回密码
 注册
查看: 316|回复: 0

R语言 seqinr包 acnucopen()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 01:13:36 | 显示全部楼层 |阅读模式
acnucopen(seqinr)
acnucopen()所属R语言包:seqinr

                                        open and close a remote access to an ACNUC database
                                         打开和关闭远程访问到ACNUC数据库

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

These are low level functions to start and stop a remote access to an ACNUC database.
这是低层次的功能,启动和停止远程访问到一个ACNUC的数据库。


用法----------Usage----------


acnucopen(db, socket, challenge = NA)
acnucclose(socket)
clientid(id = paste("seqinr_", packageDescription("seqinr")$Version, sep = ""), socket, verbose = FALSE)
quitacnuc(socket)



参数----------Arguments----------

参数:db
the remote ACNUC database name
的远程ACNUC数据库名称


参数:socket
an object of class sockconn connecting to an ACNUC server
类的一个对象sockconn连接到一个ACNUC的服务器


参数:challenge
unimplemented yet
未实现,但


参数:id
client ID definition defaulting to seqinr + package version number
客户端ID的定义,默认为seqinr +软件包的版本号


参数:verbose
logical, if TRUE mode verbose is on
逻辑,如果真实模式的详细


Details

详细信息----------Details----------

these low level functions are usually not used directly by the user.  Use choosebank to open a remote ACNUC database and closebank to close it.
这些低级别的功能通常不是由用户直接使用。使用choosebank打开一个远程ACNUC的数据库和closebank关闭它。


值----------Value----------

For openacnuc a list with the following components: type : the type of database that was opened. totseqs, totspec, totkey : total number of seqs, species, keywords in opened database. ACC\_LENGTH, L\_MNEMO, WIDTH\_KW, WIDTH\_SP, WIDTH\_SMJ, WIDTH\_AUT,  WIDTH\_BIB, lrtxt, SUBINLNG: max lengths of record keys in database.
对于openacnuc的列表以下部分组成:类型:已打开的数据库类型。 totseqs,totspec,totkey总数的seqs,品种,关键字,在打开的数据库。 ACC \ _length,L \ _MNEMO,宽度\ _KW,宽\ _SP,宽\ _SMJ,宽度\ _AUT,宽度\ _BIB,lrtxt,SUBINLNG:最大长度在数据库中的记录键。


(作者)----------Author(s)----------


J.R. Lobry



参考文献----------References----------



参见----------See Also----------

choosebank, closebank
choosebank,closebank


实例----------Examples----------


## Not run: # Need internet connection[#不运行:#需要互联网连接]
  mysocket <- socketConnection( host = "pbil.univ-lyon1.fr",
    port = 5558, server = FALSE, blocking = TRUE)
  readLines(mysocket, n = 1) # OK acnuc socket started[OK acnuc插座开始]
  acnucopen("emblTP", socket = mysocket) -> res
  expected <- c("EMBL", "14138095", "236401", "1186228", "8",
    "16", "40", "40", "20", "20", "40", "60", "63")
  stopifnot(all(unlist(res) == expected))
  tryalreadyopen <- try(acnucopen("emblTP", socket = mysocket))
  stopifnot(inherits(tryalreadyopen, "try-error"))
  # Need a fresh socket because acnucopen() close it if error:[需要一个新的套接字,因为acnucopen()关闭,如果错误:]
  mysocket <- socketConnection( host = "pbil.univ-lyon1.fr",
    port = 5558, server = FALSE, blocking = TRUE)
  tryoff <-  try(acnucopen("off", socket = mysocket))
  stopifnot(inherits(tryoff, "try-error"))

  mysocket <- socketConnection( host = "pbil.univ-lyon1.fr",
    port = 5558, server = FALSE, blocking = TRUE)
  tryinexistent <-  try(acnucopen("tagadatagadatsointsoin", socket = mysocket))
  stopifnot(inherits(tryinexistent, "try-error"))

  mysocket <- socketConnection( host = "pbil.univ-lyon1.fr",
    port = 5558, server = FALSE, blocking = TRUE)
  trycloseunopened <- try(acnucclose(mysocket))
  stopifnot(inherits(trycloseunopened, "try-error"))


## End(Not run)[#(不执行)]

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-5-20 03:39 , Processed in 0.029577 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表