Code Monkey home page Code Monkey logo

cetf's Introduction

CeTF

An implementation of PCIT and RIF analysis in R

Overview

This package provides the necessary instructions for performing the Partial Correlation coefficient with Information Theory (PCIT) from Reverter and Chan 2008 and Regulatory Impact Factors (RIF) from Reverter et al. 2010 algorithm. The PCIT algorithm identifies meaningful correlations to define edges in a weighted network. The algorithm can be applied to any correlation-based network including but not limited to gene co-expression networks. While the RIF algorithm identify critical transcript factors (TF) from gene expression data. These two algorithms when combined provide a very relevant layer of information for gene expression studies (Microarray, RNA-seq and single-cell RNA-seq data).

Installation

To properly run ceTF package is necessary to install some dependencies. For Linux users is necessary to install the following dependencies:

  • libcurl4-openssl-dev
  • libxml2-dev
  • libssl-dev
  • gfortran
  • build-essential
  • libz-dev
  • zlib1g-dev

To install R packages dependencies, run:

#CRAN dependencies
packagesCRAN <- c('BiocManager', 'crayon', 'dplyr', 'geomnet', 'GGally', 'ggplot2', 'ggpubr', 'ggrepel', 'kableExtra', 'knitr', 'network', 'pbapply', 'reshape2', 'rmarkdown', 'scales', 'testthat', 'tidyr')
install.packages(packagesCRAN[!packagesCRAN %in% installed.packages()[,1]])

#Bioconductor dependencies
packagesBioc <- c('airway', 'clusterProfiler', 'DESeq2', 'org.Hs.eg.db', 'SummarizedExperiment')
BiocManager::install(packagesBioc[!packagesBioc %in% installed.packages()[,1]])

Finally, to install ceTF package:

devtools::install_github("cbiagii/ceTF")

Docker

To install docker follow the instructions in the links below depending on your operating system

Docker pull

Once docker is installed, the next step is pull the ceTF image from dockerhub using the following command:

docker pull biagii/ceTF:0.99.0

Running image

There are several differents parameters to run the downloaded image. The most commom way is executing the following command:

docker run --rm -d -p PORT:PORT -e PASSWORD=password --name [ANY_NAME] -v /server/path/:/docker/path/ -e USERID=$UID biagii/ceTF:0.99.0

Once the docker image is running, the Rstudio interface with all the necessary dependencies will be made available, and of course the ceTF package, installed ready for use.

Help

Any questions contact the developer by email: [email protected]

cetf's People

Contributors

brenoosvaldofunicheli avatar cbiagii avatar jwokaty avatar nturaga avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cetf's Issues

PCIT function slow

Hi CeTF authors
I'm testing your PCIT function with a correlation matrix (I give the original dataframe an it's converted to this matrix) of 1000x1000 elements and the function take several minutes to complete. I want to use this function with 10/20 times the size of this test. How I can speed up this process? The original PCIT package did parallelize the computation and the results were obtained in a reasonable time. Is this a complete new implementation?

Thank you in advance
Pedro Seoane

PCIT on 3 samples

Has anyone else tried running PCIT on 3 samples and run into some issues with the PCIT output values? When I did, I got lots of zeros for the corr2 values and, in turn, this reduced the amount of Key TF's with freq and freq.diff values. PCIT works fine for me with 5 samples.

Thanks!

Does RIF scores in CETF are provided as RIF Z-scores ?

Dear maintainers,
I was very enthusiastic about cetf package and want to thank you for this useful package.
I have two questions about this package:
Question 1 : I was wondering if the RIF scores providing in the RIF analysis are RIF Zscores ? Or do we have to transform the RIF score in Zscores by ourself?
Question 2 : I was wondering if it is possible to use it with paired samples ie I have two conditions (CTRL and TRT) but I want to take into account the fact that for each animal, we have the CTRL and the TRT samples.
So I have 10 animals : (from A1 to A10) and 10 samples control and 10 samples treated.
In DESeq2 my design is as follow :
Design(dds)<-~animal + treatment.
I’m blocked in CeTF pipeline because I don’t know how to explain to CeTF such a case ...can you help me please ?
Last but not least, I would recommend in the vignette to start by RIF analysis than PCIT one. Because at first, we identified TFs in our dataset and then perform PCIT analysis.
Thanks you in advance for yours answers.

question about RIF and PCIT

Hi CeTF authors
I used the PCIT and RIF algorithm a long time until the PCIT package was removed in R4. When I applied the RIF processing to my data, I performed first the PCIT algorithm onto the correlation matrix to keep only the significant connections. Checking your RIF function code, I cannot found any call to PCIT. Is it encapsulated in any other function or you don´t apply PCIT for RIF calculation?
Thank you in advance
Pedro Seoane

Single cell

Dear, I am trying to analyze scRNA data but I have some issues. Could you please tell me how to input the data?
Thanks

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.