Skip to content

Forward input BAM @PG header lines to output BAM - #3065

Merged
lbergelson merged 2 commits into
masterfrom
rhl_hc_bamout_pg_2787
Jan 14, 2019
Merged

lbergelson merged 2 commits into
masterfrom
rhl_hc_bamout_pg_2787

Conversation

@ronlevine

@ronlevine ronlevine commented Jun 7, 2017 •

Copy link
Copy Markdown
Contributor

Implements #2787.
Summary of Changes

  • HaplotypeBAMDestination.java - Added a statement to put the the input @PG header lines in the output BAM.
  • ArtificialReadUtils.java - Added a methods to create a SAM header with Program Records. Fixed a bug in createArtificialSamHeaderWithReadGroup where the Read Group was using PG instead of the RG tag.
  • SamAssertionUtils.java - Created a utility, assertOutBamContainsInBamProgramRecords, that checks that output BAM file header contains the input BAM file header Program Records.
  • SamAssertionUtilsUnitTest.java - Unit tests assertOutBamContainsInBamProgramRecords.
  • HaplotypeCallerIntegrationTest.java - Tested the input BAM Program Record (PG) tags are forwarded to the output BAM.
  • HaplotypeBAMWriterUnitTest.java - Tested the input BAM Program Record (PG) tags are forwarded to the output SAM and BAM.
  • testSAM.sam and testBAM.sam - Modified to reflect forwarded PG tags in HaplotypeBAMWriterUnitTest.
  • ArtificialReadUtilsUnitTest.java and ReadPileupUnitTest.java - change null to the RG value due to using the correct tag in ArtificialReadUtils.createArtificialSamHeaderWithReadGroup.

@ronlevine ronlevine self-assigned this Jun 7, 2017
@ronlevine
ronlevine requested a review from lbergelson June 7, 2017 23:46
@droazen
droazen requested a review from cmnbroad June 20, 2017 13:02
@droazen droazen assigned cmnbroad and unassigned ronlevine Jun 20, 2017
@droazen

droazen commented Jun 20, 2017

Copy link
Copy Markdown
Contributor

For @cmnbroad to review

@cmnbroad
cmnbroad force-pushed the rhl_hc_bamout_pg_2787 branch from e0766b2 to a48a53b Compare September 12, 2017 00:34
@codecov-io

codecov-io commented Sep 12, 2017 •

Copy link
Copy Markdown

Codecov Report

Merging #3065 into master will decrease coverage by 0.035%.
The diff coverage is 100%.

@@               Coverage Diff               @@
##              master     #3065       +/-   ##
===============================================
- Coverage     87.086%   87.051%   -0.035%     
+ Complexity     31522     31442       -80     
===============================================
  Files           1930      1919       -11     
  Lines         145236    144960      -276     
  Branches       16096     16061       -35     
===============================================
- Hits          126480    126189      -291     
- Misses         12903     12928       +25     
+ Partials        5853      5843       -10
Impacted Files Coverage Δ Complexity Δ
...aplotypecaller/HaplotypeCallerIntegrationTest.java 88.262% <100%> (+0.027%) 84 <0> (ø) ⬇️
...te/hellbender/utils/pileup/ReadPileupUnitTest.java 96.352% <100%> (ø) 77 <0> (ø) ⬇️
...ellbender/testutils/SamAssertionUtilsUnitTest.java 89.744% <100%> (+0.855%) 12 <1> (+1) ⬆️
...ender/utils/haplotype/HaplotypeBAMDestination.java 100% <100%> (ø) 4 <0> (ø) ⬇️
...er/utils/haplotype/HaplotypeBAMWriterUnitTest.java 89.076% <100%> (ø) 23 <0> (ø) ⬇️
...ute/hellbender/utils/read/ArtificialReadUtils.java 93.388% <100%> (+0.345%) 69 <3> (+3) ⬆️
...bender/utils/read/ArtificialReadUtilsUnitTest.java 98.165% <100%> (ø) 21 <0> (ø) ⬇️
...spark/ReadsPreprocessingPipelineSparkTestData.java 0% <0%> (-94.03%) 0% <0%> (-11%)
...adinstitute/hellbender/engine/ReadContextData.java 0% <0%> (-70.37%) 0% <0%> (-6%)
...n/java/org/broadinstitute/hellbender/utils/KV.java 0% <0%> (-57.143%) 0% <0%> (-5%)
... and 23 more

@magicDGS magicDGS left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

After #3475, conflicts are expected in the test classes, because they are now extending GATKBaseTest - a rebase should solve most of the problems without need of change of the code (except comments below)

@droazen droazen assigned lbergelson and unassigned cmnbroad Jan 11, 2019
@droazen
droazen removed the request for review from cmnbroad January 11, 2019 16:21
@droazen

droazen commented Jan 11, 2019

Copy link
Copy Markdown
Contributor

@lbergelson will rebase this one later today

@lbergelson
lbergelson force-pushed the rhl_hc_bamout_pg_2787 branch from a48a53b to 274c678 Compare January 11, 2019 19:28
* use try with resources
* opportunistic typo and dead code fixes

@lbergelson lbergelson left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

approving my version of the changes...

@lbergelson
lbergelson merged commit 89190b4 into master Jan 14, 2019
@lbergelson
lbergelson deleted the rhl_hc_bamout_pg_2787 branch January 14, 2019 15:20
@lbergelson

Copy link
Copy Markdown
Contributor

closes #2787

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.

6 participants