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

--case_sensitive option not (always) effective #10

Open
threadless-screw opened this issue Mar 29, 2019 · 0 comments
Open

--case_sensitive option not (always) effective #10

threadless-screw opened this issue Mar 29, 2019 · 0 comments

Comments

@threadless-screw
Copy link

The output of the following two commands is the same...

smith_waterman NeeDLE NEEDLE
smith_waterman --case_sensitive NeeDLE NEEDLE

namely:

== Alignment 0 lengths (6, 6):

hit 0.0 score: 12
  NeeDLE  [pos: 0; len: 6]
  NEEDLE  [pos: 0; len: 6]

==

The practical cause of the issue seems to be that the cmdline_new() function [in alignment_cmdline.c] fails to feed an identified --case_sensitive option into scoring, e.g. like so:

if(strcasecmp(argv[argi], "--case_sensitive") == 0)
      {
        scoring->case_sensitive = true;
      }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant