@Immutable public final class Link extends Gfa1Record
| Constructor and Description |
|---|
Link(Reference source,
Reference target,
String overlap,
Map<String,Tag> tags)
Create a new link GFA 1.0 record.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsFc()
Return true if the tags for this link contain
the reserved key
FC. |
boolean |
containsFragmentCount()
Return true if the tags for this link contain
the reserved key
FC, for fragment count. |
boolean |
containsId()
Return true if the tags for this segment contain
the reserved key
ID. |
boolean |
containsKc()
Return true if the tags for this link contain
the reserved key
KC. |
boolean |
containsKmerCount()
Return true if the tags for this link contain
the reserved key
KC, for k-mer count. |
boolean |
containsMappingQuality()
Return true if the tags for this link contain
the reserved key
MQ, for mapping quality. |
boolean |
containsMismatchCount()
Return true if the tags for this link contain
the reserved key
NM, for mismatch count. |
boolean |
containsMq()
Return true if the tags for this link contain
the reserved key
MQ. |
boolean |
containsNm()
Return true if the tags for this link contain
the reserved key
NM. |
boolean |
containsRc()
Return true if the tags for this link contain
the reserved key
RC. |
boolean |
containsReadCount()
Return true if the tags for this link contain
the reserved key
RC, for read count. |
boolean |
equals(Object o) |
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 link (Type=i value for
the reserved key
FC as an integer). |
Optional<Integer> |
getFragmentCountOpt()
Return an optional wrapping the fragment count for this link
(Type=i value for the reserved key
FC as an integer). |
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 |
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 link (Type=i value for
the reserved key
KC as an integer). |
Optional<Integer> |
getKmerCountOpt()
Return an optional wrapping the k-mer count for this link
(Type=i value for the reserved key
KC as an integer). |
int |
getMappingQuality()
Return the mapping quality for this link (Type=i value for
the reserved key
MQ as an integer). |
Optional<Integer> |
getMappingQualityOpt()
Return an optional wrapping the mapping quality for this link
(Type=i value for the reserved key
MQ as an integer). |
int |
getMismatchCount()
Return the mismatch count for this link (Type=i value for
the reserved key
NM as an integer). |
Optional<Integer> |
getMismatchCountOpt()
Return an optional wrapping the mismatch count for this link
(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. |
String |
getOverlap()
Return the overlap in cigar format for this link, if any.
|
Optional<String> |
getOverlapOpt()
Return an optional wrapping the overlap in cigar format for this link.
|
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 link (Type=i value for
the reserved key
RC as an integer). |
Optional<Integer> |
getReadCountOpt()
Return an optional wrapping the read count for this link
(Type=i value for the reserved key
RC as an integer). |
Reference |
getSource()
Return the source reference for this link.
|
Reference |
getTarget()
Return the target reference for this link.
|
int |
hashCode() |
boolean |
hasOverlap()
Return true if this link has an overlap in cigar format.
|
String |
toString() |
static Link |
valueOf(String value)
Parse a link 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 Reference getSource()
public Reference getTarget()
public boolean hasOverlap()
public String getOverlap()
public Optional<String> getOverlapOpt()
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 containsId()
ID.IDpublic String getId()
ID
as a string.ID
as a stringpublic Optional<String> getIdOpt()
ID
as a string.ID
as a stringCopyright © 2013–2020 dishevelled.org. All rights reserved.