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
Not trying to be a troublemaker, but I've encountered another minor issue with the the ncbi_searcher function. I'm using the txid number and it's retrieving the accessions of interest, but it's also retrieving accessions for varieties, forms, etc of the same species (which actually have different txid numbers). I know I can find filter the output and just extract the sequences i'm interested in (filter by species name or else get taxid numbers for each accession and then filter), but it seems like it would be more efficient to refine the initial search to only retrieve accessions matching that txid.
Example:
require(traits)
search.res<-ncbi_searcher(id=60451,getrelated=FALSE,entrez_query="internal transcribed spacer",verbose=FALSE,seqrange="350:3500")
sort(unique(search.res$taxon))
[1] "Tuber excavatum" "Tuber excavatum var. intermedium"
[3] "Tuber excavatum var. longisporum" "Tuber excavatum var. sulphureum"
I'm wondering if perhaps the [ORGN] modifier is automatically used in the ncbi_searcher search, which also grabs varieties (with diff txid numbers), etc.?
For instance, on NCBI...a search using:
txid60451[ORGN] AND internal transcribed spacer
----retrieves varieties
but,
txid60451 AND internal transcribed spacer
------or
txid60451[ORGN:noexp] AND internal transcribed spacer
------only retrieve the txid of interest
Would it be possible to modify the search option in ncbi_searcher to only retrieve accessions for the txid of interest? Thanks much for your help!
The text was updated successfully, but these errors were encountered:
Not trying to be a troublemaker, but I've encountered another minor issue with the the ncbi_searcher function. I'm using the txid number and it's retrieving the accessions of interest, but it's also retrieving accessions for varieties, forms, etc of the same species (which actually have different txid numbers). I know I can find filter the output and just extract the sequences i'm interested in (filter by species name or else get taxid numbers for each accession and then filter), but it seems like it would be more efficient to refine the initial search to only retrieve accessions matching that txid.
Example:
I'm wondering if perhaps the [ORGN] modifier is automatically used in the ncbi_searcher search, which also grabs varieties (with diff txid numbers), etc.?
For instance, on NCBI...a search using:
txid60451[ORGN] AND internal transcribed spacer
----retrieves varieties
but,
txid60451 AND internal transcribed spacer
------or
txid60451[ORGN:noexp] AND internal transcribed spacer
------only retrieve the txid of interest
Would it be possible to modify the search option in ncbi_searcher to only retrieve accessions for the txid of interest? Thanks much for your help!
The text was updated successfully, but these errors were encountered: