| readfirstrec {seqinr} | R Documentation |
Low level function to get the record count of the specified ACNUC
index file
Description
Called without arguments, the list of available values for argument type is
returned.
Usage
readfirstrec(socket = autosocket(), type)
Arguments
socket |
an object of class sockconn connecting to a remote ACNUC
database (default is a socket to the last opened database). |
type |
the ACNUC index file |
Details
Available index files are:
AUTAUTHOR one record for each author name (last name only, no initials)
BIBBIBLIO one record for each reference
ACCACCESS one record for each accession number
SMJSMJYT one record for each status, molecule, journal, year, type,
organelle, division, and db structure information
SUBSUBSEQ one record for each parent or sub-sequence
LOCLOCUS one record for each parent sequence
KEYKEYWORDS one record for each keyword
SPECSPECIES one record for each taxon
SHRTSHORTL mostly, one record for each element of a short list
LNGLONGL one record for each group of SUBINLNG elements of a long list
EXTEXTRACT (for nucleotide databases only) one record for each exon of each subsequence
TXTTEXT one lrtxt-character record for each label of a species, keyword, or SMJYT
Value
The record count of ACNUC index file, or NA if missing (typically when
asking for type = EXT on a protein database).
Author(s)
J.R. Lobry
References
See ACNUC physical structure at
http://pbil.univ-lyon1.fr/databases/acnuc/structure.html.
citation("seqinr")
See Also
choosebank
Examples
## Not run:
# Need internet connection
choosebank("genbank")
allowedtype <- readfirstrec()
sapply(allowedtype, function(x) readfirstrec(type = x))
## End(Not run)
[Package
seqinr version 1.1-6
Index]