countsubseqs: Number of subsequences in an ACNUC list

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/countsubseqs.R

Description

Returns the number of subsequences in the ACNUC list of rank lrank.

Usage

1
2
countsubseqs(lrank, socket = autosocket())
css(lrank, socket = autosocket())

Arguments

lrank

the rank of the ACNUC list to consider.

socket

an object of class sockconn connecting to a remote ACNUC database (default is a socket to the last opened database).

Value

Numeric.

Author(s)

J.R. Lobry

References

http://doua.prabi.fr/databases/acnuc.html

citation("seqinr")

See Also

choosebank, query, glr to get a list rank from its name.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run:  # Need internet connection
  choosebank("emblTP")
  mylist<-query("mylist", "[email protected]", virtual = TRUE) # select all (seqs + subseqs)
  mylist$nelem   # 14138094 seqs + subseqs
  stopifnot(mylist$nelem == 14138094)
  css(glr("mylist")) # 1604500 subsequences only
  stopifnot(css(glr("mylist")) == 1604500)
  closebank()
  
## End(Not run)

seqinr documentation built on Aug. 13, 2017, 3:01 a.m.