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

Adopt cutesv error handling #320

Merged
merged 19 commits into from
Apr 26, 2022
Merged

Conversation

zhemingfan
Copy link
Collaborator

@zhemingfan zhemingfan commented Mar 4, 2022

Addresses edge cases found in SV caller outputs:

  • change the convert module to not allow the end of breakpoint1 to be greater than the end of breakpoint2 (end1_after_end2)

    ----------================---------------
    ----------------========---------------------

    should be converted into

    ----------===========---------------------
    ----------------========---------------------

  • do not allow the start of breakpoint 2 to be lesser than the start of breakpoint 1 (start2_before_start1)

    -------------------============---------------
    ----------------=================---------------------

    should be converted into

    -------------------============---------------
    -------------------===============---------------------

  • breakpoint ends must allows be greater or equal to the same breakpoint start (throw a user warning in this case, as it should never happen, but still coerce the breakpoint to be the other)

@zhemingfan zhemingfan added this to the v3.1.0 milestone Mar 4, 2022
@zhemingfan zhemingfan requested a review from creisle March 4, 2022 21:30
@zhemingfan zhemingfan self-assigned this Mar 4, 2022
@zhemingfan zhemingfan linked an issue Mar 4, 2022 that may be closed by this pull request
@codecov
Copy link

codecov bot commented Mar 4, 2022

Codecov Report

Merging #320 (9e64e59) into develop_v3 (59e0167) will decrease coverage by 0.01%.
The diff coverage is 89.28%.

@@              Coverage Diff               @@
##           develop_v3     #320      +/-   ##
==============================================
- Coverage       86.45%   86.43%   -0.02%     
==============================================
  Files              55       55              
  Lines            9289     9306      +17     
  Branches         2398     2404       +6     
==============================================
+ Hits             8031     8044      +13     
- Misses            778      779       +1     
- Partials          480      483       +3     
Flag Coverage Δ
unittests 86.43% <89.28%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/mavis/summary/summary.py 54.92% <0.00%> (ø)
src/mavis/convert/vcf.py 94.11% <92.30%> (-0.66%) ⬇️
src/mavis/breakpoint.py 90.61% <100.00%> (-0.65%) ⬇️

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 9aa0415...9e64e59. Read the comment docs.

@zhemingfan zhemingfan requested a review from creisle March 14, 2022 22:44
@zhemingfan zhemingfan requested a review from creisle April 26, 2022 03:54
std_row['break2_position_start'] > std_row['break2_position_end']
or std_row['break1_position_start'] > std_row['break1_position_end']
):
if 'event_type' in std_row and std_row['event_type'] != 'BND':
Copy link
Member

Choose a reason for hiding this comment

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

style: FYI you could just do std_row.get('event_type') != 'BND' here if you wanted

@zhemingfan zhemingfan requested a review from creisle April 26, 2022 19:29
@zhemingfan zhemingfan merged commit 2e8b271 into develop_v3 Apr 26, 2022
@zhemingfan zhemingfan deleted the feature/cuteSV-dup-ins-handling branch April 26, 2022 22:13
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.

Summary module swaps LR to RL orientation
2 participants