get_cols: Get columns from an RNA-seq dataset

View source: R/attributes.R

get_colsR Documentation

Get columns from an RNA-seq dataset

Description

get_cols is a helper function to get either counts, normalised counts or tpm from an RNA-seq data frame

Usage

get_cols(data, samples = NULL, cols = ".counts?$")

Arguments

data

df rna-seq data to get columns from

samples

df a samples df to subset the data to

cols

Str to use as a search term

Value

data.frame If there no matching columns in the supplied data frame then NULL is returned

Examples

counts <- get_cols(data, samples, ".counts?$")
norm_counts <- get_cols(data, samples, ".normalised.counts?$")
tpm <- get_cols(data, samples, ".tpms?$")


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