You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The docs for gb_fasta_get() state that the value is NULL when there is no result - meaning the provided ids were unmatched in the database. On the other hand, when there is a mix of matched and unmatched ids, the unmatched ids are silently dropped.
Perhaps the docs might read something akin to "A named vector of fasta sequences for each matched id, unmatched ids are dropped. If no ids are matched then NULL."
library(restez)
restez_path_set(filepath= tempdir())
# ... Creating '/var/tmp/pbs.5176422.cfe/RtmpmK2T97/restez'# ... Creating '/var/tmp/pbs.5176422.cfe/RtmpmK2T97/restez/downloads'
demo_db_create(n=5)
(fastas<- gb_fasta_get(id= c('moo', 'foo', 'woo')))
# NULL
(fastas<- gb_fasta_get(id= c('demo_1', 'foo', 'demo_2')))
# demo_1 # ">demo_1.3 A demonstration sequence | id demo_1\nAACGTGACAC\n\n" # demo_2 # ">demo_2.1 A demonstration sequence | id demo_2\nGTGCTCCCCC\n\n" # delete demo after example
db_delete(everything=TRUE)
Hi,
The docs for
gb_fasta_get()
state that the value is NULL when there is no result - meaning the provided ids were unmatched in the database. On the other hand, when there is a mix of matched and unmatched ids, the unmatched ids are silently dropped.Perhaps the docs might read something akin to "A named vector of fasta sequences for each matched id, unmatched ids are dropped. If no ids are matched then NULL."
Session info follows...
The text was updated successfully, but these errors were encountered: