-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
Allow compact printing of alignments #53
Conversation
Codecov Report
@@ Coverage Diff @@
## master #53 +/- ##
==========================================
- Coverage 88.32% 87.73% -0.59%
==========================================
Files 17 16 -1
Lines 1079 1052 -27
==========================================
- Hits 953 923 -30
- Misses 126 129 +3
Continue to review full report at Codecov.
|
Is there some summary information that would be useful to print? aligned length, ungapped length of each sequence? |
Does IOContext offer anything here? |
Not 100% sure, but the docs for
But yeah, good point @BioTurboNick , I'll add some more info. And also a few more tests of printing, just to make codecov happy :) |
Codecov is acting up, this is most definitely covered by the tests. Merging |
Allow compact printing of alignments
Allow compact printing of alignments
This changes printing of
PairwiseAlignment
andPairwiseAlignmentResult
, such that they are displayed compactly in vectors and other structs. (I was getting annoyed by having my terminal wrecked when printing vectors of alignments).When compact, they are now displayed like this:
This does violate the principle that the thing being printed should contain all the relevant information in the object, but in this case, I think there is no way to do this.