Package picard.annotation
Class Gene
- java.lang.Object
-
- htsjdk.samtools.util.Interval
-
- picard.annotation.Gene
-
- All Implemented Interfaces:
htsjdk.samtools.util.Locatable,Cloneable,Comparable<htsjdk.samtools.util.Interval>,Iterable<Gene.Transcript>
public class Gene extends htsjdk.samtools.util.Interval implements Iterable<Gene.Transcript>
Holds annotation of a gene for storage in an OverlapDetector. May hold multiple transcripts for the same gene. The transcripts must all be relative to the same strand.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classGene.TranscriptA single transcript of a gene.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Gene.TranscriptaddTranscript(String name, int transcriptionStart, int transcriptionEnd, int codingStart, int codingEnd, int numExons)intcompareTo(Gene that)booleanequals(Object other)Iterator<Gene.Transcript>iterator()-
Methods inherited from class htsjdk.samtools.util.Interval
abuts, clone, compareTo, countBases, getContig, getEnd, getIntersectionLength, getName, getSequence, getStart, hashCode, intersect, intersects, isNegativeStrand, isPositiveStrand, length, pad, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
addTranscript
public Gene.Transcript addTranscript(String name, int transcriptionStart, int transcriptionEnd, int codingStart, int codingEnd, int numExons)
-
iterator
public Iterator<Gene.Transcript> iterator()
- Specified by:
iteratorin interfaceIterable<Gene.Transcript>
-
compareTo
public int compareTo(Gene that)
-
equals
public boolean equals(Object other)
- Overrides:
equalsin classhtsjdk.samtools.util.Interval
-
-