File: prepgatannots.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 (73 lines) | stat: -rw-r--r-- 2,621 bytes parent folder | download | duplicates (6)
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
\name{prepgetannots}
\alias{prepgetannots}
\alias{pga}
\title{Select annotation lines in an ACNUC database}
\description{
This function is called before using \code{\link{getAnnot}} or
\code{\link{modifylist}} with a \code{scan} type operation to
select the annotation lines to be returned or scanned.
}

\usage{
prepgetannots(what = "all", setfor = c("scan", "getannots"),
                       socket = autosocket(), verbose = FALSE)
pga(what = "all", setfor = c("scan", "getannots"),
                       socket = autosocket(), verbose = FALSE)
}

\arguments{
  \item{what}{the default "all" means that all annotation lines are selected.
    This can be more specific, see details.}
  \item{setfor}{this is used when \code{what} has its default "all" value.
    The behaviour is different for \code{\link{getAnnot}} and
    \code{\link{modifylist}} with a \code{scan} type operation:
    annotations but not sequences are scanned, but sequences can
    be returned by \code{\link{getAnnot}}. The default value is "scan".}
  \item{socket}{an object of class \code{sockconn} connecting to an ACNUC server}
  \item{verbose}{logical, if TRUE mode verbose is on}
}

\details{
The names of annotation lines in the opened ACNUC database is
returned by \code{\link{countfreelists}}, they are forced to upper
case letters by \code{prepgetannots} when supplied with the
\code{what} argument.

For the EMBL/SWISSPROT format, keys are: ALL, AC, DT, KW, OS, OC, OG, OH, 
RN, RC, RP, RX, RA, RG, RT, RL, DR, AH, AS, CC, FH, FT, SQ, SEQ.

For GenBank: ALL, ACCESSION, VERSION, KEYWORDS, SOURCE, ORGANISM, 
REFERENCE, AUTHORS, CONSRTM, TITLE, JOURNAL, PUBMED, REMARK, COMMENT, 
FEATURES, ORIGIN, SEQUENCE.

For FT (embl, swissprot) and FEATURES (GenBank), one or more specific 
feature keys can be specified using lines with only uppercase and such as

FEATURES|CDS
FT|TRNA

Keys ALL and SEQ/SEQUENCE stand for all annotation and sequence lines, respectively.
For the scan operation, key ALL stand for the DE/DEFINITION lines, 
and SEQ/SEQUENCE cannot be used (annotations but not sequence are scanned).}

\value{
The function returns invisibly the annotation lines names.
}
\references{ 
\code{citation("seqinr")}
}
\author{J.R. Lobry}
\seealso{
  \code{\link{getAnnot}}, \code{\link{modifylist}}, \code{\link{countfreelists}}
}

\examples{
 \dontrun{# Need internet connection
  choosebank("genbank")
  mylist <- query("mylist","n=AQF16SRRN")
  pga() # We want to scan all annotations, including FEATURES
  mylist <- modifylist("mylist", operation = "strain", type = "scan")
  mylist$nelem # should be 1
 }
}
\keyword{utilities}