samtools / htsjdk

A Java API for high-throughput sequencing data (HTS) formats.
http://samtools.github.io/htsjdk/
276 stars 244 forks source link

Add NamedFeature for common interface to name in bed or interval_list #1680

Closed rickymagner closed 11 months ago

rickymagner commented 11 months ago

Description

This short PR adds an IntervalFileFeature interface which extends the Feature interface to include a getName 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 the name field. This will be used in an upcoming change in GATK.

lbergelson commented 11 months ago

Ack, I merged without fixing the commit name... .bleh.