p_values_for_motif: Compute p-values for a single motif.

Description Usage Arguments Value

View source: R/utility.R

Description

Compute p-values for a single motif.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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/atSNP documentation built on Oct. 31, 2020, 4:33 a.m.