-
Notifications
You must be signed in to change notification settings - Fork 387
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
Upate to htsjdk 4.0.2 #1413
Conversation
This doesn't set the new environment variable yet. |
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.
c8459f2
to
0331f6e
Compare
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<>()); |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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.
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.
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?