createFPWM: A function to generate an FPWM class object.

Description Usage Arguments Value Examples

View source: R/createFPWM.R

Description

This function creates the FPWM object and performs the fork in the motif.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
createFPWM(
  mainTF = NULL,
  partners = NULL,
  cell = NULL,
  mainTF_MMID = NULL,
  partners_MMID = NULL,
  forkPosition = NULL,
  probabilityMatrix = FALSE,
  scaleFrequencyCounts = FALSE,
  flipMatrix = FALSE
)

Arguments

mainTF

[character] character with the name of the main TF.

partners

[character list or vector] List or character vector with the names of the partner TFs.

cell

[character] with the name of the main TF.

mainTF_MMID

[character] with the name of the main TF.

partners_MMID

[character vector] with the name of the main TF.

forkPosition

[numeric] defines the postion in the matrix where the motif will be forked.

probabilityMatrix

[logical] whether the function should return a frequency matrix or probability matrix (Default FALSE).

scaleFrequencyCounts

[logical] whether the count matrix should have equal rowSums across all the rows (Default FALSE).

flipMatrix

[logical] whether to apply reverse complement in case the core motif is after the forkPosition (Default FALSE).

Value

returns a FPWM class object that can be used to plot or write in transfact format.

Examples

1
fpwm <- createFPWM(mainTF ="CEBPB", partners = c("ATF4","ATF7","JUND","CEBPD"), cell = "K562", forkPosition = 5)

rtmag/forkedTF documentation built on Nov. 5, 2021, 10 a.m.