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

creating a new tool to compare interval lists #3702

Merged
merged 3 commits into from Jan 11, 2019

Conversation

lbergelson
Copy link
Member

adding a very simple tool to compare two interval list files

@droazen droazen assigned droazen and jonn-smith and unassigned droazen Oct 17, 2017
final GenomeLocParser genomeLocParser = new GenomeLocParser(samSequenceDictionary);
final GenomeLocSortedSet firstIntervals = getGenomeLocs(genomeLocParser, firstIntervalFile);
final GenomeLocSortedSet secondIntervals = getGenomeLocs(genomeLocParser, secondIntervalFile);
final String result = IntervalUtils.equateIntervals(firstIntervals.toList(), secondIntervals.toList());
Copy link
Collaborator

Choose a reason for hiding this comment

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

What happens if the interval files are both empty?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Seems to be fine - added some tests to this effect and they behave as expected.

Copy link
Collaborator

@jonn-smith jonn-smith left a comment

Choose a reason for hiding this comment

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

Needs some comments, but looks reasonable. I had one quick question about the file comparison.

@codecov-io
Copy link

codecov-io commented Oct 17, 2017

Codecov Report

Merging #3702 into master will increase coverage by <.01%.
The diff coverage is 97.14%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #3702      +/-   ##
============================================
+ Coverage     87.08%   87.09%   +<.01%     
- Complexity    31522    31531       +9     
============================================
  Files          1930     1932       +2     
  Lines        145236   145271      +35     
  Branches      16096    16099       +3     
============================================
+ Hits         126480   126519      +39     
+ Misses        12903    12900       -3     
+ Partials       5853     5852       -1
Impacted Files Coverage Δ Complexity Δ
...der/tools/CompareIntervalListsIntegrationTest.java 100% <100%> (ø) 4 <4> (?)
...stitute/hellbender/tools/CompareIntervalLists.java 93.33% <93.33%> (ø) 4 <4> (?)
...broadinstitute/hellbender/utils/IntervalUtils.java 91.88% <0%> (+0.35%) 188% <0%> (+1%) ⬆️
...nder/utils/runtime/StreamingProcessController.java 67.77% <0%> (+0.47%) 33% <0%> (ø) ⬇️
...oadinstitute/hellbender/utils/gcs/BucketUtils.java 79.87% <0%> (+1.21%) 42% <0%> (ø) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a74e571...8f85021. Read the comment docs.

@droazen droazen assigned lbergelson and unassigned jonn-smith Oct 19, 2017
@jonn-smith jonn-smith assigned jonn-smith and unassigned lbergelson Jan 11, 2019
Copy link
Collaborator

@jonn-smith jonn-smith left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@jonn-smith jonn-smith merged commit 18f7bd9 into master Jan 11, 2019
@jonn-smith jonn-smith deleted the lb_add_compare_intervals_tool branch January 11, 2019 22:07
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

4 participants