Learn R Programming

SQMtools (version 1.6.3)

exportTable: Export results in tabular format

Description

This function is a wrapper for R's write.table function.

Usage

exportTable(table, output_name)

Value

No return value, but a table is produced in the current working directory.

Arguments

table

vector, matrix or data.frame. The table to be written.

output_name

character. Name of the output file.

Examples

Run this code
# \donttest{
data(Hadza)
Hadza.iron = subsetFun(Hadza, "iron")
# Write the taxonomic distribution at the genus level of all the genes related to iron.
exportTable(Hadza.iron$taxa$genus$percent, "Hadza.ironGenes.genus.tsv")
# Now write the distribution of the different iron-related COGs
#  (Clusters of Orthologous Groups) across samples.
exportTable(Hadza.iron$functions$COG$tpm, "Hadza.ironGenes.COG.tsv")
# Now write all the information contained in the ORF table.
exportTable(Hadza.iron$orfs$table, "Hadza.ironGenes.orftable.tsv")
# }

Run the code above in your browser using DataLab