|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectapollo.dataadapter.gff3.GFF3Entry
public class GFF3Entry
This class represents a GFF3 entry
| Field Summary | |
|---|---|
static int |
NUM_FIELDS
expected number of fields |
| Constructor Summary | |
|---|---|
GFF3Entry(SeqFeatureI feat)
Constructs a GFF3Entry |
|
GFF3Entry(java.lang.String data)
Constructs a GFF3Entry |
|
| Method Summary | |
|---|---|
void |
addAttributeValue(java.lang.String name,
java.lang.String value)
Add an attribute |
SeqFeatureI |
createFeature(OBOParser oboParser)
Create the implementing class of AnnotatedFeatureI given the type |
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getAttributes()
Get all attributes |
java.util.List<java.lang.String> |
getAttributeValues(java.lang.String attrName)
Get a list of attribute values for a given attribute name |
int |
getEnd()
Get the end of the feature on the reference sequence |
java.lang.String |
getId()
Get the feature ID |
java.lang.String |
getName()
Get the feature name |
int |
getPhase()
Get the feature phase |
java.lang.String |
getReferenceId()
Get the reference sequence ID |
double |
getScore()
Get the feature score |
java.lang.String |
getSource()
Get the source for the feature |
int |
getStart()
Get the start of the feature on the reference sequence |
int |
getStrand()
Get the strand of the feature on the reference sequence |
java.lang.String |
getType()
Get the type of feature |
boolean |
isAnnotation()
Check whether this feature is annotation (evidence otherwise) |
boolean |
isNameSet()
Check if the feature name is set |
boolean |
isOneLevelAnnotation()
Check to see if entry is for a one-level annotation |
boolean |
isPhaseSet()
Checks whether the phase has been set for this feature |
boolean |
isScoreSet()
Checks whether the score has been set for this feature |
boolean |
isThreeLevelAnnotation()
Check to see if entry is for a three-level annotation |
void |
setEnd(int end)
Set the end of the feature on the reference sequence |
void |
setId(java.lang.String id)
Set the feature ID |
void |
setPhase(int phase)
Set the feature phase |
void |
setScore(double score)
Set the feature score |
void |
setSource(java.lang.String src)
Set the source for the feature |
void |
setStart(int start)
Set the start of the feature on the reference sequence |
void |
setType(java.lang.String type)
Set the type of feature |
java.lang.String |
toString()
Convert this entry object to a GFF3 tab delimited entry |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int NUM_FIELDS
| Constructor Detail |
|---|
public GFF3Entry(java.lang.String data)
data - - tab delimited datapublic GFF3Entry(SeqFeatureI feat)
feat - - SeqFeatureI object| Method Detail |
|---|
public java.lang.String getReferenceId()
public java.lang.String getSource()
public void setSource(java.lang.String src)
src - - source for the featurepublic java.lang.String getType()
public void setType(java.lang.String type)
type - - type of featurepublic int getStart()
public void setStart(int start)
start - - start of the featurepublic int getEnd()
public void setEnd(int end)
end - - end of featurepublic int getStrand()
public double getScore()
public void setScore(double score)
score - - feature scorepublic int getPhase()
public void setPhase(int phase)
phase - - feature phasepublic boolean isScoreSet()
public boolean isPhaseSet()
public java.util.List<java.lang.String> getAttributeValues(java.lang.String attrName)
attrName - - name of attribute
public void addAttributeValue(java.lang.String name,
java.lang.String value)
name - - attribute namevalue - - attribute valuepublic java.util.Map<java.lang.String,java.util.List<java.lang.String>> getAttributes()
public void setId(java.lang.String id)
id - - feature idpublic java.lang.String getId()
public java.lang.String getName()
public boolean isNameSet()
public SeqFeatureI createFeature(OBOParser oboParser)
throws java.lang.ClassNotFoundException,
java.lang.InstantiationException,
java.lang.IllegalAccessException
oboParser - - OBO parser to be used for mapping SO types to Apollo datamodel types
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean isOneLevelAnnotation()
public boolean isThreeLevelAnnotation()
public boolean isAnnotation()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||