normalise_counts: Adjust RNAseq count data for library size

View source: R/load.R

normalise_countsR Documentation

Adjust RNAseq count data for library size

Description

'normalise_counts()' takes RNAseq count data and produces normalised counts that are adjusted for library size (sequencing depth). The normalised count columns are added to the supplied data frame with column names that are the original column names with " normalised count" appended.

Usage

normalise_counts(rnaseq_data, samples)

Arguments

rnaseq_data

data frame of rnaseq data. Must contain columns labelled "sample count".

samples

data frame of sample metadata. Must included a 'condition' column.

Value

tibble containing the original data and the normalised count columns added

Examples


rnaseq_data <- test_all_data[ , !grepl("normalised", colnames(test_all_data)) ]
rnaseq_data <- normalise_counts(rnaseq_data, samples_data)


richysix/rnaseqtools documentation built on Jan. 26, 2025, 10:14 a.m.