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

debugString function added #516

Merged
merged 3 commits into from
Apr 25, 2019
Merged

Conversation

abhim00
Copy link
Contributor

@abhim00 abhim00 commented Apr 22, 2019

No description provided.

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 "$@"
Copy link
Collaborator

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.

@@ -36,6 +36,8 @@ describe('GA4GHAlignment', function() {
pos: 10007,
strand: '-'
});
expect(a.debugString().length).to.be.above(0);
console.log("GA4GHAlignment : " + a.debugString());
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove console statement

@@ -44,6 +44,8 @@ describe('SamRead', function() {
pos: 79,
strand: '-'
});
expect(read.debugString().length).to.be.above(0);
console.log("SamRead : " + read.debugString());
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove console statement

@akmorrow13
Copy link
Collaborator

Fixes #494

@@ -118,5 +128,8 @@ class GA4GHAlignment /* implements Alignment */ {
return alignment.fragmentName + ':' + alignment.readNumber;
}
}
function makeCigarString(cigarOps: Array<CigarOp>) {
Copy link
Collaborator

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?

Copy link
Contributor Author

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

Copy link
Collaborator

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

Copy link
Contributor Author

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.

@akmorrow13 akmorrow13 merged commit 86a841b into hammerlab:master Apr 25, 2019
@akmorrow13
Copy link
Collaborator

Thanks @abhim00 !

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

Successfully merging this pull request may close these issues.

None yet

2 participants