NearData

Extreme Near-Data Processing Platform

Learn More

Metabolomics

Brief introduction

Metabolomics is the study of small molecules, or metabolites, that keep our cells and tissues alive. By measuring these molecules, we can understand how diseases develop, how drugs work, and how organisms respond to their environment.

In spatial metabolomics, scientists need to map these molecules across tissue slides pixel by pixel into detailed images of biology. The starting point for this use case is the METASPACE platform, which provides an open ecosystem for processing and sharing metabolomics datasets. METASPACE offers end-to-end functionality, from raw imzML/ibd files to annotated molecular features and visualization-ready outputs. However, when deploying this workflow at scale within NEARDATA, we encountered three main challenges that required methodological and architectural innovations.

Metabolomics Interface 1
Metabolomics Interface 2

Introduction of the problem

First, the challenge of scalability and flexibility. The metabolomics pipeline mixes stages with heterogeneous compute and I/O profiles, making fixed clusters either underutilized or overloaded. The metabolomics workflow has irregular stages with different execution requirements. This variability makes the system difficult to manage, especially for scientists who are not familiar with cloud development. They would have to adjust the execution setup to stay efficient, which is hard to achieve in practice, and many resources end up being wasted.

Second, the challenge of data fragmentation. Public metabolomics data are distributed across multiple repositories, each with its own access mechanisms, metadata standards, and usage constraints. Furthermore, it is very complex to process metabolomic data in parallel due to format complexity and resource provisioning.

Finally, the challenge of confidential computing. Metabolomics data often involve sensitive biomedical information, requiring protection not only at rest and in transit but also in use. Health sensitive data may require secure hardware protection to ensure that the entire life cycle is protected.

How NEARDATA will address the challenge

We addressed the first challenge, scalability, by adopting a fully serverless execution model, allowing concurrency to scale elastically per stage. we re-implemented the pipeline using PyRun: our platform for pipeline execution that makes cloud development easier. It automatically scales each step to the right level of parallelism, optimizing computing power without manual tuning. Also, researchers can easily see how resources are being used through our intuitive interface.

We addressed the second challenge, data fragmentation, implementing novel data management tools in Pyrun: Data cockpit and Dataplug. The Data Cockpit tool helps us split large imaging files, explore datasets, and test the best ways to process them. Data cockpit provides unified access to four key repositories: Metaspace, AWS Open Registry, MetaboLights, and Metabolomics Workbench. Dataplug is an extensible data connector architecture capable of providing dynamic partitions for a variety of scientific formats. Together, these components mitigate fragmentation and ensure datasets are delivered in a standardized, partitioned form, ready for large-scale analysis.

Finally, to address the confidential challenge, we have executed the metabolomics pipeline inside Trusted Execution Environments (TEEs) to execute unmodified code securely, thereby extending Metaspace execution model into a privacy-preserving domain. In particular, we leveraged SCONE secure execution technologies to run in a confidential way the entire metabolomics pipeline in an edge cloud provider (KIO Networks). We demonstrated how it is possible to offload computations in a secure way thanks to confidential technologies that cover the entire data and compute life cycle.

How it will work

We outline two major software outcomes of the metabolomics use case:

METASPACE platform, a popular international repository with hundreds of users around the world is directly benefiting from NEARDATA developments. In particular, the metabolomics pipeline and the offsample machine learning pipeline are built on top of an elastic serverless architecture (Lithops) that ensures automated and efficient resource scaling and provisioning. We are demonstrating that research technologies can be used in production with highly demanding workloads.

PyRun platform, an advanced serverless platform developed in the context of the project, is offering advanced tools (Data Cockpit, Data plug connectors, Data pipelines, AI pipelines) for scientific researchers in bioinformatics and metabolomics. With a few clicks, practitioners can import metabolomics datasets from different open repositories, ingest them efficiently with custom data connectors, and finally execute their pipelines efficiently at scale thanks to data-driven and AI-assisted tools.

Summary of some results

We covered key KPIS in the metabolomics use case. First of all, resource auto-scaling was demonstrated thanks to data-driven orchestration on Lithops, where concurrency elastically adapts to each pipeline stage, with compute-intensive steps fanning out to hundreds of workers while lighter stages run sequentially, avoiding over-provisioning. Secondly, ETL performance was improved by replacing sequential data load with the distributed parallel ingestion, enabling scalable parsing and partitioning; tuning ingestion with DataPlug and DataCockpit identified 50 MB partitions as a robust point, significantly reducing ingestion time versus a 130 MB baseline. We also achieved simplicity and productivity thanks to PyRun and Lithops, which eliminate infrastructure setup, accelerate iterative experimentation, and provide fine-grained telemetry, allowing developers to focus on pipeline logic rather than cluster management. Finally, we also demonstrated Security and confidential computing, validating execution within Trusted Execution Environments, and extending the pipeline with strong data-in-use protection and privacy guarantees.

Contact us

Project Coordinator

Dr. Pedro García López

pedro.garcia@urv.cat

EU Flag

NEARDATA has received funding from the European Union’s Horizon research and innovation programme under grant agreement No 101092644.