NAL-i5K / tripal_eutils

ncbi loader via the eutils interface
GNU General Public License v3.0
4 stars 3 forks source link

search for accession explicitly and if that fails search for latest only #168

Closed bradfordcondon closed 5 years ago

bradfordcondon commented 5 years ago

resolves #167

First it specifies the query is for the accession (fix for SAMD00093090). Then, if that fails, it tries again filtering on latest: $provider->addParam('term', $accession . ' AND (latest[filter])');, resolving GCA_000648675. We have to do it in two queries because the latest filter doesnt appear to be compatible with the field= filter.