read_qiime2_metadata: Read QIIME 2 data

View source: R/read_qiime2.R

read_qiime2_metadataR Documentation

Read QIIME 2 data

Description

Reads TSV or txt files used as QIIME 2 metadata

Usage

read_qiime2_metadata(
  file,
  barcodes = FALSE,
  stringsAsFactors = TRUE,
  run_names = c()
)

Arguments

file

The name of the file(s) which the data are to be read from. After ignoring any redundant headers, each row of the table appears as one line from the file(s). If there is no absolute path, the file name(s) will be relative to the current working directory, getwd(). Tilde-expansion is performed where supported.

This can be a compressed file (see connections).

barcodes

Logical value indicating whether or not to keep barcodes and linker sequences.

stringsAsFactors

Logical: should the character vector be converted to a factor? This tag excludes the first column of sample ID names and any possible description columns (see details below).

run_names

Character vector specifying an identifying name for each run to be read in. This will create a Run column in the resulting data frame

Details

Some details

Value

read_qiime2_metadata returns a data frame from either a single or multiple QIIME2-formatted metadata tables.

Examples

to go here


bramstone/qSIP documentation built on Nov. 22, 2023, 9:11 p.m.