Package org.forester.phylogeny.data
Class Sequence
java.lang.Object
org.forester.phylogeny.data.Sequence
- All Implemented Interfaces:
Comparable<Sequence>
,MultipleUris
,PhylogenyData
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAnnotation
(Annotation annotation) void
addCrossReference
(Accession cross_reference) void
void
asText()
int
copy()
Not a deep copy.boolean
getAnnotation
(int i) getName()
getType()
getUri
(int index) getUris()
int
hashCode()
boolean
void
init()
boolean
isEmpty()
boolean
isEqual
(PhylogenyData data) Compares this PhylogenyData to PhylogenyData data.boolean
void
setAccession
(Accession accession) void
void
setGeneName
(String gene_name) void
setLocation
(String description) void
setMolecularSequence
(String mol_sequence) void
setMolecularSequenceAligned
(boolean aligned) void
void
setSourceId
(String source_id) void
void
void
toNHX()
void
toPhyloXML
(Writer writer, int level, String indentation) Writes a phyloXML representation of this phylogeny data.toString()
-
Constructor Details
-
Sequence
public Sequence() -
Sequence
-
-
Method Details
-
addAnnotation
-
addCrossReference
-
addSequenceRelation
-
addUri
- Specified by:
addUri
in interfaceMultipleUris
-
asSimpleText
- Specified by:
asSimpleText
in interfacePhylogenyData
-
asText
- Specified by:
asText
in interfacePhylogenyData
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Sequence>
-
copy
Not a deep copy.- Specified by:
copy
in interfacePhylogenyData
- Returns:
- a ~deep~ copy of this PhylogenyData
-
equals
-
getAccession
-
getAnnotation
-
getAnnotations
-
getCrossReferences
-
getDomainArchitecture
-
getGeneName
-
getLocation
-
getMolecularSequence
-
getName
-
getSequenceRelations
-
getSourceId
-
getSymbol
-
getType
-
getUri
- Specified by:
getUri
in interfaceMultipleUris
-
getUris
- Specified by:
getUris
in interfaceMultipleUris
-
hashCode
public int hashCode() -
hasSequenceRelations
public boolean hasSequenceRelations() -
init
public void init() -
isEmpty
public boolean isEmpty() -
isEqual
Description copied from interface:PhylogenyData
Compares this PhylogenyData to PhylogenyData data. In general, this should return true if and only if all fiels are exactly identical.- Specified by:
isEqual
in interfacePhylogenyData
- Returns:
- in general, true if and only if all fiels are exactly identical, false otherwise
-
isMolecularSequenceAligned
public boolean isMolecularSequenceAligned() -
setAccession
-
setDomainArchitecture
-
setGeneName
-
setLocation
-
setMolecularSequence
-
setMolecularSequenceAligned
public void setMolecularSequenceAligned(boolean aligned) -
setName
-
setSourceId
-
setSymbol
- Throws:
PhyloXmlDataFormatException
-
setType
- Throws:
PhyloXmlDataFormatException
-
setUris
- Specified by:
setUris
in interfaceMultipleUris
-
toNHX
- Specified by:
toNHX
in interfacePhylogenyData
-
toPhyloXML
Description copied from interface:PhylogenyData
Writes a phyloXML representation of this phylogeny data.- Specified by:
toPhyloXML
in interfacePhylogenyData
- Throws:
IOException
-
toString
-