get_tpm: Calculate TPM (Tags Per Million).

View source: R/general_bioinfo.R

get_tpmR Documentation

Calculate TPM (Tags Per Million).

Description

given the raw counts and length of genomic features this function returns normalized counts as tags per million (TPM).

Usage

get_tpm(counts, lengths)

Arguments

counts

a numeric vector giving counts of reads aligned against genomic intervals.

lengths

a numeric vector giving length of genomic intervals.

Value

a numeric vector giving TPM


cparsania/parcutils documentation built on Oct. 27, 2024, 4:55 a.m.