Package htsjdk.tribble.gff
Class Gff3BaseData
java.lang.Object
htsjdk.tribble.gff.Gff3BaseData
- All Implemented Interfaces:
Locatable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
getAttribute
(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.int
getEnd()
getId()
getName()
int
getPhase()
double
getScore()
int
getStart()
getType()
getUniqueAttribute
(String key) Most attributes in a GFF file are present just one time in a line, e.g.boolean
hasAttribute
(String key) Returns true if this record contains an attribute for the specified key.int
hashCode()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface htsjdk.samtools.util.Locatable
contains, contigsMatch, getLengthOnReference, overlaps, withinDistanceOf
-
Constructor Details
-
Gff3BaseData
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
getContig
Description copied from interface:Locatable
Gets the contig name for the contig this is mapped to. May return null if there is no unique mapping. -
getSource
-
getType
-
getStart
public int getStart() -
getEnd
public int getEnd() -
getScore
public double getScore() -
getStrand
-
getPhase
public int getPhase() -
getAttributes
-
getAttribute
get the values as List for the key, or an empty list if this key is not present- Parameters:
key
- key whose presence in this map is to be tested- Returns:
- the values as List, or an empty list if this key is not present
-
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
-