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

Traceback of First Letter #10

Open
jbondurant opened this issue Apr 29, 2021 · 0 comments
Open

Traceback of First Letter #10

jbondurant opened this issue Apr 29, 2021 · 0 comments

Comments

@jbondurant
Copy link

jbondurant commented Apr 29, 2021

when trying to align devaroelawrence and trevorlawrence it returns

-d-ev-aroelawrence
r-revo-r--lawrence

however if I change line 272 in NeedlemanWunsch.java from

alignedStrand2 = strand2.charAt(j-k) + alignedStrand2;
to
alignedStrand2 = strand2.charAt(j-k-1) + alignedStrand2;

the alignment produced is

-d-ev-aroelawrence
t-revo-r--lawrence

I did not review the rest of the code for similar errors

Edit: after the previous fix when aligning
dexterlawrence and trevorlawrence (with scoring 5,-2,-1) I had the alignment
extt-e--rlawrence
---trevorlawrence
however, when updating line 282 to
alignedStrand1 = strand1.charAt(i-k-1) + alignedStrand1;
I now get the alignment
dext-e--rlawrence
---trevorlawrence

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