This function retrieves all sequence names or all accession number from an ACNUC list and saves them into a file.
savelist(lrank, type = c("N", "A"),
filename = paste(gln(lrank), ifelse(type == "N", "mne", "acc"),
sep = "."),socket = autosocket(), warnme = TRUE)
none.
the rank of the ACNUC list to consider.
use "N" for sequence names (mnemonics) and "A" for accession numbers. Default is "N".
a string of character giving the name of the file to save results.
an object of class sockconn
connecting to a remote ACNUC
database (default is a socket to the last opened database).
if TRUE a message is issued on the console when complete.
J.R. Lobry
https://doua.prabi.fr/databases/acnuc.html
citation("seqinr")
choosebank
, query
, glr
to
get a list rank from its name, clfcd
for the inverse operation
of savelist
if (FALSE) {
### Need internet connection
choosebank("emblTP")
mylist <- query("mylist", "sp=felis catus et t=cds", virtual=TRUE)
savelist(glr("mylist"))
# 603 sequence mnemonics written into file: MYLIST.mne
savelist(glr("mylist"), type = "A")
# 603 sequence accession numbers written into file: MYLIST.acc
}
Run the code above in your browser using DataLab