group_mean_cds_length: Average the cds length over known transcripts for a single...

View source: R/annotation_shared.R

group_mean_cds_lengthR Documentation

Average the cds length over known transcripts for a single gene.

Description

Average the cds length over known transcripts for a single gene.

Usage

group_mean_cds_length(
  annot,
  gene_column = "ensembl_gene_id",
  tx_column = "ensembl_transcript_id",
  length_column = "cds_length"
)

Arguments

annot

Dataframe of annotations.

gene_column

Column containing the gene IDs.

tx_column

Column containing the transcript IDs.

length_column

Column containing the cds lengths.

Value

The annotations with a new column 'mean_cds_len' at the end.


elsayed-lab/hpgltools documentation built on May 9, 2024, 5:02 a.m.