|
8 | 8 | ##' relevant elements as a list. \code{phylo} (from the ape package) |
9 | 9 | ##' or \code{phylo4} (from the phylobase package) can be constructed |
10 | 10 | ##' from the elements contained in this list. |
11 | | -##' @title Get all the elements from a NEXUS (or Newick) file |
| 11 | +##' |
| 12 | +##' @title Get the elements from a NEXUS (or Newick) file |
12 | 13 | ##' @param file path to a NEXUS or Newick file |
13 | 14 | ##' @param file.format a character string indicating the type of file |
14 | 15 | ##' to be parsed. |
15 | 16 | ##' @param spacesAsUnderscores In the NEXUS file format white spaces |
16 | | -##' are not allowed in taxa labels and are represented by |
17 | | -##' underscores. Therefore, NCL converts underscores found in taxa |
18 | | -##' labels in the NEXUS file into white spaces (e.g. \code{species_1} |
19 | | -##' will become \code{"species 1"}. If you want to preserve the |
20 | | -##' underscores, set as TRUE, the default). |
21 | | -##' @param char.all If TRUE (default), returns all characters, even |
22 | | -##' those excluded in the NEXUS file (only when NEXUS file contains |
23 | | -##' DATA block). |
| 17 | +##' are not allowed and are represented by underscores. Therefore, NCL |
| 18 | +##' converts underscores found in taxon labels in the NEXUS file into |
| 19 | +##' white spaces (e.g. \code{species_1} will become \code{"species |
| 20 | +##' 1"}). If you want to preserve the underscores, set as \code{TRUE} |
| 21 | +##' (default). This option affects taxon labels, character labels and |
| 22 | +##' state labels. |
| 23 | +##' @param char.all If \code{TRUE} (default), returns all characters, |
| 24 | +##' even those excluded in the NEXUS file (only when NEXUS file |
| 25 | +##' contains DATA block). |
24 | 26 | ##' @param polymorphic.convert If TRUE (default), converts polymorphic |
25 | 27 | ##' characters to missing data (only when NEXUS file contains DATA |
26 | 28 | ##' block). |
|
35 | 37 | ##' Lewis, P. O. 2003. NCL: a C++ class library for interpreting data |
36 | 38 | ##' files in NEXUS format. Bioinformatics 19 (17) : 2330-2331. |
37 | 39 | ##' @author Francois Michonneau |
38 | | -##' @seealso For example on how to use the elements from the list |
| 40 | +##' @seealso For examples on how to use the elements of the list |
39 | 41 | ##' returned by this function to build tree objects, inspect the |
40 | | -##' source code of this package and how \code{read_newick_phylo} and |
41 | | -##' \code{read_nexus_phylo} work. For a more complex example that also |
42 | | -##' use the data contained in NEXUS files, inspect the source code of |
43 | | -##' the \code{readNCL} function in the phylobase package. |
| 42 | +##' source code of this package, in particular how |
| 43 | +##' \code{read_newick_phylo} and \code{read_nexus_phylo} work. For a |
| 44 | +##' more complex example that also use the data contained in NEXUS |
| 45 | +##' files, inspect the source code of the \code{readNCL} function in |
| 46 | +##' the phylobase package. |
44 | 47 | ##' @return A list that contains the elements extracted from a NEXUS |
45 | 48 | ##' or a Newick file. |
46 | 49 | ##' |
|
0 commit comments