Package org.forester.phylogeny.data
Class Sequence
java.lang.Object
org.forester.phylogeny.data.Sequence
- All Implemented Interfaces:
Comparable<Sequence>,MultipleUris,PhylogenyData
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAnnotation(Annotation annotation) voidaddCrossReference(Accession cross_reference) voidvoidasText()intcopy()Not a deep copy.booleangetAnnotation(int i) getName()getType()getUri(int index) getUris()inthashCode()booleanvoidinit()booleanisEmpty()booleanisEqual(PhylogenyData data) Compares this PhylogenyData to PhylogenyData data.booleanvoidsetAccession(Accession accession) voidvoidsetGeneName(String gene_name) voidsetLocation(String description) voidsetMolecularSequence(String mol_sequence) voidsetMolecularSequenceAligned(boolean aligned) voidvoidsetSourceId(String source_id) voidvoidvoidtoNHX()voidtoPhyloXML(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:
addUriin interfaceMultipleUris
-
asSimpleText
- Specified by:
asSimpleTextin interfacePhylogenyData
-
asText
- Specified by:
asTextin interfacePhylogenyData
-
compareTo
- Specified by:
compareToin interfaceComparable<Sequence>
-
copy
Not a deep copy.- Specified by:
copyin 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:
getUriin interfaceMultipleUris
-
getUris
- Specified by:
getUrisin interfaceMultipleUris
-
hashCode
public int hashCode() -
hasSequenceRelations
public boolean hasSequenceRelations() -
init
public void init() -
isEmpty
public boolean isEmpty() -
isEqual
Description copied from interface:PhylogenyDataCompares this PhylogenyData to PhylogenyData data. In general, this should return true if and only if all fiels are exactly identical.- Specified by:
isEqualin 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:
setUrisin interfaceMultipleUris
-
toNHX
- Specified by:
toNHXin interfacePhylogenyData
-
toPhyloXML
Description copied from interface:PhylogenyDataWrites a phyloXML representation of this phylogeny data.- Specified by:
toPhyloXMLin interfacePhylogenyData- Throws:
IOException
-
toString
-