How javiersdr/co-expression_analysis works
Project type and purpose
• This is a bioinformatics data-analysis pipeline (not a web app or service).
• Its goal is to perform gene co-expression analysis using two methods: WGCNA and Mfuzz, orchestrated via R Markdown notebooks.
File structure
• Top-level R Markdown workflows:
• Co-expression.Rmd – likely the master pipeline combining both methods
• WGCNA.Rmd – dedicated to WGCNA network analysis
• Mfuzz.Rmd – dedicated to fuzzy clustering with Mfuzz
• configure_WGCNA.R – configuration script where users set paths and parameters for WGCNA
• example/ – contains test input data files:
• CTFnormalisedCPMs-*.tsv – expression matrix
• trait_data.tsv – sample traits for network‐trait correlation
• README.md – high-level overview and instructions to adapt the workflow
README for additional insights
• It confirms this is “a workflow for gene co-expression analysis with WGCNA and Mfuzz.”
• It instructs users to adjust configure_WGCNA.R before running the example.
a. Main components
• Input Data (example TSVs, user-provided expression and trait data)
• Configuration Layer (configure_WGCNA.R)
• Processing Engines (R with these key packages: WGCNA, Mfuzz, tidyverse)
• R Markdown Workflows (Co-expression.Rmd, WGCNA.Rmd, Mfuzz.Rmd)
• Outputs (network modules, cluster assignments, plots, tables)
b. Relationships & interactions
1. User edits configure_WGCNA.R → defines file paths & parameters
2. R Markdown files source configure_WGCNA.R → ingest Input Data
3. WGCNA.Rmd module:
– Pre-processing → adjacency calculation → module detection → module-trait correlations
4. Mfuzz.Rmd module:
– Data standardization → fuzzy c-means clustering → cluster profiles
5. Co-expression.Rmd:
– Calls WGCNA.Rmd and Mfuzz.Rmd in sequence (or integrates their outputs)
6. Final outputs: reports, plots, tables
c. Architectural patterns & principles
• Pipeline pattern: sequential data transformation steps
• Modularization: separate notebooks for each analysis phase
• Configuration abstraction: one script for all environment/parameter settings
d. Key technologies/frameworks
• R / RStudio environment
• R packages: WGCNA, Mfuzz, knitr/rmarkdown, tidyverse
Putting it all together
• Merge outputs from WGCNA.Rmd and Mfuzz.Rmd into Co-expression.Rmd if it integrates them