write.FPWM: Writes the FPWM in transfac or FPWMtransfac format

Description Usage Arguments Value Examples

View source: R/write.FPWM.R

Description

This function saves the FPWM in transfac format.

Usage

1
write.FPWM(FPWM = NULL, format = "transfac", fileName = NULL)

Arguments

FPWM

FPWM object.

format

[character] the "transfac" option will output a standard transfact matrix per binding partner. The "FPWMtransfac" prints a single matrix with all the binding partners in FPWM format.

fileName

[character] name of the file where the FPWM is going to be written.

Value

A plain text file with the FPWM in transfac or FPWMtransfac format.

Examples

1
2
3
fpwm <- createFPWM(mainTF ="CEBPB",partners = c("ATF4","ATF7","ATF3"), cell = "K562", forkPosition = 5)
write.FPWM(FPWM = fpwm, format = "transfac", fileName = "FPWM.transfact" )
write.FPWM(FPWM = fpwm, format = "FPWMtransfac", fileName = "FPWM.FPWMtransfac" )

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