Description Usage Arguments Value Note Author(s) See Also Examples
This function is same as read.OTU
except using
fread
for loading large data sets.
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 bash command 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 fread.OTU
.
Wen Chen.
1 2 3 4 | ## Not run:
my.OTU <- fread.OTU("path/to/otu")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.