-
Notifications
You must be signed in to change notification settings - Fork 243
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
Add NamedFeature for common interface to name in bed or interval_list #1680
Conversation
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.
@rickymagner I think this is a good idea but I don't think the name is right. Maybe NamedFeature
would make more sense?
* An interface for features provided via an interval file, e.g. bed or interval_list. | ||
* Provides a common interface for accessing the name column for both of these file types. | ||
*/ | ||
public interface IntervalFileFeature extends Feature { |
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 might call this "NamedFeature"
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.
Good point. I just updated the name to the more descriptive NamedFeature
.
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.
👍
Ack, I merged without fixing the commit name... .bleh. |
Description
This short PR adds an
IntervalFileFeature
interface which extends theFeature
interface to include agetName
method common to both lines in bed files and interval_list files. This allows you to be able to parse and work with bed and interval_list file lines uniformly when you need to access metadata in thename
field. This will be used in an upcoming change in GATK.