gear-genomics / dicey

In-silico PCR, primer design and padlock design for in-situ sequencing
https://www.gear-genomics.com/
GNU General Public License v3.0
47 stars 4 forks source link

fixed a bug where d=0 returns nothing #9

Closed gtbil closed 1 year ago

gtbil commented 1 year ago

There was a bug that would cause no results to be returned when the -d flag was set to zero. This PR fixes the bug.

Before:

dicey hunt -d 0 -g GhirsutumCoker_698_v1.0.fa.gz  CACTGTATCATCAGGTAAGATTGTCCAATCTACGAC | python ./dicey/scripts/json2txt.py 
# nothing

Now:

dicey hunt -d 0 -g GhirsutumCoker_698_v1.0.fa.gz  CACTGTATCATCAGGTAAGATTGTCCAATCTACGAC | python ./dicey/scripts/json2txt.py 
#
# >D08:8153512-8153547 (Strand: +, Distance: 0)
# CACTGTATCATCAGGTAAGATTGTCCAATCTACGAC
# CACTGTATCATCAGGTAAGATTGTCCAATCTACGAC
#