This repository contains a beginner-friendly Jupyter notebook for running the FUSION++ pipeline.
FUSION++ helps users work with HuBMAP and FUSION data inside a notebook environment. The notebook guides users through data access, analysis jobs, visualization, and downstream exploration.
Users can access data from two main places:
-
Use this to search for HuBMAP datasets that can be used in the notebook.
-
Use this to access and download FUSION datasets that can be used in the notebook.
To access data from HuBMAP:
- Go to portal.hubmapconsortium.org.
- Select Datasets from the navigation menu.
- Browse or search for the dataset or datasets you want to use and copy the HuBMAP_ID.
For a more detailed explanation, refer to the sub-section 1.1 in Data Management Features in the Notebook.
To access data from FUSION Platform:
- Go to fusionpub.rc.ufl.edu.
- Navigate to one of the following folders:
FUSION_Kidney_Visium → Visium → Visium Frozen
or
FUSION_Kidney_Visium → Visium → Visium FFPE
These folders contain the FUSION datasets that can be used with the notebook.
For a more detailed explanation, refer to the sub-section 1.2 in Data Management Features in the Notebook.
Use this option if you are working on the University of Florida HiPerGator environment.
Open a terminal in your HiPerGator Jupyter session or through the HiPerGator command line.
python -m venv fusion_envThis creates a new Python environment named fusion_env.
source fusion_env/bin/activateAfter activation, your terminal should show something like:
(fusion_env)This means the environment is active.
pip install "git+https://github.com/SarderLab/fusion-packages.git"This installs the required FUSION++ package directly from GitHub.
pip install ipykernelipykernel allows this virtual environment to appear as a selectable kernel inside Jupyter.
python -m ipykernel install --user --name fusion_env --display-name "FUSION"This creates a new notebook kernel named:
FUSION
Open:
fusion_demo.ipynb
Then select the kernel:
FUSION
Run the notebook cells from top to bottom.
The notebook will guide you through:
- Initial setup and authentication
- Selecting a HuBMAP dataset
- Downloading or accessing data
- Running analysis jobs
- Viewing outputs
- Visualizing results
Use this option if you are working inside a HuBMAP Workspace.
HuBMAP Workspaces provide a browser-based JupyterLab environment where users can explore HuBMAP data and run notebooks.
To use the notebook inside a HuBMAP Workspace:
- Open the HuBMAP Consortium Website - portal.hubmapconsortium.org.
- Open the Data Portal and login to your account.
- Open My Workspaces and select the
Create Newbutton. - Scroll through the Templates and select FUSION++.
- This will take you to the fusion_demo notebook, which will guide you through the workflow.
The general workflow of the notebook is:
Initial Setup & Authentication
↓
Data Management
(Download / Upload / Prepare Data)
↓
Run Analysis Jobs
↓
Visualization
After running the notebook, outputs may be organized like this:
fusion_demo_notebooks/
├── fusion_demo.ipynb
└── datasets/
└── Dataset_Name/
├── ometiff-pyramids/
├── Segmented_FTU/
├── Aggregated_FTU/
└── Files/
The exact folder contents may vary depending on which notebook sections and analysis jobs are run.
- Run the notebook cells in order.
- If the notebook asks for FUSION credentials, use your FUSION Platform login.
- If you restart the notebook kernel, rerun the authentication cell.
These exercises are designed to help users practice the complete FUSION++ notebook workflow.
Goal: Access either the HuBMAP Workspace or HiPerGator environment, open the FUSION++ notebook, and confirm that FUSION++ is ready to use.
Tasks:
- Access one of the supported workspace environments (HuBMAP/HiperGator).
- Set up and open the FUSION++ notebook using the instructions above.
- Select the correct notebook kernel if required.
- Run the initial setup and authentication cells.
- Confirm that FUSION++ imports successfully.
Expected outcome: The notebook opens successfully and the initial setup cells run without errors.
Goal: Use data from HuBMAP or FUSION and run the complete Visium pipeline in the notebook.
Tasks:
- Select a dataset from either HuBMAP or FUSION.
- Import and prepare the selected data inside the notebook workspace.
- Run the Data Management section.
- Run the complete Visium analysis workflow.
- Confirm that the expected output files and folders are generated.
Expected outcome: The selected dataset is processed successfully, and the pipeline generates output files for visualization and downstream analysis.
Goal: Use the pipeline outputs to create your own plots and identify interesting patterns or insights.
Tasks:
- Locate the output files generated by the pipeline.
- Use the outputs to create custom plots using the generated results.
- Add appropriate titles, labels, and legends.
- Write a short interpretation for each plot.
- Summarize at least two interesting insights from the results.
Expected outcome: Custom plots are created from the pipeline outputs, and the user provides a brief interpretation of the observed results.