Class SimpleOrthoPair
- java.lang.Object
-
- org.biojava.bio.program.homologene.SimpleOrthoPair
-
- All Implemented Interfaces:
OrthoPair
public class SimpleOrthoPair extends Object implements OrthoPair
A no-frills implementation of the OrthoPair interface- Author:
- David Huen
-
-
Constructor Summary
Constructors Constructor Description SimpleOrthoPair(Orthologue first, Orthologue second, String ref)constructor for the curated form of an orthology relationshipSimpleOrthoPair(Orthologue first, Orthologue second, SimilarityType type, double percentIdentity)constructor for the computed form of an orthology relationship.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)OrthologuegetFirstOrthologue()gets the first orthologue in the orthology relationship.doublegetPercentIdentity()get percentage identity.StringgetRef()get reference to evidence for orthology.OrthologuegetSecondOrthologue()gets the first orthologue in the orthology relationship.SimilarityTypegetSimilarity()gets the second orthologue in the orthology relationship.
-
-
-
Constructor Detail
-
SimpleOrthoPair
public SimpleOrthoPair(Orthologue first, Orthologue second, SimilarityType type, double percentIdentity)
constructor for the computed form of an orthology relationship.
-
SimpleOrthoPair
public SimpleOrthoPair(Orthologue first, Orthologue second, String ref)
constructor for the curated form of an orthology relationship
-
-
Method Detail
-
getFirstOrthologue
public Orthologue getFirstOrthologue()
Description copied from interface:OrthoPairgets the first orthologue in the orthology relationship.I agree that this access route is somewhat sucky for a symmetric relationship but I'd hate returning a Set of orthologues more and all the fiddling would require.
- Specified by:
getFirstOrthologuein interfaceOrthoPair
-
getSecondOrthologue
public Orthologue getSecondOrthologue()
Description copied from interface:OrthoPairgets the first orthologue in the orthology relationship. This will be the one with the lower TaxonID.- Specified by:
getSecondOrthologuein interfaceOrthoPair
-
getSimilarity
public SimilarityType getSimilarity()
Description copied from interface:OrthoPairgets the second orthologue in the orthology relationship. This will be the one with the higher TaxonID.- Specified by:
getSimilarityin interfaceOrthoPair
-
getPercentIdentity
public double getPercentIdentity()
Description copied from interface:OrthoPairget percentage identity.- Specified by:
getPercentIdentityin interfaceOrthoPair
-
getRef
public String getRef()
Description copied from interface:OrthoPairget reference to evidence for orthology.
-
-