@Immutable public final class Containment extends Gfa1Record
| Constructor and Description |
|---|
Containment(Reference container,
Reference contained,
int position,
String overlap,
Map<String,Tag> tags)
Create a new containment GFA 1.0 record.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsId()
Return true if the tags for this segment contain
the reserved key
ID. |
boolean |
containsMismatchCount()
Return true if the tags for this containment contain
the reserved key
NM, for mismatch count. |
boolean |
containsNm()
Return true if the tags for this containment contain
the reserved key
NM. |
boolean |
containsRc()
Return true if the tags for this containment contain
the reserved key
RC. |
boolean |
containsReadCount()
Return true if the tags for this containment contain
the reserved key
RC, for read count. |
boolean |
equals(Object o) |
Reference |
getContained()
Return the contained reference for this containment.
|
Reference |
getContainer()
Return the container reference for this containment.
|
String |
getId()
Return the Type=Z value for the reserved key
ID
as a string. |
Optional<String> |
getIdOpt()
Return an optional Type=Z value for the reserved key
ID
as a string. |
int |
getMismatchCount()
Return the mismatch count for this containment (Type=i value
for the reserved key
NM as an integer). |
Optional<Integer> |
getMismatchCountOpt()
Return an optional wrapping the mismatch count for this containment
(Type=i value for the reserved key
NM as an integer). |
int |
getNm()
Return the Type=i value for the reserved key
NM
as an integer. |
Optional<Integer> |
getNmOpt()
Return an optional Type=i value for the reserved key
NM
as an integer. |
String |
getOverlap()
Return the overlap in cigar format for this containment, if any.
|
Optional<String> |
getOverlapOpt()
Return an optional wrapping the overlap in cigar format for this containment.
|
int |
getPosition()
Return the position for this containment (0-based coordinate system).
|
int |
getRc()
Return the Type=i value for the reserved key
RC
as an integer. |
Optional<Integer> |
getRcOpt()
Return an optional Type=i value for the reserved key
RC
as an integer. |
int |
getReadCount()
Return the read count for this containment (Type=i value for the
reserved key
RC as an integer). |
Optional<Integer> |
getReadCountOpt()
Return an optional wrapping the read count for this containment
(Type=i value for the reserved key
RC as an integer). |
int |
hashCode() |
boolean |
hasOverlap()
Return true if this containment has an overlap in cigar format.
|
String |
toString() |
static Containment |
valueOf(String value)
Parse a containment GFA 1.0 record from the specified value.
|
containsTagKey, getTagByteArray, getTagByteArrayOpt, getTagBytes, getTagBytesOpt, getTagCharacter, getTagCharacterOpt, getTagFloat, getTagFloatOpt, getTagFloats, getTagFloatsOpt, getTagInteger, getTagIntegerOpt, getTagIntegers, getTagIntegersOpt, getTags, getTagString, getTagStringOptpublic Containment(Reference container, Reference contained, int position, @Nullable String overlap, Map<String,Tag> tags)
container - container reference, must not be nullcontained - contained reference, must not be nullposition - position, must be at least zerooverlap - overlap in cigar format, if anytags - tags, must not be nullpublic Reference getContainer()
public Reference getContained()
public int getPosition()
public boolean hasOverlap()
public String getOverlap()
public Optional<String> getOverlapOpt()
public boolean containsRc()
RC.RCpublic int getRc()
RC
as an integer.RC
as an integerpublic Optional<Integer> getRcOpt()
RC
as an integer.RC
as an integerpublic boolean containsReadCount()
RC, for read count.RC, for read countpublic int getReadCount()
RC as an integer).RC as an integer)public Optional<Integer> getReadCountOpt()
RC as an integer).RC as an integer)public boolean containsNm()
NM.NMpublic int getNm()
NM
as an integer.NM
as an integerpublic Optional<Integer> getNmOpt()
NM
as an integer.NM
as an integerpublic boolean containsMismatchCount()
NM, for mismatch count.NM, for mismatch countpublic int getMismatchCount()
NM as an integer).NM as an integer)public Optional<Integer> getMismatchCountOpt()
NM as an integer).NM as an integer)public boolean containsId()
ID.IDpublic String getId()
ID
as a string.ID
as a stringpublic Optional<String> getIdOpt()
ID
as a string.ID
as a stringpublic static Containment valueOf(String value)
value - value, must not be nullCopyright © 2013–2020 dishevelled.org. All rights reserved.