@Immutable public final class Gap extends Gfa2Record
| Constructor and Description |
|---|
Gap(String id,
Reference source,
Reference target,
int distance,
Integer variance,
Map<String,Tag> tags)
Create a new gap GFA 2.0 record.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsTraceSpacing()
Return true if the tags for this gap contain
the reserved key
TS, for trace spacing. |
boolean |
containsTs()
Return true if the tags for this gap contain
the reserved key
TS. |
boolean |
equals(Object o) |
int |
getDistance()
Return the distance for this gap.
|
String |
getId()
Return the identifier for this gap, if any.
|
Optional<String> |
getIdOpt()
Return an optional wrapping the identifier for this gap.
|
Reference |
getSource()
Return the source reference for this gap.
|
Reference |
getTarget()
Return the target reference for this gap.
|
int |
getTraceSpacing()
Return the trace spacing for this gap (Type=i value for
the reserved key
TS as an integer). |
Optional<Integer> |
getTraceSpacingOpt()
Return an optional wrapping the trace spacing for this gap
(Type=i value for the reserved key
TS as an integer). |
int |
getTs()
Return the Type=i value for the reserved key
TS
as an integer. |
Optional<Integer> |
getTsOpt()
Return an optional Type=i value for the reserved key
TS
as an integer. |
Integer |
getVariance()
Return the variance for this gap, if any.
|
Optional<Integer> |
getVarianceOpt()
Return an optional wrapping the variance for this gap.
|
int |
hashCode() |
boolean |
hasId()
Return true if this gap has an identifier.
|
boolean |
hasVariance()
Return true if this gap has a variance.
|
String |
toString() |
static Gap |
valueOf(String value)
Parse a gap GFA 2.0 record from the specified value.
|
containsTagKey, getTagByteArray, getTagByteArrayOpt, getTagBytes, getTagBytesOpt, getTagCharacter, getTagCharacterOpt, getTagFloat, getTagFloatOpt, getTagFloats, getTagFloatsOpt, getTagInteger, getTagIntegerOpt, getTagIntegers, getTagIntegersOpt, getTags, getTagString, getTagStringOptpublic Gap(@Nullable String id, Reference source, Reference target, int distance, @Nullable Integer variance, Map<String,Tag> tags)
id - identifier, if anysource - source reference, must not be nulltarget - target reference, must not be nulldistance - distance, must be at least zerovariance - variance, if anytags - tags, must not be nullpublic boolean hasId()
public String getId()
public Optional<String> getIdOpt()
public Reference getSource()
public Reference getTarget()
public int getDistance()
public boolean hasVariance()
public Integer getVariance()
public Optional<Integer> getVarianceOpt()
public boolean containsTs()
TS.TSpublic int getTs()
TS
as an integer.TS
as an integerpublic Optional<Integer> getTsOpt()
TS
as an integer.TS
as an integerpublic boolean containsTraceSpacing()
TS, for trace spacing.TS, for trace spacingpublic int getTraceSpacing()
TS as an integer).TS as an integer)public Optional<Integer> getTraceSpacingOpt()
TS as an integer).TS as an integer)Copyright © 2013–2020 dishevelled.org. All rights reserved.