Skip to content

Commit

Permalink
downloadKalamari.pl: add in retmax 1
Browse files Browse the repository at this point in the history
  • Loading branch information
lskatz authored Apr 10, 2024
1 parent 58a7c3e commit 7db4a76
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/downloadKalamari.pl
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ sub downloadEntry{
# Get the esearch xml in place for at least one downstream query
my $esearchXml = "$dir/$acc.esearch.xml";
if(! -e $esearchXml){
system("esearch -db nuccore -query '$acc' > $esearchXml.tmp");
# -retmax 1 to help avoid refseq/INSDC conflation
system("esearch -db nuccore -query '$acc' -retmax 1 > $esearchXml.tmp");
if($?){
die "ERROR running esearch: $!";
}
Expand Down

0 comments on commit 7db4a76

Please sign in to comment.