]> git.donarmstrong.com Git - ape.git/blobdiff - man/read.dna.Rd
new chronos files and a bunch of various improvements
[ape.git] / man / read.dna.Rd
index 19bab40bf68733b013ca7d6b2fa893632d6a9e1e..4cf664ea68b2292797bae09f7c6934827d5fd45a 100644 (file)
@@ -2,6 +2,13 @@
 \alias{read.dna}
 \alias{read.FASTA}
 \title{Read DNA Sequences in a File}
+\description{
+  These functions read DNA sequences in a file, and returns a matrix or a
+  list of DNA sequences with the names of the taxa read in the file as
+  rownames or names, respectively. By default, the sequences are stored
+  in binary format, otherwise (if \code{as.character = "TRUE"}) in lower
+  case.
+}
 \usage{
 read.dna(file, format = "interleaved", skip = 0,
          nlines = 0, comment.char = "#",
@@ -16,11 +23,11 @@ read.FASTA(file)
     \code{"sequential"}, \code{"clustal"}, or \code{"fasta"}, or any
     unambiguous abbreviation of these.}
   \item{skip}{the number of lines of the input file to skip before
-    beginning to read data.}
+    beginning to read data (ignored for FASTA files; see below).}
   \item{nlines}{the number of lines to be read (by default the file is
-    read untill its end).}
+    read untill its end; ignored for FASTA files)).}
   \item{comment.char}{a single character, the remaining of the line
-    after this character is ignored.}
+    after this character is ignored (ignored for FASTA files).}
   \item{as.character}{a logical controlling whether to return the
     sequences as an object of class \code{"DNAbin"} (the default).}
   \item{as.matrix}{(used if \code{format = "fasta"}) one of the three
@@ -30,15 +37,8 @@ read.FASTA(file)
     are of different lengths; (iii) \code{FALSE}: always returns the
     sequences in a list.}
 }
-\description{
-  This function reads DNA sequences in a file, and returns a matrix or a
-  list of DNA sequences with the names of the taxa read in the file as
-  rownames or names, respectively. By default, the sequences are stored
-  in binary format, otherwise (if \code{as.character = "TRUE"}) in lower
-  case.
-}
 \details{
-  This function follows the interleaved and sequential formats defined
+  \code{read.dna} follows the interleaved and sequential formats defined
   in PHYLIP (Felsenstein, 1993) but with the original feature than there
   is no restriction on the lengths of the taxa names. For these two
   formats, the first line of the file must contain the dimensions of the
@@ -72,9 +72,9 @@ read.FASTA(file)
 
   \item{FASTA:}{This looks like the sequential format but the taxa names
     (or rather a description of the sequence) are on separate lines
-    beginning with a `greater than' character ``>'' (there may be
+    beginning with a `greater than' character `>' (there may be
     leading spaces before this character). These lines are taken as taxa
-    names after removing the ``>'' and the possible leading and trailing
+    names after removing the `>' and the possible leading and trailing
     spaces. All the data in the file before the first sequence is ignored.}
 }}
 \value{
@@ -82,7 +82,7 @@ read.FASTA(file)
   stored in binary format, or of mode character (if \code{as.character =
     "TRUE"}).
 
-  \code{read.FASTA} always returns a list.
+  \code{read.FASTA} always returns a list of class \code{"DNAbin"}.
 }
 \references{
   Anonymous. FASTA format description.