X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=forester%2Fjava%2Fsrc%2Forg%2Fforester%2Fphylogeny%2Fdata%2FTaxonomy.java;h=8548fe61c11f4022d7cf5570929ba3c62994bc6c;hb=b84a8ba7a9f12b179ae2a0c83bf8dfd8d1e97540;hp=5d4411daa5c8a44c76293b7b2f4bf5ecb1b08e46;hpb=eee996a6476a1e3d84c07f8f690dcde3ff4b2ef5;p=jalview.git diff --git a/forester/java/src/org/forester/phylogeny/data/Taxonomy.java b/forester/java/src/org/forester/phylogeny/data/Taxonomy.java index 5d4411d..8548fe6 100644 --- a/forester/java/src/org/forester/phylogeny/data/Taxonomy.java +++ b/forester/java/src/org/forester/phylogeny/data/Taxonomy.java @@ -21,7 +21,7 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA // // Contact: phylosoft @ gmail . com -// WWW: www.phylosoft.org/forester +// WWW: https://sites.google.com/site/cmzmasek/home/software/forester package org.forester.phylogeny.data; @@ -35,6 +35,7 @@ import org.forester.io.parsers.phyloxml.PhyloXmlDataFormatException; import org.forester.io.parsers.phyloxml.PhyloXmlMapping; import org.forester.io.parsers.phyloxml.PhyloXmlUtil; import org.forester.util.ForesterUtil; +import org.forester.util.TaxonomyUtil; public class Taxonomy implements PhylogenyData, MultipleUris, Comparable { @@ -46,6 +47,7 @@ public class Taxonomy implements PhylogenyData, MultipleUris, Comparable _uris; + private List _lineage; public Taxonomy() { init(); @@ -108,7 +110,12 @@ public class Taxonomy implements PhylogenyData, MultipleUris, Comparable() ); for( final Uri uri : getUris() ) { @@ -130,6 +142,14 @@ public class Taxonomy implements PhylogenyData, MultipleUris, Comparable() ); + for( final String l : getLineage() ) { + if ( l != null ) { + t.getLineage().add( l ); + } + } + } return t; } @@ -188,7 +208,7 @@ public class Taxonomy implements PhylogenyData, MultipleUris, Comparable lineage ) { + _lineage = lineage; + } + + public List getLineage() { + return _lineage; } }