Package org.forester.io.parsers.nhx
Class NHXParser
java.lang.Object
org.forester.io.parsers.nhx.NHXParser
- All Implemented Interfaces:
IteratingPhylogenyParser
,PhylogenyParser
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
final boolean
hasNext()
final Phylogeny
next()
final Phylogeny[]
parse()
static final Phylogeny[]
static final void
parseNHX
(String s, PhylogenyNode node_to_annotate, NHXParser.TAXONOMY_EXTRACTION taxonomy_extraction, boolean replace_underscores, boolean allow_errors_in_distance_to_parent, boolean replace_bell) final void
reset()
final void
setAllowErrorsInDistanceToParent
(boolean allow_errors_in_distance_to_parent) final void
setGuessRootedness
(boolean guess_rootedness) final void
setIgnoreQuotes
(boolean ignore_quotes) final void
setReplaceUnderscores
(boolean replace_underscores) final void
final void
setTaxonomyExtraction
(NHXParser.TAXONOMY_EXTRACTION taxonomy_extraction)
-
Field Details
-
MB_BL_PATTERN
-
MB_PROB_PATTERN
-
MB_PROB_SD_PATTERN
-
NUMBERS_ONLY_PATTERN
-
REPLACE_UNDERSCORES_DEFAULT
public static final boolean REPLACE_UNDERSCORES_DEFAULT- See Also:
-
-
Constructor Details
-
NHXParser
public NHXParser()
-
-
Method Details
-
getName
- Specified by:
getName
in interfacePhylogenyParser
-
getTaxonomyExtraction
-
hasNext
public final boolean hasNext()- Specified by:
hasNext
in interfaceIteratingPhylogenyParser
-
next
- Specified by:
next
in interfaceIteratingPhylogenyParser
- Throws:
NHXFormatException
IOException
-
parse
- Specified by:
parse
in interfacePhylogenyParser
- Throws:
IOException
-
reset
- Specified by:
reset
in interfaceIteratingPhylogenyParser
- Throws:
NHXFormatException
IOException
-
setGuessRootedness
public final void setGuessRootedness(boolean guess_rootedness) -
setIgnoreQuotes
public final void setIgnoreQuotes(boolean ignore_quotes) -
setReplaceUnderscores
public final void setReplaceUnderscores(boolean replace_underscores) -
setSource
- Specified by:
setSource
in interfaceIteratingPhylogenyParser
- Specified by:
setSource
in interfacePhylogenyParser
- Throws:
NHXFormatException
IOException
-
setTaxonomyExtraction
-
setAllowErrorsInDistanceToParent
public final void setAllowErrorsInDistanceToParent(boolean allow_errors_in_distance_to_parent) -
parse
- Throws:
NHXFormatException
IOException
-
parseNHX
public static final void parseNHX(String s, PhylogenyNode node_to_annotate, NHXParser.TAXONOMY_EXTRACTION taxonomy_extraction, boolean replace_underscores, boolean allow_errors_in_distance_to_parent, boolean replace_bell) throws NHXFormatException, PhyloXmlDataFormatException
-