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

Bump htsjdk to 3.0.3 #884

Closed
wants to merge 3 commits into from
Closed

Conversation

clintval
Copy link
Member

Changelog for htsjdk is here (using non-snapshot root): samtools/htsjdk@2.24.1...3.0.3

}.head
// TODO: could use a TreeSet to store the iterators, examine the head of each iterator, then pop the iterator with the min,
// and add that iterator back in.
iterators.zipWithIndex.map { case(iter, idx) =>
if (iter.isEmpty || this.comparator.compare(minCtx, iter.head) != 0) None
iterators.map { iter =>
Copy link
Member Author

Choose a reason for hiding this comment

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

The variable idx wasn't used and zipWithIndex is slower than mapping.


if (iters.isEmpty) throw new IllegalArgumentException("No iterators given")

private val iterators = iters.map(_.buffered)
private val comparator = dictOrComp match {
case Left(dict) => new VariantContextComparator(dict.asSam)
Copy link
Member Author

@clintval clintval Nov 16, 2022

Choose a reason for hiding this comment

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

The class VariantContextComparator now compares more than just on location (source)

Searching the codebase, this was the only improper use of the new class (and unit tests were failing).

@codecov-commenter
Copy link

codecov-commenter commented Nov 16, 2022

Codecov Report

Base: 95.66% // Head: 95.66% // No change to project coverage 👍

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

❗ Current head 585db08 differs from pull request most recent head ade04c6. Consider uploading reports for the commit ade04c6 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #884   +/-   ##
=======================================
  Coverage   95.66%   95.66%           
=======================================
  Files         125      125           
  Lines        7239     7239           
  Branches      507      495   -12     
=======================================
  Hits         6925     6925           
  Misses        314      314           
Flag Coverage Δ
unittests 95.66% <100.00%> (ø)

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

Impacted Files Coverage Δ
...fulcrumgenomics/umi/ConsensusCallingIterator.scala 100.00% <100.00%> (ø)
...crumgenomics/vcf/JointVariantContextIterator.scala 86.66% <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.

@clintval clintval marked this pull request as draft November 16, 2022 21:01
@clintval
Copy link
Member Author

Dropping to draft as there is still an entrypoint for VariantContextComparator which won't work any longer (no unit tests).

@clintval clintval closed this Nov 16, 2022
@clintval clintval reopened this Nov 16, 2022
}

@deprecated("VariantContextComparator will no longer compare variant contexts on location alone.")
def apply(iters: Seq[Iterator[VariantContext]],
Copy link
Member Author

@clintval clintval Nov 16, 2022

Choose a reason for hiding this comment

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

This entrypoint was never used in this codebase. And it is no longer possible to use VariantContextComparator since it compares variants beyond location alone (source). Seems like my only option is deprecation and raising an exception.

@clintval clintval marked this pull request as ready for review November 16, 2022 22:43
@clintval clintval requested a review from tfenne November 16, 2022 22:43
@clintval
Copy link
Member Author

@tfenne there is a breaking change in this PR so I assigned you too.

@clintval
Copy link
Member Author

Closing as htsjdk reverted the changes that were in this point release.

@clintval clintval closed this Apr 12, 2023
@clintval clintval deleted the cv_htsjdk-3.0.3 branch April 12, 2023 16:24
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