File: getKeyword.Rd

package info (click to toggle)
r-cran-seqinr 3.4-5-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 5,876 kB
  • sloc: ansic: 1,987; makefile: 14
file content (53 lines) | stat: -rw-r--r-- 1,504 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
\name{getKeyword}
\alias{getKeyword}
\alias{getKeyword.default}
\alias{getKeyword.list}
\alias{getKeyword.SeqAcnucWeb}
\alias{getKeyword.qaw}
\alias{getKeyword.logical}

\title{Generic function to get keywords associated to sequences}
\description{
Get keywords from an ACNUC server.
}
\usage{
getKeyword(object, ...)
\method{getKeyword}{SeqAcnucWeb}(object, ..., socket = autosocket())
}
\arguments{
  \item{object}{ an object of the class \code{\link{SeqAcnucWeb}}, or
                        a list of them, or the object resulting from \code{\link{query}}}
  \item{socket}{an object of class \code{sockconn} connecting to a remote ACNUC
                        database (default is a socket to the last opened database by \code{\link{choosebank}}).}
  \item{...}{further arguments passed to or from other methods}
}
\value{
  \code{getKeyword} returns a vector of strings containing the keyword(s)
  associated to a sequence.
}
\references{
  \code{citation("seqinr")}
}
\author{D. Charif, J.R. Lobry, L. Palmeira} 
\seealso{
  \code{\link{SeqAcnucWeb}}
}
\examples{
#
# List all available methods for getKeyword generic function:
#
   methods(getKeyword)
#
# Example of keyword extraction from an ACNUC server:
#
  \dontrun{
  # Need internet connection
  choosebank("emblTP")
  fc<-query("fc", "sp=felis catus et t=cds et o=mitochondrion")
  getKeyword(fc$req[[1]])
  # Should be: 
  # [1] "DIVISION ORG" "RELEASE 62"   "CYTOCHROME B" "SOURCE"       "CDS"
  closebank()  
}
}
\keyword{ utilities }