Code Monkey home page Code Monkey logo

benoukraflab / forkedtf Goto Github PK

View Code? Open in Web Editor NEW

This project forked from matthew-dyer792/forkedtf-dev

1.0 0.0 0.0 11.05 MB

ForkedTF is an R-library that introduces Forked-PMW (FPMW) and Forked-Sequence Logos (F-Logos) to provide a more comprehensive depiction of the sequence affinity of a Transcription factor (TF) of interest, including its DNA sequence and DNA methylation level, along with a segregated list of partner TFs.

License: GNU General Public License v3.0

R 100.00%
binding-sites dna-methylation transcription-factors

forkedtf's Introduction

forkedTF

ForkedTF is an R-library that introduces Forked-PMW (FPMW) and Forked-Sequence Logos (F-Logos) to provide a more comprehensive depiction of the sequence affinity of a TF of interest, including its DNA sequence and DNA methylation level, along with a segregated list of partner TFs. Unlike existing methods that combine binding sites of dimer TFs into a single PWM/logo, FPWM and F-Logo represent the PWM and sequence logos of dimer partners as "forked" from the main TF motif. This unique approach employed by forkedTF enhances the accuracy of PWM models for TF dimers, enriching our understanding of TF cooperativity, and opening up new possibilities for precise TFBS prediction.

Current version: 1.2.0

Installation

Type the following in R console:

install.packages("devtools")
library("devtools")
devtools::install_github("https://github.com/benoukraflab/forkedTF")

Dependencies

Documentation

A detailed description of all forkedTF's features is available here.

Quick usage

MiniCofactor Report

This function helps in the exploration of binding partners in a cell line. Input the mainTF, cell line of interest and the cobinding_threshold to generate a PDF report of the binding partners.

library(forkedTF)
miniCofactorReport(TF = "CEBPB", cell = "K562")

In addition to finding the factor with the highest peak overlap, using the parameter filterBy="q.significance" we can compute a -log10(Adjusted P-value) from an enrichment test as implemented in https://github.com/remap-cisreg/ReMapEnrich

miniCofactorReport(TF = "CEBPB", cell = "K562", filterBy = "q.significance")

FPWM creation and plot

Use the createFPWM function to extract the motif, from empirical datasets, that a TF uses when binding with a partner TF. plotFPWM helps in visualizing the FPWM.

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

plotFPWM(fpwm, pdfName = "fpwm_plot.pdf")

Writing FPWM

Save the FPWM to a local file can be used in matrix scanning or matrix clustering in transfac format or FPWMtransfac format. Transfac format will have a matrix for each interacting partner in the FPWM, while FPWMtransfac will output a single matrix.

write.FPWM(FPWM = fpwm, format = "transfac", fileName = "FPWM.tf")
write.FPWM(FPWM = fpwm, format = "FPWMtransfac", fileName = "FPWM.FPWMtf")

Cite

A manuscript describing forkedTF has been submitted. If you are currently using forkedTF, please cite us as follows:

Tirado-Magallanes R, Ghayour-Khiavi A, Santana-Garcia W, Dyer M, Lin QXX, Usefi H, Jha S, Thomas-Chollier M, Thieffry D, Benoukraf T. Representing Transcription Factor Dimer Binding Sites Using Forked-Position Weight Matrices and Forked-Sequence Logos. version: 1.2.0, 2023, [website: https://github.com/benoukraflab/forkedTF]

License

This project is licensed under GNU General Public License - see LICENSE.txt for details.

forkedtf's People

Contributors

rtmag avatar benoukraflab avatar matthew-dyer792 avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.