@Immutable public final class Edge extends Gfa2Record
| Constructor and Description |
|---|
Edge(String id,
Reference source,
Reference target,
Position sourceStart,
Position sourceEnd,
Position targetStart,
Position targetEnd,
Alignment alignment,
Map<String,Tag> tags)
Create a new edge GFA 2.0 record.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsFc()
Return true if the tags for this edge contain
the reserved key
FC. |
boolean |
containsFragmentCount()
Return true if the tags for this edge contain
the reserved key
FC, for fragment count. |
boolean |
containsKc()
Return true if the tags for this edge contain
the reserved key
KC. |
boolean |
containsKmerCount()
Return true if the tags for this edge contain
the reserved key
KC, for k-mer count. |
boolean |
containsMappingQuality()
Return true if the tags for this edge contain
the reserved key
MQ, for mapping quality. |
boolean |
containsMismatchCount()
Return true if the tags for this edge contain
the reserved key
NM, for mismatch count. |
boolean |
containsMq()
Return true if the tags for this edge contain
the reserved key
MQ. |
boolean |
containsNm()
Return true if the tags for this edge contain
the reserved key
NM. |
boolean |
containsRc()
Return true if the tags for this edge contain
the reserved key
RC. |
boolean |
containsReadCount()
Return true if the tags for this edge contain
the reserved key
RC, for read count. |
boolean |
containsTraceSpacing()
Return true if the tags for this edge contain
the reserved key
TS, for trace spacing. |
boolean |
containsTs()
Return true if the tags for this edge contain
the reserved key
TS. |
boolean |
equals(Object o) |
Alignment |
getAlignment()
Return the alignment for this edge, if any.
|
Optional<Alignment> |
getAlignmentOpt()
Return an optional wrapping the alignment for this edge.
|
int |
getFc()
Return the Type=i value for the reserved key
FC
as an integer. |
Optional<Integer> |
getFcOpt()
Return an optional Type=i value for the reserved key
FC
as an integer. |
int |
getFragmentCount()
Return the fragment count for this edge (Type=i value for
the reserved key
FC as an integer). |
Optional<Integer> |
getFragmentCountOpt()
Return an optional wrapping the fragment count for this edge
(Type=i value for the reserved key
FC as an integer). |
String |
getId()
Return the identifier for this edge, if any.
|
Optional<String> |
getIdOpt()
Return an optional wrapping the identifier for this edge.
|
int |
getKc()
Return the Type=i value for the reserved key
KC
as an integer. |
Optional<Integer> |
getKcOpt()
Return an optional Type=i value for the reserved key
KC
as an integer. |
int |
getKmerCount()
Return the k-mer count for this edge (Type=i value for
the reserved key
KC as an integer). |
Optional<Integer> |
getKmerCountOpt()
Return an optional wrapping the k-mer count for this edge
(Type=i value for the reserved key
KC as an integer). |
int |
getMappingQuality()
Return the mapping quality for this edge (Type=i value for
the reserved key
MQ as an integer). |
Optional<Integer> |
getMappingQualityOpt()
Return an optional wrapping the mapping quality for this edge
(Type=i value for the reserved key
MQ as an integer). |
int |
getMismatchCount()
Return the mismatch count for this edge (Type=i value for
the reserved key
NM as an integer). |
Optional<Integer> |
getMismatchCountOpt()
Return an optional wrapping the mismatch count for this edge
(Type=i value for the reserved key
NM as an integer). |
int |
getMq()
Return the Type=i value for the reserved key
MQ
as an integer. |
Optional<Integer> |
getMqOpt()
Return an optional Type=i value for the reserved key
MQ
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. |
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 edge (Type=i value for
the reserved key
RC as an integer). |
Optional<Integer> |
getReadCountOpt()
Return an optional wrapping the read count for this edge
(Type=i value for the reserved key
RC as an integer). |
Reference |
getSource()
Return the source reference for this edge.
|
Position |
getSourceEnd()
Return the source end position for this edge.
|
Position |
getSourceStart()
Return the source start position for this edge.
|
Reference |
getTarget()
Return the target reference for this edge.
|
Position |
getTargetEnd()
Return the target end position for this edge.
|
Position |
getTargetStart()
Return the target start position for this edge.
|
int |
getTraceSpacing()
Return the trace spacing for this edge (Type=i value for
the reserved key
TS as an integer). |
Optional<Integer> |
getTraceSpacingOpt()
Return an optional wrapping the trace spacing for this edge
(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. |
boolean |
hasAlignment()
Return true if this edge has an alignment.
|
int |
hashCode() |
boolean |
hasId()
Return true if this edge has an identifier.
|
String |
toString() |
static Edge |
valueOf(String value)
Parse an edge 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 Edge(@Nullable String id, Reference source, Reference target, Position sourceStart, Position sourceEnd, Position targetStart, Position targetEnd, @Nullable Alignment alignment, Map<String,Tag> tags)
id - identifier, if anysource - source reference, must not be nulltarget - target reference, must not be nullsourceStart - source start position, must not be nullsourceEnd - source end position, must not be nulltargetStart - target start position, must not be nulltargetEnd - target end position, must not be nullalignment - alignment, if anytags - tags, must not be nullpublic boolean hasId()
public String getId()
public Optional<String> getIdOpt()
public Reference getSource()
public Reference getTarget()
public Position getSourceStart()
public Position getSourceEnd()
public Position getTargetStart()
public Position getTargetEnd()
public boolean hasAlignment()
public Alignment getAlignment()
public Optional<Alignment> getAlignmentOpt()
public boolean containsMq()
MQ.MQpublic int getMq()
MQ
as an integer.MQ
as an integerpublic Optional<Integer> getMqOpt()
MQ
as an integer.MQ
as an integerpublic boolean containsMappingQuality()
MQ, for mapping quality.MQ, for mapping qualitypublic int getMappingQuality()
MQ as an integer).MQ as an integer)public Optional<Integer> getMappingQualityOpt()
MQ as an integer).MQ 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 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 containsFc()
FC.FCpublic int getFc()
FC
as an integer.FC
as an integerpublic Optional<Integer> getFcOpt()
FC
as an integer.FC
as an integerpublic boolean containsFragmentCount()
FC, for fragment count.FC, for fragment countpublic int getFragmentCount()
FC as an integer).FC as an integer)public Optional<Integer> getFragmentCountOpt()
FC as an integer).FC as an integer)public boolean containsKc()
KC.KCpublic int getKc()
KC
as an integer.KC
as an integerpublic Optional<Integer> getKcOpt()
KC
as an integer.KC
as an integerpublic boolean containsKmerCount()
KC, for k-mer count.KC, for k-mer countpublic int getKmerCount()
KC as an integer).KC as an integer)public Optional<Integer> getKmerCountOpt()
KC as an integer).KC as an integer)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.