-
Notifications
You must be signed in to change notification settings - Fork 64
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
debugString function added #516
Conversation
scripts/test.sh
Outdated
@@ -18,4 +18,4 @@ trap finish EXIT | |||
sleep 1 | |||
|
|||
# Start the tests | |||
mocha-phantomjs http://localhost:8081/src/test/runner.html "$@" | |||
mocha-phantomjs -p /usr/local/bin/phantomjs http://localhost:8081/src/test/runner.html "$@" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this file should not be modified.
src/test/GA4GHAlignment-test.js
Outdated
@@ -36,6 +36,8 @@ describe('GA4GHAlignment', function() { | |||
pos: 10007, | |||
strand: '-' | |||
}); | |||
expect(a.debugString().length).to.be.above(0); | |||
console.log("GA4GHAlignment : " + a.debugString()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove console statement
src/test/data/SamRead-test.js
Outdated
@@ -44,6 +44,8 @@ describe('SamRead', function() { | |||
pos: 79, | |||
strand: '-' | |||
}); | |||
expect(read.debugString().length).to.be.above(0); | |||
console.log("SamRead : " + read.debugString()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove console statement
Fixes #494 |
src/main/GA4GHAlignment.js
Outdated
@@ -118,5 +128,8 @@ class GA4GHAlignment /* implements Alignment */ { | |||
return alignment.fragmentName + ':' + alignment.readNumber; | |||
} | |||
} | |||
function makeCigarString(cigarOps: Array<CigarOp>) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like this function is copied from SamRead.js. Can you move this function to Alignment.js from both SamRead and GA4GHAlignment and reference the function from Alignment.js?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The function is actually not directly copied from SamRead.js. The function signatures are different in GA4GHAlignment.js and SamRead.js
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be great if we could actually change the SamRead function to match yours, considering it enforces types. We can still create a function in Alignment.js and modify the usage in SamRead.js to call the function in Alignment.js
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made the edits, I think it should work.
Thanks @abhim00 ! |
No description provided.