- R 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| data | ||
| scripts | ||
| LICENSE | ||
| README.md | ||
Apollo Cone Development Metabolomics Analysis
Description
This repository contains R scripts and processed data used for metabolomics analysis of hop (Humulus lupulus) cone development. The workflow integrates LC-MS, GC-MS, and molecular networking data to generate clustering, dendrograms, and chemical classification results.
The code is primarily intended to reproduce the analyses and figures associated with this study, rather than serve as a general-purpose pipeline.
Repository Structure
.
├── data/
│ ├── input/ # Raw and intermediate input tables
│ └── output/ # Processed data and analysis outputs
├── scripts/
│ └── Apollo_cone_development_metabolomics.R
├── LICENSE
Data Description
Input (data/input/)
Contains raw and intermediate data used for analysis:
- LC-MS and GC-MS intensity tables (MZmine exports)
- Internal standard normalization files
- Sample metadata (
2023_APO_SAMPLEINFO.txt) - Molecular networking inputs (FBMN, MNE, NAP outputs)
- Reference compound database (
HOP_REFCMPD_ISDB.txt)
Output (data/output/)
Contains processed datasets and results generated by the script:
- Normalized metabolomics datasets (
*.Rdata,*.Rds) - Merged LC-MS and GC-MS datasets
- Molecular networking outputs
- Clustering results and dendrogram trees (
*.newick)
Workflow Overview
The main script performs the following steps:
1. LC-MS Data Processing
-
Load and clean MZmine output
-
Remove blanks and empty features
-
Normalize using:
- internal standards
- sample weight
-
Generate normalized datasets
2. Molecular Networking Integration
- Integrate FBMN, NAP, and MolNetEnhancer outputs
- Assign compound annotations and classification levels
- Generate merged molecular networking dataset
3. Chemical Classification Analysis
- Summarize compound classes
- Generate pie chart visualization
4. Subnetwork Analysis
- Import Cytoscape-exported subnetworks
- Cluster and visualize expression patterns
5. GC-MS Data Processing
- Normalize GC-MS data using internal standards and weights
- Generate dendrograms
6. LC-MS + GC-MS Integration
- Merge datasets
- Perform hierarchical clustering
- Identify clusters using dynamic tree cut
How to Run
- Clone the repository
- Open the script:
scripts/Apollo_cone_development_metabolomics.R
- Ensure required R packages are installed:
ggplot2, dplyr, tidyverse, reshape2, WGCNA, ape, dynamicTreeCut, factoextra, etc.
-
Set working directory to the repository root (or use relative paths)
-
Run the script step-by-step or as a whole
Notes
- The script was originally written with a fixed working directory. This has been removed for portability.
- All file paths are relative and assume execution from the repository root.
- Some steps (e.g. Cytoscape subnetwork analysis) require external preprocessing not included here.
Reproducibility
All input data required to reproduce the analyses are included in this repository. Outputs provided in data/output/ correspond to results generated by the script.
License
This project is licensed under the terms of the LICENSE file included in this repository.