read_dir: read a directory of tsv files

Description Usage Arguments Value See Also Examples

View source: R/read_dir.R

Description

Given a directory of tsv files, read_dir() will read in each file and merge them into a single matrix. A dgCMatrix-class matrix will be returned if the directory is named genefamilies_relab and a matrix will be returned in all other cases. In either case, the matrix will be returned as a named list element with the correct name to be used when uploading to AWS S3.

Usage

1
read_dir(dir_path)

Arguments

dir_path

path to a directory of tsv files generated by the high load pipeline

Value

A single-element named list (see above) with a dgCMatrix-class matrix or a matrix.

See Also

save_rda()

Examples

1
2
3
4
5
## Not run: 

read_dir("~/AsnicarF_2017/genefamilies_relab/")

## End(Not run)

waldronlab/curatedMetagenomicDataPipeline documentation built on Oct. 15, 2021, 6:38 a.m.