public class Gff3FeatureImpl extends java.lang.Object implements Gff3Feature
| Constructor and Description |
|---|
Gff3FeatureImpl(Gff3BaseData baseData) |
Gff3FeatureImpl(java.lang.String contig,
java.lang.String source,
java.lang.String type,
int start,
int end,
java.lang.Double score,
Strand strand,
int phase,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> attributes) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCoFeature(Gff3FeatureImpl coFeature)
Add a feature as a coFeature of this feature.
|
void |
addParent(Gff3FeatureImpl parent) |
boolean |
equals(java.lang.Object other) |
java.util.Set<Gff3FeatureImpl> |
flatten()
flatten this feature and all descendents into a set of features
|
java.util.Set<Gff3FeatureImpl> |
getAncestors()
Get set of all features this feature descends from, through chains of Parent attributes.
|
Gff3BaseData |
getBaseData()
Get BaseData object which contains all the basic information of the feature
|
java.util.Set<Gff3FeatureImpl> |
getChildren()
Gets set of features for which this feature is a parent
|
java.util.Set<Gff3FeatureImpl> |
getCoFeatures()
Get set of co-features.
|
java.util.Set<Gff3FeatureImpl> |
getDescendents()
Get set of all features descended from this features, through chains of Parent attributes.
|
java.util.Set<Gff3FeatureImpl> |
getParents()
Gets set of parent features
|
java.util.Set<Gff3FeatureImpl> |
getTopLevelFeatures()
Get the set of top level features from which this feature is descended
|
boolean |
hasChildren() |
boolean |
hasCoFeatures() |
int |
hashCode() |
boolean |
hasParents() |
boolean |
isTopLevelFeature() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetAliases, getAttribute, getAttributes, getContig, getEnd, getID, getName, getPhase, getScore, getSource, getStart, getStrand, getTypecontains, contigsMatch, getLengthOnReference, overlaps, withinDistanceOfpublic Gff3FeatureImpl(java.lang.String contig,
java.lang.String source,
java.lang.String type,
int start,
int end,
java.lang.Double score,
Strand strand,
int phase,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> attributes)
public Gff3FeatureImpl(Gff3BaseData baseData)
public java.util.Set<Gff3FeatureImpl> getTopLevelFeatures()
getTopLevelFeatures in interface Gff3Featurepublic boolean isTopLevelFeature()
isTopLevelFeature in interface Gff3Featurepublic java.util.Set<Gff3FeatureImpl> getParents()
getParents in interface Gff3Featurepublic java.util.Set<Gff3FeatureImpl> getChildren()
getChildren in interface Gff3Featurepublic Gff3BaseData getBaseData()
Gff3FeaturegetBaseData in interface Gff3Featurepublic java.util.Set<Gff3FeatureImpl> getAncestors()
getAncestors in interface Gff3Featurepublic java.util.Set<Gff3FeatureImpl> getDescendents()
getDescendents in interface Gff3Featurepublic java.util.Set<Gff3FeatureImpl> getCoFeatures()
getCoFeatures in interface Gff3Featurepublic boolean hasParents()
hasParents in interface Gff3Featurepublic boolean hasChildren()
hasChildren in interface Gff3Featurepublic boolean hasCoFeatures()
hasCoFeatures in interface Gff3Featurepublic void addParent(Gff3FeatureImpl parent)
public void addCoFeature(Gff3FeatureImpl coFeature)
coFeature - feature to add as this features coFeaturepublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.util.Set<Gff3FeatureImpl> flatten()
flatten in interface Gff3Feature