public class HtsQueryInterval extends java.lang.Object implements HtsInterval
HtsInterval
used for random access queries on
file formats represented by HtsDecoder
s that support random access.Constructor and Description |
---|
HtsQueryInterval(QueryInterval queryInterval,
SAMSequenceDictionary dictionary)
Convenience method for creating a query interval from an old-style
QueryInterval . |
HtsQueryInterval(java.lang.String queryName,
long start,
long end)
Create an HtsQueryInterval from query components
|
Modifier and Type | Method and Description |
---|---|
long |
getEnd()
Get the inclusive end coordinate for this interval.
|
java.lang.String |
getQueryName()
Get the name part of this interval query.
|
long |
getStart()
Get the 1-based inclusive start coordinate for this interval.
|
public HtsQueryInterval(java.lang.String queryName, long start, long end)
queryName
- the string query naestart
- the integer start positionend
- the end positionpublic HtsQueryInterval(QueryInterval queryInterval, SAMSequenceDictionary dictionary)
QueryInterval
.queryInterval
- the query interval to convertdictionary
- the sequence dictionary to use to do the conversionpublic java.lang.String getQueryName()
HtsInterval
getQueryName
in interface HtsInterval
public long getStart()
HtsInterval
getStart
in interface HtsInterval
public long getEnd()
HtsInterval
getEnd
in interface HtsInterval