get_counts: Get count data for an RNA-seq dataset

View source: R/attributes.R

get_countsR Documentation

Get count data for an RNA-seq dataset

Description

get_counts returns a data.frame of counts, either raw or normalised (default)

Usage

get_counts(data, samples = NULL, normalised = FALSE)

Arguments

data

df rna-seq data to get counts from

samples

df a samples df to subset the data to

normalised

logical indicating whether to return normalised counts or raw

Value

data.frame If there is no count data in the supplied data frame (i.e.) no column names containing "count" then NULL is returned

Examples

norm_counts <- get_counts(data)
counts <- get_counts(data, normalised = FALSE)
counts_subset <- get_counts(data, samples)


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