Skip to content

creating a new tool to compare interval lists - #3702

Merged
jonn-smith merged 3 commits into
masterfrom
lb_add_compare_intervals_tool
Jan 11, 2019
Merged

creating a new tool to compare interval lists#3702
jonn-smith merged 3 commits into
masterfrom
lb_add_compare_intervals_tool

Conversation

@lbergelson

Copy link
Copy Markdown
Contributor

adding a very simple tool to compare two interval list files

@droazen droazen assigned droazen and jonn-smith and unassigned droazen Oct 17, 2017
@droazen
droazen requested a review from jonn-smith October 17, 2017 16:06
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
Copy Markdown
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
Copy Markdown
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.

@jonn-smith jonn-smith left a comment

Copy link
Copy Markdown
Collaborator

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

codecov-io commented Oct 17, 2017

Copy link
Copy Markdown

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

@jonn-smith jonn-smith left a comment

Copy link
Copy Markdown
Collaborator

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 force-pushed the lb_add_compare_intervals_tool branch from 99ede46 to 8f85021 Compare January 11, 2019 20:57
@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.

4 participants