From 674c900e024974cf75807c29a177404146757704 Mon Sep 17 00:00:00 2001 From: cmzmasek Date: Mon, 13 Feb 2017 10:08:47 -0800 Subject: [PATCH] removed lineage --- .../io/parsers/phyloxml/PhyloXmlMapping.java | 1 - .../io/parsers/phyloxml/data/TaxonomyParser.java | 6 ------ .../src/org/forester/phylogeny/data/Taxonomy.java | 18 ------------------ 3 files changed, 25 deletions(-) diff --git a/forester/java/src/org/forester/io/parsers/phyloxml/PhyloXmlMapping.java b/forester/java/src/org/forester/io/parsers/phyloxml/PhyloXmlMapping.java index d9db39d..1db3384 100644 --- a/forester/java/src/org/forester/io/parsers/phyloxml/PhyloXmlMapping.java +++ b/forester/java/src/org/forester/io/parsers/phyloxml/PhyloXmlMapping.java @@ -125,7 +125,6 @@ public final class PhyloXmlMapping { public static final String TAXONOMY_RANK = "rank"; public static final String TAXONOMY_SCIENTIFIC_NAME = "scientific_name"; public static final String TAXONOMY_SYNONYM = "synonym"; - public static final String TAXONOMY_LINEAGE = "lineage"; public static final String TYPE_ATTR = "type"; public static final String URI = "uri"; public static final String URI_DESC_ATTR = "desc"; diff --git a/forester/java/src/org/forester/io/parsers/phyloxml/data/TaxonomyParser.java b/forester/java/src/org/forester/io/parsers/phyloxml/data/TaxonomyParser.java index 74d11df..d226801 100644 --- a/forester/java/src/org/forester/io/parsers/phyloxml/data/TaxonomyParser.java +++ b/forester/java/src/org/forester/io/parsers/phyloxml/data/TaxonomyParser.java @@ -79,12 +79,6 @@ public class TaxonomyParser implements PhylogenyDataPhyloXmlParser { else if ( child_element.getQualifiedName().equals( PhyloXmlMapping.URI ) ) { taxonomy.addUri( ( Uri ) UriParser.getInstance().parse( child_element ) ); } - else if ( child_element.getQualifiedName().equals( PhyloXmlMapping.TAXONOMY_LINEAGE ) ) { - final String[] lineage = child_element.getValueAsString().split( "," ); - if ( lineage != null && lineage.length > 0 ) { - taxonomy.setLineage( Arrays.asList(lineage) ); - } - } } } return taxonomy; diff --git a/forester/java/src/org/forester/phylogeny/data/Taxonomy.java b/forester/java/src/org/forester/phylogeny/data/Taxonomy.java index 24846e4..8548fe6 100644 --- a/forester/java/src/org/forester/phylogeny/data/Taxonomy.java +++ b/forester/java/src/org/forester/phylogeny/data/Taxonomy.java @@ -404,24 +404,6 @@ public class Taxonomy implements PhylogenyData, MultipleUris, Comparable 0 ) { - PhylogenyDataUtil.appendElement( writer, PhyloXmlMapping.TAXONOMY_LINEAGE, sb.toString(), indentation ); - } - } writer.write( ForesterUtil.LINE_SEPARATOR ); writer.write( indentation ); PhylogenyDataUtil.appendClose( writer, PhyloXmlMapping.TAXONOMY ); -- 1.7.10.2