Package org.forester.io.parsers.util
Class ParserUtils
java.lang.Object
org.forester.io.parsers.util.ParserUtils
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final Pattern
static final Pattern
static final Pattern
static final Pattern
static final Pattern
static final Pattern
static final Pattern
static final Pattern
static final Pattern
static final Pattern
static final Pattern
static final Pattern
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic final PhylogenyParser
createParserDependingFileContents
(File file, boolean phyloxml_validate_against_xsd) static final PhylogenyParser
createParserDependingOnFileType
(File file, boolean phyloxml_validate_against_xsd) static final PhylogenyParser
createParserDependingOnUrlContents
(URL url, boolean phyloxml_validate_against_xsd) static BufferedReader
createReader
(Object source) static final String
static final String
extractTaxonomyCodeFromNodeName
(String name, NHXParser.TAXONOMY_EXTRACTION taxonomy_extraction) static final String
extractTaxonomyDataFromNodeName
(PhylogenyNode node, NHXParser.TAXONOMY_EXTRACTION taxonomy_extraction) static final String
extractUniprotTaxonomyIdFromNodeName
(String name, NHXParser.TAXONOMY_EXTRACTION taxonomy_extraction) static final Phylogeny[]
readPhylogenies
(File file) static final Phylogeny[]
readPhylogenies
(String file_name)
-
Field Details
-
TAX_CODE
- See Also:
-
TAX_CODE_LO
- See Also:
-
TAXOMONY_CODE_PATTERN_A
-
TAXOMONY_CODE_PATTERN_A_LO
-
TAXOMONY_CODE_PATTERN_BRACKETED
-
TAXOMONY_CODE_PATTERN_PFR
-
TAXOMONY_SN_PATTERN_GENUS
-
TAXOMONY_SN_PATTERN_SN
-
TAXOMONY_SN_PATTERN_SNS
-
TAXOMONY_SN_PATTERN_SNS2
-
TAXOMONY_SN_PATTERN_SP
-
TAXOMONY_SN_PATTERN_STRAIN_1
-
TAXOMONY_SN_PATTERN_STRAIN_2
-
TAXOMONY_SN_PATTERN_STRAIN_SUBSTRAIN
-
-
Constructor Details
-
ParserUtils
public ParserUtils()
-
-
Method Details
-
createParserDependingFileContents
public static final PhylogenyParser createParserDependingFileContents(File file, boolean phyloxml_validate_against_xsd) throws FileNotFoundException, IOException - Throws:
FileNotFoundException
IOException
-
createParserDependingOnFileType
public static final PhylogenyParser createParserDependingOnFileType(File file, boolean phyloxml_validate_against_xsd) throws FileNotFoundException, IOException - Throws:
FileNotFoundException
IOException
-
createParserDependingOnUrlContents
public static final PhylogenyParser createParserDependingOnUrlContents(URL url, boolean phyloxml_validate_against_xsd) throws FileNotFoundException, IOException - Throws:
FileNotFoundException
IOException
-
createReader
- Throws:
IOException
FileNotFoundException
-
extractScientificNameFromNodeName
-
extractTaxonomyCodeFromNodeName
public static final String extractTaxonomyCodeFromNodeName(String name, NHXParser.TAXONOMY_EXTRACTION taxonomy_extraction) -
extractTaxonomyDataFromNodeName
public static final String extractTaxonomyDataFromNodeName(PhylogenyNode node, NHXParser.TAXONOMY_EXTRACTION taxonomy_extraction) throws PhyloXmlDataFormatException - Throws:
PhyloXmlDataFormatException
-
extractUniprotTaxonomyIdFromNodeName
public static final String extractUniprotTaxonomyIdFromNodeName(String name, NHXParser.TAXONOMY_EXTRACTION taxonomy_extraction) -
readPhylogenies
public static final Phylogeny[] readPhylogenies(File file) throws FileNotFoundException, IOException - Throws:
FileNotFoundException
IOException
-
readPhylogenies
public static final Phylogeny[] readPhylogenies(String file_name) throws FileNotFoundException, IOException - Throws:
FileNotFoundException
IOException
-