prep_count_matrix: prep_count_matrix

Description Usage Arguments Value

View source: R/prep_count_matrix.R

Description

Prepares an integer count matrix from a data frame of normalized counts so the data may be used by functions requiring matrix inputs.

Usage

1
prep_count_matrix(data, group_1, group_2, gene_column)

Arguments

data

A data frame of normalized count data (can contain negative values).

group_1

A character vector naming the columns that belong to group 1.

group_2

A character vector naming the columns that belong to group 2.

gene_column

A character string naming the column containing gene names.

Value

A matrix of integer counts with any negative values set to zero - rownames equal gene names.


alextkalinka/delboy documentation built on Feb. 2, 2022, 4:19 p.m.