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

fix: invalid bam flag using picardtools #1027

Merged
merged 3 commits into from Nov 27, 2022

Conversation

khurrammaqbool
Copy link
Contributor

@khurrammaqbool khurrammaqbool commented Nov 27, 2022

This PR:

The bam files generated multiple errors showing an invalid bam flag for numerous reads. Samtools could fix a few of them, but not all. Picard tools fixmateinformation command performs better than samtools and fixes the invalid bam flags.
The possible origin of these errors could be concatenated fastq file. The current PR fixes the issue, but it would be better to use each fastq as input and merge bam files instead.

Fixed: invalid bam flag using Picard tools.

Review and tests:

  • Tests pass
  • Code review
  • New code is executed and covered by tests, and test approve

@khurrammaqbool khurrammaqbool self-assigned this Nov 27, 2022
@khurrammaqbool khurrammaqbool changed the base branch from master to develop November 27, 2022 12:10
@codecov
Copy link

codecov bot commented Nov 27, 2022

Codecov Report

Base: 99.25% // Head: 99.25% // Increases project coverage by +0.00% 🎉

Coverage data is based on head (c7369b3) compared to base (105c876).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #1027   +/-   ##
========================================
  Coverage    99.25%   99.25%           
========================================
  Files           28       28           
  Lines         1746     1747    +1     
========================================
+ Hits          1733     1734    +1     
  Misses          13       13           
Flag Coverage Δ
unittests 99.25% <100.00%> (+<0.01%) ⬆️

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

Impacted Files Coverage Δ
BALSAMIC/constants/workflow_params.py 100.00% <ø> (ø)
BALSAMIC/utils/models.py 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Contributor

@ivadym ivadym left a comment

Choose a reason for hiding this comment

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

🥇 💯 🎁 🎄

Please check my comments before merging

BALSAMIC/constants/workflow_params.py Show resolved Hide resolved
CHANGELOG.rst Outdated Show resolved Hide resolved
@khurrammaqbool khurrammaqbool linked an issue Nov 27, 2022 that may be closed by this pull request
@sonarcloud
Copy link

sonarcloud bot commented Nov 27, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 3 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@khurrammaqbool khurrammaqbool merged commit 44046ef into develop Nov 27, 2022
@khurrammaqbool khurrammaqbool deleted the fix/invalid_flag_second_of_pair_picard branch November 27, 2022 16:28
This was referenced Nov 28, 2022
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.

SAM validation error in mergeBam rule
2 participants