The workflow
We have written a workflow based on snakemake to cover the end-to-end analysis. Users can provide the raw methylation files and the sample sheet as a starting point, and the pipeline will automatically:
Preprocess the raw files to extract the beta values with
minfi
.If reference samples available, call CNVs with conumee to blacklist potentially disruptive CpGs.
Call fluctuating CpG sites (If no fCpG site list is provided).
Create the XML file required by BEAST (alternative starting point if beta-values are already given - trees mode).
Run
BEAST
.Automatic model selection
Summarise results and draw the phylogenetic trees.
End-to-End Methylation Analysis Workflow
Overview
Welcome to our end-to-end methylation analysis workflow powered by Snakemake! This guide will walk you through processing raw methylation files to generate phylogenetic trees.

Prerequisites
Ensure you have the following installed:
Python
Snakemake
R with
minfi
andconumee
packagesBEAST
Getting Started
Input Files
You will need:
Raw methylation files or beta value CSV file
Sample sheet
Steps
Preprocessing: Extract beta values from raw files using
minfi
.CNV Calling: Call CNVs with
conumee
if reference samples are available to blacklist potentially disruptive CpGs.CpG Site Calling: Identify fluctuating CpG sites. If no fCpG site list is provided, the pipeline will generate one.
Generate XML for BEAST: Create the XML file required by BEAST for beta-value inputs (trees mode).
Run BEAST: Execute
BEAST
for phylogenetic analysis.QC: mixing and convergence checks.
Model Selection: The pipeline will automatically select the appropriate model.
Computation of integral solution. Integrate over each number of stem cell to compute the integrate.
Result Summarization: Summarize results and draw phylogenetic trees.
Running the Pipeline
To run the pipeline, execute:
phyfum run --input exampleBeta.csv --patientinfo metadata.csv --output test --nchains 2 --stemcells 3-6-1 --workdir test --mle-ps
Support
For any issues or questions, please reach out to our support team or check the documentation.
Enjoy your analysis!
This tutorial should help you navigate our methylation analysis workflow seamlessly. Happy analyzing!
Last updated