Package htsjdk.beta.plugin.interval
Class HtsQueryInterval
java.lang.Object
htsjdk.beta.plugin.interval.HtsQueryInterval
- All Implemented Interfaces:
HtsInterval
An concrete query interval implementation of
HtsInterval
used for random access queries on
file formats represented by HtsDecoder
s that support random access.-
Constructor Summary
ConstructorDescriptionHtsQueryInterval
(QueryInterval queryInterval, SAMSequenceDictionary dictionary) Convenience method for creating a query interval from an old-styleQueryInterval
.HtsQueryInterval
(String queryName, long start, long end) Create an HtsQueryInterval from query components -
Method Summary
-
Constructor Details
-
HtsQueryInterval
Create an HtsQueryInterval from query components- Parameters:
queryName
- the string query naestart
- the integer start positionend
- the end position
-
HtsQueryInterval
Convenience method for creating a query interval from an old-styleQueryInterval
.- Parameters:
queryInterval
- the query interval to convertdictionary
- the sequence dictionary to use to do the conversion
-
-
Method Details
-
getQueryName
Description copied from interface:HtsInterval
Get the name part of this interval query.- Specified by:
getQueryName
in interfaceHtsInterval
- Returns:
- the name part of this interval query
-
getStart
public long getStart()Description copied from interface:HtsInterval
Get the 1-based inclusive start coordinate for this interval.- Specified by:
getStart
in interfaceHtsInterval
- Returns:
- the 1-based inclusive start coordinate for this interval
-
getEnd
public long getEnd()Description copied from interface:HtsInterval
Get the inclusive end coordinate for this interval.- Specified by:
getEnd
in interfaceHtsInterval
- Returns:
- the inclusive end coordinate for this interval
-