aggregate_duplicated_transcripts_sc: Aggregates multiple counts from the same samples/cells (e.g.,...

View source: R/functions_sc.R

aggregate_duplicated_transcripts_scR Documentation

Aggregates multiple counts from the same samples/cells (e.g., from isoforms) This function aggregates counts over samples, concatenates other character columns, and averages other numeric columns

Description

Aggregates multiple counts from the same samples/cells (e.g., from isoforms) This function aggregates counts over samples, concatenates other character columns, and averages other numeric columns

Usage

aggregate_duplicated_transcripts_sc(
  .data,
  aggregation_function = sum,
  .sample,
  .cell,
  .transcript,
  .abundance,
  keep_integer = T
)

Arguments

.data

A tibble

aggregation_function

A function for counts aggregation (e.g., sum)

.sample

A character name of the sample column

.transcript

A character name of the gene/transcript name column

.abundance

A character name of the count column

Value

A tibble with aggregated genes and annotation


stemangiola/ttSc documentation built on Dec. 8, 2022, 2:37 a.m.