isenum: Get the ACNUC number of a sequence from its name or accession number
Description
Gives the ACNUC number of a sequence in the number
element of the returned list.
More informations are returned for subsequences corresponding to coding sequences.Usage
isenum(what, idby = c("name", "access"), socket = autosocket())
isn(what, ...)
getNumber.socket(socket, name)
getAttributsocket(socket, name)
Arguments
what
a sequence name or a sequence accession number
idby
is the sequence identified by name or by accession number? Default to name
socket
an object of class sockconn
connecting to a remote ACNUC
database (default is a socket to the last opened database).
...
arguments passed to isenum
.
Value
- A list whith the following 6 components:
- numbernumeric. The ACNUC number of the sequence.
- lengthnumeric. The length of the sequence.
- framenumeric. The reading frame (0, 1, or 2) of the sequence for CDS.
- gencodenumeric. ACNUC's genetic code (0 means universal) of the sequence for CDS.
- ncbigcnumeric. NCBI's genetic code (0 means universal) of the sequence for CDS.
- otheraccessmatcheslogical. If TRUE it means that several sequences are attached
to the given accession nunmber, and that only the ACNUC number of the first attached
sequence is returned in the
number
component of the list. isn(what, ...)
is a shortcut for isenum(what, ...)$number
.
As from seqinR 1.1-3 getNumber.socket
and
getAttributsocket
are deprecated (a warning is issued).
References
http://pbil.univ-lyon1.fr/databases/acnuc.htmlcitation("seqinr")
Examples
Run this code### Need internet connection
choosebank("emblTP")
isenum("LMFLCHR36")
isn("LMFLCHR36")
stopifnot(isn("LMFLCHR36") == 13682678)
# Example with CDS:
isenum("AB004237")
Run the code above in your browser using DataLab