Learn R Programming

DEVis (version 1.0.1)

prep_counts: Read tab or comma delimited count data.

Description

This function takes a count data file and returns the formatted data. Requires that init_data_paths() has been run.

Usage

prep_counts(count_input, delim = "t")

Arguments

count_input

Count data in tab-delimited or comma-delimited (CSV) format, assumes headers exist for each column. Note that column names in the input count file must match row names in the input target metadata file.

delim

Indicate if file is comma or tab delimited. "t" indicated tab delimited and "c" indicates comma separated data. Default: "t"

Value

This function will return a properly formatted count data table based on a provided input file.

See Also

prep_targets, prep_dds_from_data, init_data_paths

Examples

Run this code
# NOT RUN {
#Read a tab-delimited text file as count input.
myCounts <- prep_counts(count_input="master_count_data.txt", delim="t")

# }

Run the code above in your browser using DataLab