sib-swiss / pftools3

A suite of tools to build and search generalized profiles
GNU General Public License v2.0
10 stars 7 forks source link

Update ps_scan.pl: pfsearchV3 cutoff option #13

Closed beatrice79 closed 3 years ago

beatrice79 commented 3 years ago

Fix: latest pfsearchV3 doesn't recognize -c option, it results in "Option ? is unknown" and aborts the pfsearchV3 run. With earlier pfsearchV3, the -c option doesn't seem to have the expected effect, i.e. if ps_scan.pl is run with option "-l -1", the cut-off corresponding to the level -1 is put as argument to the -c but only matches with a score higher that the level 0 are retrieved. Replacing the "-c$cutoff" by "-L $level_min" is valid for the latest pfsearchV3 and has the expected behavior regarding scores/levels for both the latest pfsearchV3 and earlier ones.