p_values_for_motif: Compute p-values for a single motif.

View source: R/utility.R

p_values_for_motifR Documentation

Compute p-values for a single motif.

Description

Compute p-values for a single motif.

Usage

p_values_for_motif(
  motif.id,
  par.prior,
  par.transition,
  par.motif.lib,
  par.motif.scores,
  par.testing.mc,
  par.loglik.type,
  par.figdir
)

Arguments

motif.id

The integer index.

par.prior

Prior allele distribution.

par.transition

Transition matrix for the allele sequence.

par.motif.lib

The motif library.

par.motif.scores

Scores in the format of the "motif.scores" field returned by ComputeMotifScores.

par.testing.mc

See testing.mc in ComputePValues.

par.loglik.type

A string for the log-lik type, "max", "mean" or "median".

par.figdir

A string for the path to output figures.

Value

A list object.


chandlerzuo/atIndel documentation built on Jan. 20, 2024, 4:10 a.m.