read_numi: Read nUMI tab-delimited file

Description Usage Arguments Details Value Examples

Description

Read nUMI tab-delimited file

Usage

1
read_numi(file = NULL, text = NULL, sep = "", ...)

Arguments

file

input file connection

text

optional text input to utils::read.table(), used when there is no file.

...

additional arguments are passed to utils::read.table().

Details

This function is a simple wrapper around utils::read.table() with some follow-up data cleaning to handle optional header row, and sometimes having space delimiter instead of tab.

For most validation checks, NULL is returned. Data is expected to have at least 2 columns, where column 2 has class "numeric" or "integer".

Value

data.frame or NULL if validation checks fail.

Examples

1
2
3
4
library(salsa);
data(oz2_numi_per_cell);
text <- jamba::pasteByRow(oz2_numi_per_cell[1:10,], sep=" ");
read_numi(text=text);

jmw86069/salsa documentation built on May 21, 2019, 10:31 a.m.