Parse a Newick file into a taxmap object.
parse_newick(file = NULL, text = NULL)
taxmap
(character
of length 1) The file path to the input file. Either file
or text
must be supplied but not both.
(character
of length 1) The raw text to parse. Either file
or text
must be supplied but not both.
The input file has a format like:
(ant:17, (bat:31, cow:22):7, dog:22, (elk:33, fox:12):40);
(dog:20, (elephant:30, horse:60):20):50;
Other parsers:
extract_tax_data()
,
lookup_tax_data()
,
parse_dada2()
,
parse_edge_list()
,
parse_greengenes()
,
parse_mothur_tax_summary()
,
parse_mothur_taxonomy()
,
parse_phylo()
,
parse_phyloseq()
,
parse_qiime_biom()
,
parse_rdp()
,
parse_silva_fasta()
,
parse_tax_data()
,
parse_ubiome()
,
parse_unite_general()