matrix_to_genetable: Convert a caret-friendly matrix into a gene expression data...

Description Usage Arguments Value

View source: R/normalize.R

Description

This function transposes the rna expression table and adds the gene_ids column. Gene expression data tables follow tidy conventions where a separate gene_id column is used in place of row names. Caret expects explanatory variables (in this case genes) to be columns.

Usage

1
matrix_to_genetable(expression_matrix, genes_as_cols = TRUE)

Arguments

expression_matrix

A matrix where column names correspond to gene_id.

genes_as_cols

In classical ML, features are columns. Sometimes we have matrices where features (genes) are rows. Set this to FALSE in order to handle this case.

Value

A data table with gene_id as a column.


rmauntz/Larson_cfRNA_DarkChannelBiomarkers documentation built on Jan. 30, 2021, 12:47 a.m.