make_aligned_mats: Align data matrices

Description Usage Arguments Value

View source: R/metagene.R

Description

Centers each gene at a given position within the gene.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
make_aligned_mats(
  data,
  align,
  lengths,
  pwidth,
  filter = NULL,
  binwidth = 1,
  binmethod = c("sum", "mean"),
  bpparam = BiocParallel::bpparam()
)

Arguments

data

Names list of data matrices.

align

Named vector of positions.

lengths

Named vector of gene/ORF lengths. Names must correspond to names of align.

pwidth

Width of the final matrices.

filter

Genes to include. Defaults to all genes.

binwidth

Bin width, if binning is desired.

binmethod

Binning method. sum: Read counts within each bin are summed up; mean: Read counts are averaged.

Value

Named list of matrices. Matrices are of width 2\cdot \textrm{pwidth} + 1, with align in column \textrm{pwidth} + 1.


ilia-kats/RiboSeqTools documentation built on Oct. 5, 2020, 7:41 p.m.