No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
R
data
inst/doc
man
vignettes
DESCRIPTION
NAMESPACE
NEWS
README.md

README.md

FunTFPair

# Introduction # Summary: Transcription factors (TFs) are fundamental regulators of gene expression and generally function in a complex and coopera-tive manner. Identifying context-dependent cooperative TFs is es-sential for understanding how cells respond to environmental change. The huge amount of various omics data currently available, providing genome-wide physical binding and functional effect information about transcription, holds a great opportunity to study TF cooperativity. Here we developed an R package, FunTFPair, which provides an easy and powerful way to identify condition-specific TF pairs by integrating transcription factor binding sites from ENCODE and gene expression profiles from GEO. Users only need to provide the GEO ID that they are interested in. FunTFPair will automatically retrieve the expression profiles of the input GEO ID, get TF targets from ENCODE, and identify TF pairs whose common targets show statistically significant differences under changed experimental conditions or exhibit coordinated transcription in a specific condition. The functional TF pairs and their relative importance will be reported in a TF cooperation network. Two datasets from GEO are used as examples to demonstrate the usage and reliability of the package.

Availability and Implementation: FunTFPair is implemented in the R language. The source code is provided at https://github.com/slzhao/FunTFPair. A more detailed vignette is also released along with the package.

# Required packages # FunTFPair package requires some other R packages, including limma, biomaRt, GEOquery and igraph. If you haven't installed them in your computer, you can use the following R codes to install them:
#Running the following codes in your R	
install.packages("igraph")
source("http://bioconductor.org/biocLite.R")
biocLite(pkgs=c("limma","biomaRt","GEOquery","annotate"))
# Download and install # You can download and install FunTFPair package from [github](https://github.com/slzhao/FunTFPair) by the following R codes.
#Running the following codes in your R
install.packages("devtools")
library(devtools)
install_github("slzhao/FunTFPair")
# Browse vignette # A vignette, which included introduction for functions, executable examples and description for TF cooperative network result, was also provided with this package. You can use the following R codes to browse it:
#View the vignette
browseVignettes("FunTFPair")
# Examples # After you have installed FunTFPair package. You can enter R and use following R codes to perform the examples for it.
#Load package
library("FunTFPair")

###############################
#Differential analysis based functional TF pairs identification
############################## 
#Download GEO dataset
dataMatrix<-prepareGeoData(GEO="GDS2213")
#Choose the TF pairs in HEPG2 cells
tfPairsUsed<-pairs2TargetRemDup[which(pairs2TargetRemDup[,3]=="HEPG2"),]
#Differential analysis
enrichTargetResult<-differentialAnalysis(dataMatrix,groups=c(rep("untreated",4),rep("aza",4),rep("TSA",4),rep("azaAndTSA",4)),contrasts=c("aza-untreated","TSA-untreated","azaAndTSA-untreated"),pairs2Target=tfPairsUsed)
#Network visualization for aza vs untreated
enrichTargetResultNetwork1<-networkVis(enrichTargetResult[[1]])
#Network visualization for azaAndTSA vs untreated
enrichTargetResultNetwork3<-networkVis(enrichTargetResult[[3]])

###############################
#Correlation analysis based functional TF pairs identification
##############################
#Download GEO dataset
dataMatrix<-prepareGeoData(GEO="GSE54698",geneSymColumnName="GENE_SYMBOL")
dataMatrixUsed1<-dataMatrix[,1:12]
dataMatrixUsed2<-dataMatrix[,c(13:24)]
#Choose the TF pairs in HELA cells
tfPairsUsed<-pairs2TargetRemDup[which(pairs2TargetRemDup[,3]=="HELAS3"),]
#Correlation analysis
correlationResult1<- correlationAnalysis(dataMatrixUsed1,pairs2Target=tfPairsUsed,n=100)
correlationResult2<-   correlationAnalysis(dataMatrixUsed2,pairs2Target=tfPairsUsed,n=100)
#Network visualization for control samples
correlationResultNew1Network<-networkVis(correlationResult1)
#Network visualization for infected samples
correlationResultNew2Network<-networkVis(correlationResult2)