Learn R Programming

seqinr (version 3.1-2)

alllistranks: To get the count of existing lists and all their ranks on server

Description

This is a low level function to get the total number of list and all their ranks in an opened database.

Usage

alllistranks(socket = autosocket(), verbose = FALSE)
alr(socket = autosocket(), verbose = FALSE)

Arguments

socket
an object of class sockconn connecting to a remote ACNUC database (default is a socket to the last opened database).
verbose
if TRUE, verbose mode is on

Value

  • A list with two components:
  • countcount of existing lists
  • ranktheir rank

Details

This low level function is usually not used directly by the user.

References

citation("seqinr")

See Also

choosebank, query

Examples

Run this code
# Need internet connection
 choosebank("emblTP")
 query("tmp1", "sp=Borrelia burgdorferi", virtual = TRUE)
 query("tmp2", "sp=Borrelia burgdorferi", virtual = TRUE)
 query("tmp3", "sp=Borrelia burgdorferi", virtual = TRUE)
 (result <- alllistranks())
 stopifnot(result$count == 3)   # Three ACNUC lists
 stopifnot(result$ranks == 2:4) # Starting at rank 2
 #
 # Summay of current lists defined on the ACNUC server:
 #
 sapply(result$ranks, getliststate)
 closebank()

Run the code above in your browser using DataLab