Class Gff3BaseData
java.lang.Object
htsjdk.tribble.gff.Gff3BaseData
- All Implemented Interfaces:
Locatable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetAttribute(String key) get the values as List for the key, or an empty list if this key is not presentGets the contig name for the contig this is mapped to.intgetEnd()getId()getName()intgetPhase()doublegetScore()intgetStart()getType()getUniqueAttribute(String key) Most attributes in a GFF file are present just one time in a line, e.g.booleanhasAttribute(String key) Returns true if this record contains an attribute for the specified key.inthashCode()Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Locatable
contains, contigsMatch, getLengthOnReference, overlaps, withinDistanceOf
-
Constructor Details
-
Gff3BaseData
-
-
Method Details
-
equals
-
hashCode
-
getContig
-
getSource
-
getType
-
getStart
-
getEnd
-
getScore
public double getScore() -
getStrand
-
getPhase
public int getPhase() -
getAttributes
-
getAttribute
-
hasAttribute
Returns true if this record contains an attribute for the specified key.- Parameters:
key- key whose presence in this map is to be tested- Returns:
- true if this map contains an attribute for the specified key
-
getUniqueAttribute
Most attributes in a GFF file are present just one time in a line, e.g. : gene_biotype, gene_name, etc ... This function returns an Optional.empty if the key is not present, an Optional.of(value) if there is only one value associated to the key, or it throws an IllegalArgumentException if there is more than one value.- Parameters:
key- key whose presence in the attributes is to be tested- Returns:
- Optional<String> if this map contains zero or one attribute for the specified key
- Throws:
IllegalArgumentException- if there is more than one value
-
getId
-
getName
-
getAliases
-