row_center: row_center

View source: R/MODULE_3_QC_PCA.R

row_centerR Documentation

row_center

Description

Function to center a selected block of a data frame on its row means.

Usage

row_center(x, columns)

Arguments

x

Input data frame containing RNA-seq or Ribo-seq data. Rows are genes/transcripts and columns are samples. The data frame may contain additional columns for gene/transcript ID or other metadata.

columns

A vector specifying the columns to be included for row-centering.

Value

A data frame where the specified columns from the input are row-centered and the rest is intact.

Examples

te_LMCN.v2.cent <- row_center(te_LMCN.v2, columns = c(2:9))

goodarzilab/Ribolog documentation built on Oct. 7, 2022, 10:14 p.m.