Learn R Programming

seqinr (version 4.2-36)

countsubseqs: Number of subsequences in an ACNUC list

Description

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

Usage

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

Value

Numeric.

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).

Author

J.R. Lobry

References

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

citation("seqinr")

See Also

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

Examples

Run this code
if (FALSE)  # Need internet connection
  choosebank("emblTP")
  mylist<-query("mylist", "N=@", 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()
  

Run the code above in your browser using DataLab