Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Just search for species instead of species+genes #30

Open
boopsboops opened this issue Oct 9, 2022 · 1 comment
Open

Just search for species instead of species+genes #30

boopsboops opened this issue Oct 9, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@boopsboops
Copy link
Contributor

boopsboops commented Oct 9, 2022

Perhaps faster if only search for species names instead of adding the gene names to the exhaustive search? Potentially fewer queries, but a bigger fasta download that includes all non-mtDNA. Could be simpler?

See code here:

# choose exhaustive or simple search for number of strings to search
if(opt$exhaustive == "true") {
    query <- paste0("(",spp.list,"[ORGN] AND ",range,"[SLEN])")
} else if (opt$exhaustive == "false") {
    gene.syns <- "(mitochondrial[ALL] OR mitochondrion[ALL])"
    query <- unlist(mapply(function(x) paste0("(",spp.list,"[ORGN] AND ",x," AND ",range,"[SLEN])"), gene.syns, SIMPLIFY=FALSE, USE.NAMES=FALSE))
} else stop(writeLines("'-e' value must be 'true' or 'false'."))
@boopsboops boopsboops added the enhancement New feature or request label Oct 9, 2022
@boopsboops
Copy link
Contributor Author

Seems that this consistently maxes out the limit of records, even with a low -q value of 500.

Need to rethink.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant