add_some_read_statistic_from_bam_metacolumn: Add some statistic of a tag about reads of a BAM file

View source: R/utils.R

add_some_read_statistic_from_bam_metacolumnR Documentation

Add some statistic of a tag about reads of a BAM file

Description

Add some statistic of a tag about reads of a BAM file

Usage

add_some_read_statistic_from_bam_metacolumn(
  input_table,
  col_name,
  galn,
  tag,
  stat
)

Arguments

input_table

A data.frame. The input master table.

col_name

A 1-length string. The name of the new column to add.

galn

A GAlignment object. The alingnment from where the tag is extracted.

tag

A 1-length string. The name of tag that is wanted to calculate the statistic 'stat'. The name must be exactly the same of one column name from 'mcols(galn)'.

stat

A function used to calculate the desired statistic.

Value

A data.frame.


vladimirsouza/lrRNAseqBenchmark documentation built on March 23, 2023, 7:32 a.m.