Description Usage Arguments Value Note Author(s) See Also Examples
Opens the given file and returns a data frame representing the
OTU table. This function use read.table
function
so is quite slow for large data sets, for which we recommend to
use fread.OTU
instead.
1 |
file |
a character vector specifying the file path to your file. |
sep |
the character used to separate cells in the file. |
Returns a data frame with the information from the file. The first row and column are used for the names of the other rows and columns.
The OTU table should only contain classifications for the seven
major taxonomic ranks, additional ranks will break some
functions in the package. To remove those other classifications,
try running sed -i.backup -e 's/s[a-z]__[^;]*;
//g' -e 's/t__[^;]*; //g' $FILE
where $FILE
is your OTU
table. The letter t
can be replaced in the second
expression for any other letter which appears as a prefix. For
example, adding -e 's/u__[^;]*; //g'
before $FILE
would remove any entries formatted like
u__test_classification;
. Additionally, if your OTU table
starts with the entry #OTU ID
, that cell needs to be
removed before the table can be read with read.OTU
.
Wen Chen and Joshua Simpson.
1 2 3 | ## Not run:
my.OTU <- read.OTU("path/to/otu", sep=",")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.