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

Output is erroneous #9

Open
joshhansen opened this issue Jul 16, 2020 · 0 comments
Open

Output is erroneous #9

joshhansen opened this issue Jul 16, 2020 · 0 comments

Comments

@joshhansen
Copy link

Consider this code:

String a = "abcdefg";
String b = "bcdefgh";

NeedlemanWunsch nw = new NeedlemanWunsch(a,b);
nw.findSolution();
nw.printStrandInfo();

It gives this output:

bbcdefg-
-bcdefgh
The score for this alignment is: -4

This output appears to be erroneous. The source string does not contain the "a" but has an additional "b" not originally present.

I was expecting something like this:

abcdefg-
-bcdefgh
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