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

Upate to htsjdk 4.0.2 #1413

Merged
merged 1 commit into from
Nov 15, 2023
Merged

Upate to htsjdk 4.0.2 #1413

merged 1 commit into from
Nov 15, 2023

Conversation

lbergelson
Copy link
Contributor

Htsjdk added a new NamedFeature interface that is clashing with IGV's slightly different NamedFeature. Renamed NamedFeature -> IGVNamedFeature
Slight change to IGVFeatureReader interface to make it return a CloseableIterator so that it can be handled with try-with-resources.

It might be worth updating the new Htsjdk interface to include the displayName() method as well so that can just be used directly?

@lbergelson
Copy link
Contributor Author

This doesn't set the new environment variable yet.

@jrobinso
Copy link
Contributor

The entire "Feature" class/interface structure could use a look, with a view to remove duplicate interfaces wrt the htsjdk. Not for this PR.

Htsjdk added a new NamedFeature interface that is clashing with IGV's slightly different NamedFeature.
Renamed NamedFeature -> IGVNamedFeature
Slight change to IGVFeatureReader interface to make it return a CloseableIterator so that it can be handled with try-with-resources.
@lbergelson
Copy link
Contributor Author

Rebased this on master, hopefully the test pass now, it looks like it was some sort of transient issue contacting blast.

featureList = new ArrayList();
featureMap.put(igvChr, featureList);
}
List<Feature> featureList = featureMap.computeIfAbsent(igvChr, k -> new ArrayList<>());
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did a bit of refactoring in this method, every where else is basically just renames.

}
}

@Override
public Iterator<Feature> iterator() throws IOException {
public CloseableIterator<Feature> iterator() throws IOException {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is autocloseable now so it can be handle automatically.

@jrobinso jrobinso merged commit 175f234 into master Nov 15, 2023
2 checks passed
@jrobinso jrobinso deleted the lb_update_htsjdk branch November 15, 2023 19:06
jrobinso pushed a commit that referenced this pull request Dec 4, 2023
Htsjdk added a new NamedFeature interface that is clashing with IGV's slightly different NamedFeature.
Renamed NamedFeature -> IGVNamedFeature
Slight change to IGVFeatureReader interface to make it return a CloseableIterator so that it can be handled with try-with-resources.
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