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

get_species_taxids: fix sed #161

Merged
merged 1 commit into from
Nov 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions tools/ncbi_blast_plus/get_species_taxids.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@
<command detect_errors="aggressive"><![CDATA[
#if $type_cond.type_sel == 'names'
#for name in $type_cond.names.split(',')
taxid=\$(get_species_taxids.sh -n '$name' | grep Taxid | sed 's/Taxid://') &&
if [ -z \$taxid ]; then
taxid=\$(get_species_taxids.sh -n '$name' | grep Taxid | sed 's/Taxid\s*:\s*//') &&
if [ -z "\$taxid" ]; then
>&2 echo "could not find taxid for $name" && exit 1;
else
echo " $name -> \$taxid";
fi &&
get_species_taxids.sh -t \$taxid >> species_ids.txt &&
get_species_taxids.sh -t "\$taxid" >> species_ids.txt &&
#end for
#else
#for taxid in $type_cond.ids.split(',')
get_species_taxids.sh -t $taxid >> species_ids.txt &&
get_species_taxids.sh -t "$taxid" >> species_ids.txt &&
#end for
#end if
sort -n -u species_ids.txt > '$output'
Expand Down
2 changes: 1 addition & 1 deletion tools/ncbi_blast_plus/ncbi_macros.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<macros>
<token name="@TOOL_VERSION@">2.14.1</token>
<token name="@VERSION_SUFFIX@">0</token>
<token name="@VERSION_SUFFIX@">1</token>
<token name="@PROFILE@">16.10</token>
<xml name="parallelism">
<!-- If job splitting is enabled, break up the query file into parts -->
Expand Down