Skip to content

Huang-lab/BEACON

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

BEACON

Overview

BEACON is a computational framework designed to perform Bayesian analysis on expression and gene dependency data across different cell lineages. The model integrates expression as the dependent variable and gene dependency data as the independent variable.

The framework uses JAGS (Just Another Gibbs Sampler) for Bayesian inference and MCMC (Markov Chain Monte Carlo) simulations to estimate parameters of interest, including the correlation between gene expression and dependency.

Features

  • Flexible Data Input: Supports multiple data types such as mRNA, Protein, and RNA transcripts.
  • Customizable Parameters: Users can adjust parameters like number of iterations, adaptation steps, and lineages of interest.
  • Reproducibility: The code can reproduce results or calculate false discovery rates (FDR) based on user inputs; Generates detailed output files with Bayesian analysis results for each lineage.

Installation

  1. Clone the repository:

  2. Install the necessary R packages:

    install.packages(c("openxlsx", "rjags"))
  3. Install JAGS:

Usage

To run the analysis, modify the R scriptS according to your data and parameters. The primary script performs the following steps:

  1. Data Preparation:

    • Load mRNA, Protein, or RNA transcript data.
    • Map and filter data based on lineage and gene selection.
  2. Model Initialization:

    • Initialize the Bayesian model with uninformative priors.
  3. Run MCMC:

    • Perform MCMC simulations for each lineage.
    • Save results to an output directory.
  4. Reproducibility:

    • Optionally reproduce previous results by loading existing data and recalculating FDR.

Example

# Example of running the analysis
n.adapt = 100
n.update = 100
n.iter = 500
reproduce.results = TRUE

# Load and prepare mRNA data
data = 'mRNA'
cell.type = 'All'
panel = ''

# Run the Bayesian analysis for a specific lineage
lineage='SOFT.TISSUE'
# Modify other parameters as necessary
# ...

# Run the analysis
source('LineageMCMC.R')

Output

The analysis generates the following output files:

  • Table.<data>.dependency.Bayesian.lineage.<lineage>.<panel>.xlsx: Summary of Bayesian analysis for each lineage.
  • Log files and intermediate results saved in the specified output directory.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages