Skip to content

Commit

Permalink
make default maxrejects customizable
Browse files Browse the repository at this point in the history
  • Loading branch information
KasperSkytte committed May 12, 2023
1 parent b9dc033 commit 41e5232
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions autotax.bash
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
export version="1.7.5"
export version="1.7.6"

#################################
############# setup #############
Expand All @@ -26,6 +26,8 @@ export denoise_minsize=${denoise_minsize:-2}
#used in searchTaxDB and searchTaxDB_typestrain. Faster than multithreading
export usearch_global_jobsize=${usearch_global_jobsize:-5}

export maxrejects=${maxrejects:-"0"}

##################################
########## end of setup ##########
##################################
Expand Down Expand Up @@ -347,7 +349,7 @@ add99OTUclusters() {
usearch11 -cluster_smallmem \
"$input" \
-id 0.99 \
-maxrejects 0 \
-maxrejects "${maxrejects}" \
-sortedby size \
-centroids temp/FL-OTUs.fa

Expand Down Expand Up @@ -669,7 +671,7 @@ searchTaxDB() {
parallel --progress usearch11 -usearch_global {} \
-db "$database" \
-maxaccepts 0 \
-maxrejects 0 \
-maxrejects "${maxrejects}" \
-top_hit_only \
-strand plus \
-id 0 \
Expand Down Expand Up @@ -742,7 +744,7 @@ searchTaxDB_typestrain() {
parallel --progress usearch11 -usearch_global {} \
-db "$database" \
-maxaccepts 0 \
-maxrejects 0 \
-maxrejects "${maxrejects}" \
-strand plus \
-id 0.987 \
-blast6out "{.}.b6" \
Expand Down Expand Up @@ -791,7 +793,7 @@ clusterSpecies() {
usearch11 -cluster_smallmem \
"$input" \
-id 0.987 \
-maxrejects 0 \
-maxrejects "${maxrejects}" \
-uc "$output" \
-centroids "$centroids" \
-sortedby other
Expand Down Expand Up @@ -827,7 +829,7 @@ clusterGenus() {
usearch11 -cluster_smallmem \
"$input" \
-id 0.945 \
-maxrejects 0 \
-maxrejects "${maxrejects}" \
-uc "$output" \
-centroids "$centroids" \
-sortedby other \
Expand Down Expand Up @@ -864,7 +866,7 @@ clusterFamily() {
usearch11 -cluster_smallmem \
"$input" \
-id 0.865 \
-maxrejects 0 \
-maxrejects "${maxrejects}" \
-uc "$output" \
-centroids "$centroids" \
-sortedby other \
Expand Down Expand Up @@ -901,7 +903,7 @@ clusterOrder() {
usearch11 -cluster_smallmem \
"$input" \
-id 0.82 \
-maxrejects 0 \
-maxrejects "${maxrejects}" \
-uc "$output" \
-centroids "$centroids" \
-sortedby other \
Expand Down Expand Up @@ -938,7 +940,7 @@ clusterClass() {
usearch11 -cluster_smallmem \
"$input" \
-id 0.785 \
-maxrejects 0 \
-maxrejects "${maxrejects}" \
-uc "$output" \
-centroids "$centroids" \
-sortedby other \
Expand Down Expand Up @@ -975,7 +977,7 @@ clusterPhylum() {
usearch11 -cluster_smallmem \
"$input" \
-id 0.75 \
-maxrejects 0 \
-maxrejects "${maxrejects}" \
-uc "$output" \
-centroids "$centroids" \
-sortedby other \
Expand Down

0 comments on commit 41e5232

Please sign in to comment.