Skip to content

Commit

Permalink
unclear why these changes didn't go through
Browse files Browse the repository at this point in the history
  • Loading branch information
Yossi Farjoun committed Nov 29, 2021
1 parent 6d86592 commit 23f29c8
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.broadinstitute.hellbender.engine.spark.AssemblyRegionArgumentCollection;
import org.broadinstitute.hellbender.tools.walkers.mutect.AlignmentAndReferenceContext;
import org.broadinstitute.hellbender.utils.IntervalUtils;
import org.broadinstitute.hellbender.utils.SimpleInterval;
import org.broadinstitute.hellbender.utils.Utils;
Expand Down Expand Up @@ -51,7 +50,7 @@ public class AssemblyRegionIterator implements Iterator<AssemblyRegion> {
private final Iterator<AlignmentContext> locusIterator;
private final LocusIteratorByState libs;
private final ActivityProfile activityProfile;
private Queue<AlignmentAndReferenceContext> pendingAlignmentData;
private Queue<AlignmentData> pendingAlignmentData;

/**
* Constructs an AssemblyRegionIterator over a provided read shard
Expand Down Expand Up @@ -137,7 +136,7 @@ private AssemblyRegion loadNextAssemblyRegion() {
final SimpleInterval pileupInterval = new SimpleInterval(pileup);
final ReferenceContext pileupRefContext = new ReferenceContext(reference, pileupInterval);
final FeatureContext pileupFeatureContext = new FeatureContext(features, pileupInterval);
pendingAlignmentData.add(new AlignmentAndReferenceContext(pileup, pileupRefContext));
pendingAlignmentData.add(new AlignmentData(pileup, pileupRefContext));

final ActivityProfileState profile = evaluator.isActive(pileup, pileupRefContext, pileupFeatureContext);
activityProfile.add(profile);
Expand Down Expand Up @@ -218,8 +217,8 @@ private void fillNextAssemblyRegionWithReads( final AssemblyRegion region ) {
}

private void fillNextAssemblyRegionWithPileupData(final AssemblyRegion region){
final List<AlignmentAndReferenceContext> overlappingAlignmentData = new ArrayList<>();
final Queue<AlignmentAndReferenceContext> previousAlignmentData = new ArrayDeque<>();
final List<AlignmentData> overlappingAlignmentData = new ArrayList<>();
final Queue<AlignmentData> previousAlignmentData = new ArrayDeque<>();

while (!pendingAlignmentData.isEmpty()) {
final AlignmentContext pendingAlignmentContext = pendingAlignmentData.peek().getAlignmentContext();
Expand Down

0 comments on commit 23f29c8

Please sign in to comment.