Skip to content

Epigenetic regulators of fibrotic transformation in cardiac fibroblasts

License

Notifications You must be signed in to change notification settings

csbg/fibroblast-perturb-seq-analysis

Repository files navigation

Identification of epigenetic regulators of fibrotic transformation in cardiac fibroblasts through bulk and single-cell CRISPR screens.

DOI

This code supplements the upcoming publication by Aguado Alvaro, Garitano, Esser-Skala et al.

Folders

(Not all of these folders appear in the git repository.)

  • data_generated: output files generated by the scripts in this repository
  • data_raw: raw input data
  • doc: project documentation
  • geo_upload_scripts: scripts for uploading raw data to Gene Expression Omnibus
  • metadata: additional required data
  • plots: generated plots
  • renv: R environment data
  • scripts_python: Python scripts
  • scripts_r: R scripts
  • tables: tables exported from scripts

Download data

Create a folder data_raw that will contain raw data in the following subfolders:

Optionally, obtain intermediary data: Extract the contents of data_generated.tgz from Zenodo repository https://doi.org/XXX to folder data_generated.

Analysis workflow

Python

Run Python scripts in order.

R

Run the following scripts in the folder scripts_r in order to run the R analysis pipeline. utils.R contains auxiliary functions and definitions required by several other scripts.

  1. create_sce.R: interface to Python scripts; creates a SingleCellObject with the same data and metadata as the AnnData object
  2. prepare_signatures.R: assemble fibroblast signatures and gene sets for enrichment analysis
  3. run_gsea.R: perform gene set enrichment analysis
  4. plot_signature_scores.R: fibroblast signature scores as heatmaps (figure 6b, S2c, S2d)
  5. plot_signature_enrichments.R: fibroblast enrichments as dotplots (S10a)
  6. plot_ko_distribution.R: UMAPs with knockout distribution (2f, S5)
  7. plot_ko_enrichment.R: summary of knockout enrichment (2g, S6a)
  8. plot_gsea.R: plot GSEA results (S6b)
  9. plot_egr2ko_genes.R: Volcano plot of Egr2-KO vs NTC (S8h)
  10. plot_bulk_rnaseq.R: bulk RNA-seq analysis of patient-derived fibroblasts (6d, e, S10c, d, e)
  11. plot_fap_expression.R: expression of Fab (R15)