fread.OTU: Fast Load Large OTU Table

Description Usage Arguments Value Note Author(s) See Also Examples

Description

This function is same as read.OTU except using fread for loading large data sets.

Usage

1
fread.OTU(file, sep="auto")

Arguments

file

a character vector specifying the file path to your file.

sep

the character used to separate cells in the file.

Value

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.

Note

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.

Author(s)

Wen Chen.

See Also

read.OTU, fread

Examples

1
2
3
4
  ## Not run: 
    my.OTU <- fread.OTU("path/to/otu")
  
## End(Not run)

RAM documentation built on May 2, 2019, 3:04 p.m.