Skip to content

Interact feature refactor - #1720

Merged
jrobinso merged 10 commits into
mainfrom
interact_feature_refactor
Jul 16, 2025
Merged

Interact feature refactor#1720
jrobinso merged 10 commits into
mainfrom
interact_feature_refactor

Conversation

@jrobinso

Copy link
Copy Markdown
Contributor

No description provided.

@jrobinso
jrobinso requested a review from Copilot July 16, 2025 03:04

This comment was marked as outdated.

@jrobinso
jrobinso requested a review from Copilot July 16, 2025 03:10

This comment was marked as outdated.

@jrobinso
jrobinso requested a review from Copilot July 16, 2025 03:43

This comment was marked as outdated.

jrobinso and others added 4 commits July 15, 2025 20:49
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@jrobinso
jrobinso requested a review from Copilot July 16, 2025 03:53

Copilot AI 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.

Pull Request Overview

This PR refactors and consolidates support for inter-chromosomal interaction (BEDPE) data by introducing a generic BedPE interface, new parsers/codecs, and integrating Interact/BEDPE features into BigBed files and the rendering pipeline.

  • Introduce BedPE, BedPEFeature, InteractFeature, InteractParser, InteractCodec, and BedPESource for generic interaction feature support.
  • Update BBFile, BBCodecFactory, and add BBInteractCodec to handle “interact” bigBed formats.
  • Modify TrackLoader, FeatureSource, and InteractionTrack to load, cache, and render interaction tracks.

Reviewed Changes

Copilot reviewed 57 out of 57 changed files in this pull request and generated 3 comments.

File Description
src/main/java/org/broad/igv/bedpe/BedPESource.java New FeatureSource implementation for generic BedPE data
src/main/java/org/broad/igv/bedpe/InteractParser.java New parser for UCSC interact text files
src/main/java/org/broad/igv/track/TrackLoader.java Updated to recognize “interact” format and use BedPESource
Comments suppressed due to low confidence (2)

src/main/java/org/broad/igv/bedpe/BedPESource.java:1

  • [nitpick] BedPESource is a new core class but lacks dedicated unit tests; consider adding tests to validate feature retrieval and downsampling.
package org.broad.igv.bedpe;

src/main/java/org/broad/igv/bedpe/InteractCodec.java:55

  • [nitpick] canDecode always returns true, which may cause this codec to attempt decoding unsupported files; refine it to check file extension or header pattern.
        return true;

Comment thread test/data/bedpe/interactExample4.inter.bed Outdated
Comment thread src/main/java/org/broad/igv/bedpe/InteractionTrack.java
} else if (format.equals("bw") || format.equals("bb") || format.equals("bigwig") ||
format.equals("bigbed") || format.equals("biggenepred") || format.equals("bigrepmsk")) {
loadBWFile(locator, newTracks, genome);
loadBBFile(locator, newTracks, genome);

Copilot AI Jul 16, 2025

Copy link

Choose a reason for hiding this comment

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

[nitpick] The method loadBBFile now handles both BigWig and BigBed formats but the name 'loadBBFile' is misleading; consider renaming to reflect its dual role or splitting into separate methods.

Copilot uses AI. Check for mistakes.
jrobinso and others added 2 commits July 16, 2025 10:59
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@jrobinso
jrobinso merged commit be6c529 into main Jul 16, 2025
2 checks passed
@jrobinso
jrobinso deleted the interact_feature_refactor branch July 16, 2025 18:26
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.

2 participants