원시데이터 수집 시스템
선정목록으로

<i>Magellon</i> – an extensible platform for cryo-EM data visualization, management and processing

관련 수소연료전지 · (6) PEM(고분자전해질막)

기본 정보

저자
  1. Behdad Khoshbin — Institute of Molecular Biophysics, Florida State University, Tallahassee, FL, USA
  2. Puneeth Damodar — Institute of Molecular Biophysics, Florida State University, Tallahassee, FL, USA
  3. Rupali R. Garje — Department of Computer Science, Florida State University, Tallahassee, FL, USA
  4. Frank H. Schotanus — Institute of Molecular Biophysics, Florida State University, Tallahassee, FL, USA
  5. N. Sreekumaran Nair — Institute of Molecular Biophysics, Florida State University, Tallahassee, FL, USA
  6. Lai Wei — Life Sciences Institute, University of Michigan, Ann Arbor, MI, USA
  7. Jan-Hannes Schäfer — Department of Integrative Structural and Computational Biology, Scripps Research, La Jolla, CA, USA
  8. Gabriel C. Lander — Department of Integrative Structural and Computational Biology, Scripps Research, La Jolla, CA, USA
  9. Michael A. Cianfrocco — Life Sciences Institute, University of Michigan, Ann Arbor, MI, USA|||Department of Biological Chemistry, University of Michigan, Ann Arbor, MI, USA
  10. Scott M. Stagg — Institute of Molecular Biophysics, Florida State University, Tallahassee, FL, USA|||Department of Biological Science, Florida State University, Tallahassee, FL, USA
DOI
10.1107/s2052252525007432
저널
IUCrJ
발행년도
2025
발행기관
International Union of Crystallography
피인용수
1
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1107/s2052252525007432
토픽
Quantum Dots Synthesis And Properties
OpenAlex ID
W4414035703

평가 내용

관련도
관련
사업분야
수소연료전지 · (6) PEM(고분자전해질막)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '수소연료전지 > PEM(고분자전해질막)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

Single-particle cryo-electron microscopy (cryo-EM) has revolutionized structural biology by enabling high-resolution determination of macromolecular structures. However, the field faces challenges in data management, processing workflow integration and software extensibility. We present Magellon , an innovative cryo-EM software platform that addresses these challenges through a modern microservices architecture. Magellon consists of an extensible backend with a web based frontend that we call Magellon Viewer . Together, these combine high-performance computing capabilities with an intuitive user interface, enabling researchers to efficiently process and analyze cryo-EM data. The platform's distinguishing features include a plugin based architecture, distributed processing capabilities, comprehensive monitoring systems, and a novel approach to data organization and visualization. A key philosophy of the approach is that the Magellon backend provides a platform that uses robust industry-standard libraries to orchestrate computational tasks while offering users and developers flexibility in selecting the computational resources for performing calculations. Magellon represents a significant advancement in cryo-EM software infrastructure, offering flexibility, scalability and extensibility while maintaining ease of use.

본문 56,041자

본문 펼치기
## IUCrJ ISSN 2052-2525 CRYOjEM Received 13 June 2025 Accepted 18 August 2025 Edited by E. Bullitt, Boston University School of Medicine, USA Keywords: _[Magellon](https://scripts.iucr.org/cgi-bin/full_search?words=Magellon&Action=Search)_ ; [automation;](https://scripts.iucr.org/cgi-bin/full_search?words=automation&Action=Search) [data](https://scripts.iucr.org/cgi-bin/full_search?words=data%20processing&Action=Search) [processing;](https://scripts.iucr.org/cgi-bin/full_search?words=data%20processing&Action=Search) [cryo-EM;](https://scripts.iucr.org/cgi-bin/full_search?words=cryo-EM&Action=Search) [structural](https://scripts.iucr.org/cgi-bin/full_search?words=structural%20biology&Action=Search) biology; [macromolecular](https://scripts.iucr.org/cgi-bin/full_search?words=macromolecular%20structures&Action=Search) structures. Supporting information: this article has supporting information at www.iucrj.org Published under a CC BY 4.0 licence #### research papers ### Magellon – an extensible platform for cryo-EM data visualization, management and processing Behdad [Khoshbin,](https://scripts.iucr.org/cgi-bin/citedin?search_on=name&author_name=Khoshbin,%20B.) <sup>a</sup> Puneeth [Damodar,](https://scripts.iucr.org/cgi-bin/citedin?search_on=name&author_name=Damodar,%20P.) <sup>a</sup> Rupali [R.](https://scripts.iucr.org/cgi-bin/citedin?search_on=name&author_name=Garje,%20R.) Garje, <sup>b</sup> Frank H. [Schotanus,](https://scripts.iucr.org/cgi-bin/citedin?search_on=name&author_name=Schotanus,%20F.) <sup>a</sup> [Nandagopal Nair,](https://scripts.iucr.org/cgi-bin/citedin?search_on=name&author_name=Nair,%20N.) <sup>a</sup> [Lai Wei,](https://scripts.iucr.org/cgi-bin/citedin?search_on=name&author_name=Wei,%20L.) <sup>c</sup> [Jan-Hannes Scha¨fer,](https://scripts.iucr.org/cgi-bin/citedin?search_on=name&author_name=Sch&auml;fer,%20J.-H.) <sup>d</sup> [Gabriel C. Lander,](https://scripts.iucr.org/cgi-bin/citedin?search_on=name&author_name=Lander,%20G.C.) <sup>d</sup> [* Michael A.](https://scripts.iucr.org/cgi-bin/citedin?search_on=name&author_name=Cianfrocco,%20M.) [Cianfrocco](https://scripts.iucr.org/cgi-bin/citedin?search_on=name&author_name=Cianfrocco,%20M.) <sup>c,e</sup> * and Scott [M.](https://scripts.iucr.org/cgi-bin/citedin?search_on=name&author_name=Stagg,%20S.M.) Stagg <sup>a,f</sup> * a Institute of Molecular Biophysics, Florida State University, Tallahassee, FL, USA, b Department of Computer Science, Florida State University, Tallahassee, FL, USA, <sup>c</sup> Life Sciences Institute, University of Michigan, Ann Arbor, MI, USA, d Department of Integrative Structural and Computational Biology, Scripps Research, La Jolla, CA, USA, e Department of Biological Chemistry, University of Michigan, Ann Arbor, MI, USA, and <sup>f</sup> Department of Biological Science, Florida State University, Tallahassee, FL, USA. *Correspondence e-mail: [glander@scripps.edu,](mailto:glander@scripps.edu) [mcianfro@umich.edu,](mailto:mcianfro@umich.edu) [sstagg@fsu.edu](mailto:sstagg@fsu.edu) Single-particle cryo-electron microscopy (cryo-EM) has revolutionized structural biology by enabling high-resolution determination of macromolecular structures. However, the field faces challenges in data management, processing workflow integration and software extensibility. We present _Magellon_, an innovative cryo-EM software platform that addresses these challenges through a modern microservices architecture. _Magellon_ consists of an extensible backend with a web based frontend that we call _Magellon_ _Viewer_ . Together, these combine high-performance computing capabilities with an intuitive user interface, enabling researchers to efficiently process and analyze cryo-EM data. The platform’s distinguishing features include a plugin based architecture, distributed processing capabilities, comprehensive monitoring systems, and a novel approach to data organization and visualization. A key philosophy of the approach is that the _Magellon_ backend provides a platform that uses robust industry-standard libraries to orchestrate computational tasks while offering users and developers flexibility in selecting the computational resources for performing calculations. _Magellon_ represents a significant advancement in cryoEM software infrastructure, offering flexibility, scalability and extensibility while maintaining ease of use. 1. Introduction 1.1. Cryo-EM and automation Automation has played a pivotal role in the explosive growth of single-particle cryogenic electron microscopy (cryoEM) and the accessibility of the technique to investigators who are not experts in electron microscopy. Automated tools and software can be found in all stages of cryo-EM structure determination, including specimen preparation (Darrow _et al._, 2019; Esfahani _et_ _al._, 2024), data collection (Suloway _et_ _al._, 2005; Mastronarde, 2005) and image analysis ( _et_ _al._, 2009; Kimanius _et_ _al._, 2021; Punjani _et_ _al._, 2017; Rosa-Trevı´n _et_ _al._, 2016; Grant _et_ _al._, 2018). The development and implementation of such tools has had a transformative impact on the field of structural biology, as they render the complex process of single-particle cryo-EM structure determination more tractable, repeatable and systematic. The increased use of cryo-EM structure determination has been accompanied by an expanded collection of academic software for data processing, which continues to grow (Cheng & Yu, 2024; Mendez _et_ _al._, 2023; Li _et_ _al._, 2025). This growth has been accelerated by the rise of machine learning in computer vision, which has been integrated into nearly all #### research papers aspects of the cryo-EM image analysis pipeline (Bepler _et al._, 2019; Li _et_ _al._, 2020; Jamali _et_ _al._, 2024; Wagner _et_ _al._, 2019). The software packages developed to address the various steps of data processing can be classified into three primary types: (1) comprehensive, all-in-one packages such as _cryoSPARC_ (Punjani _et_ _al._, 2017) or _EMAN2_ (Tang _et_ _al._, 2007), where each processing step has been coded individually in the software package environment; (2) hybrid packages, such as _Scipion_ (de la Rosa-Trevı´n _et al._, 2016), _Relion_ (Scheres, 2012), _Appion_ (Lander _et_ _al._, 2009) or _cisTEM_ (Grant _et_ _al._, 2018), which integrate both native algorithms and external software through wrapper interfaces; and (3) customized, bespoke data processing pipelines, where individual investigators install the stand-alone programs and write convenience scripts to shuttle data between them. The advantage of the all-in-one packages is that they are relatively easy to install and learn to use, but have limited flexibility and extensibility. In contrast, bespoke pipelines, while highly customizable, can be complex to set up and difficult to manage. Hybrid software packages aim to combine the advantages of both approaches by providing a standardized interface that integrates both native algorithms and external software. Hybrid systems and bespoke pipelines face several technical architecture challenges that affect workflow efficiency and the longevity of the software. One major problem is the complexity of software integration, as these systems often struggle to seamlessly integrate multiple processing tools and algorithms. Within the same vein are issues with data organization - when databases are incorporated into a software package, there is usually a lack of robust methods for portable data organization, which creates problems for inter-facility transfers. Scalability constitutes an additional limitation, with systems often unable to smoothly scale from personal workstations to large computing clusters. Finally, introducing new functionality can present considerable barriers, as integrating new software or algorithms typically demands comprehensive knowledge of the underlying codebase. We present here a new hybrid software package, _Magellon_, an extensible platform designed to enable intuitive, point-andclick data viewing, organization and analysis. Notably, the platform is open source, flexible and designed for crosscompatibility across different operating systems. _Magellon_ employs a microservices architecture to enable independent scaling of components, while its plugin based design facilitates seamless integration of new algorithms without modifying core code. Considerable effort was devoted to the design of _Magellon_ ’s backend, making it deployable and consistent across different computing environments, including Windows, Linux and MacOS. Additionally, _Magellon_ employs industrystandard libraries and modern protocols to enable installation on personal laptops while maintaining scalability to datacenter-sized infrastructure. As a demonstration of _Magellon_ ’s capabilities, we developed the _Magellon Viewer_ - a web based, interactive frontend built with _React JavaScript_ that leverages the _Magellon_ backend. The platform’s modular design enables research teams to customize or replace components, such as the _Viewer_, with specialized interfaces tailored to specific needs, or even develop alternative frontends for particular applications. With potential for future expansion through micro-frontends, _Magellon_ is positioned to become a critical component of cryo-EM cyberinfrastructure, supporting both individual researchers and large research groups. 2. Design 2.1. Design principles The foundational philosophy behind _Magellon_ is that it should be a platform-as-a-service (PaaS) tool for cryo-EM data processing and algorithm deployment. The architectural core of _Magellon_ is structured to handle database organization, job submission and user accounts. Additionally, _Magellon_ offers extensible tool implementation through a well defined plugin/toolbox interface in addition to enabling portability for data import/export. The combination of these tools establishes a foundational platform that can be used for data viewing and processing in a web-tool named the _Magellon_ _Viewer_ . This design ensures that training and maintenance remain manageable while promoting extensibility, thereby enabling the broader scientific community to contribute features and enhancements so that development is not limited to the core _Magellon_ developers. 2.2. _Magellon_ backend The _Magellon_ backend comprises a central data orchestration framework and a set of plugins, functioning similarly to a microservices environment where each component operates independently (Fig. 1). This design offers flexibility, scalability and maintainability. The backend manages primary tasks, schedules jobs and handles communication between plugins, while the plugins encapsulate specific algorithms that function as independent services. _Magellon_ was designed to use resources available either on the host computer or across a network by leveraging representational state transfer ( _REST_ ) programming. Using the _REST_ framework, tasks are allocated to different workers that can reside on any computer accessible over the network with the _Magellon_ software installed. To further the robustness of our backend infrastructure and accommodate ease-of-use for developers aiming to extend or interact with _Magellon_ tasks, we developed a _Magellon_ application programming interface (API). The _REST_ API framework was written using _FastAPI_ [(https://fastapi.tiangolo.](https://fastapi.tiangolo.com) [com)](https://fastapi.tiangolo.com) and _Swagger_ [(https://swagger.io)](https://swagger.io) (Fig. 1), and enables task requests to be transmitted over a network. _FastAPI_ provides for separation of controllers for each purpose ( _e.g._ separate controllers web, database, processing _etc_ .) and enhances code organization and readability, while _Swagger_ provides an interface for API documentation and testing. To effectively manage the diverse processing tasks that could be carried out within the _Magellon_ interface, which could range from seconds to hours of computational time, a robust task manager was implemented using _RabbitMQ_ [(https://www.rabbitmq.com)](https://www.rabbitmq.com) for message queuing and management (Fig. 2). _RabbitMQ_ is an open-source message Figure 1 _Magellon_ _REST_ computational architecture and API framework. The heart of _Magellon_ is the _Magellon_ API which utilizes industry-standard libraries and frameworks that altogether form the _Magellon_ backend. The _Magellon_ _Viewer_ frontend and plugins connect to the backend through standardized outlets that enable extensibility of the platform. #### research papers broker with established reliability and efficiency in handling asynchronous communication between distributed systems. _RabbitMQ_ serves as the central orchestrator for _Magellon_ processing while the _FastAPI_ backend serves as the central coordinator, managing task distribution, monitoring execution status across the distributed system and triggering dependent processing steps based on task completion. This computational organization structure ensures that tasks are efficiently scheduled, queued and executed across various computational resources, optimizing _Magellon_ ’s performance and scalability. The _Magellon_ _RabbitMQ_ implementation includes systematic error logging, retry mechanisms with exponential backoff and failure escalation protocols. Failed tasks are automatically logged with detailed error messages, and the system supports configurable retry policies with dead letter queues for permanently failed tasks. When plugins fail, the architecture ensures that failures remain isolated and do not propagate system-wide. The queue management prevents data loss and maintains processing continuity. An advantage of this approach is that data processing is very robust against processing interruptions; the whole system can be restarted and the processing will continue where it left off. Maintaining consistent and validated data exchange between different _REST_ clients is crucial to _Magellon_ ’s efficiency and the integrity of analyses. To this end, _Magellon_ employs _Pydantic_ models [(https://docs.pydantic.dev)](https://docs.pydantic.dev) for data structuring and validation, including the consistent serialization and deserialization of messages as _Pydantic_ -validated _JSON_ . _Pydantic_ is a Python library designed for data parsing and validation that integrates seamlessly with _FastAPI_ and _Swagger_ frameworks. _Pydantic_ ensures that incoming data adheres to the defined schemas and formatting requirements, thereby minimizing the risk of errors occurring during Figure 2 Task management in the _Magellon_ backend. (1) Tasks are initiated from the frontend and passed to the _Magellon_ API, (2) messages are published to the _RabbitMQ_ message broker. (3) Messages ( _i.e._ job requests) are placed in a job queue. (4) Jobs are passed to a data processing worker, where (5) the job runs. (6) When the job completes the outputs are published back to _RabbitMQ_ . (7) _RabbitMQ_ routes the results to the results processor that (8) inserts metadata into the _Magellon_ database and saves the results to the appropriate paths in the file system and notifies the _Magellon_ API of completion. #### research papers processing interactions. For example, in _Magellon_ there is a _Pydantic_ model for images ( _ImageDtoBase_ ) that defines all of the metadata and types ( _e.g._ stage position, image shift, spot size, beam intensity, pixel size _etc._ ) that are expected for a TEM image being imported. Thus, data import is standardized regardless of what instrument or software is used for data acquisition. By standardizing data formats in this manner, _Magellon_ facilitates streamlined interactions within the platform, simplifying and standardizing the development process. 2.3. Frontend: _Magellon_ _Viewer_ The _Magellon_ _Viewer_ is entirely web based to maximize accessibility, ease of interaction, and exposure of users to their data and metadata while simultaneously leveraging the suite of backend _Magellon_ tools. The web navigation is designed to be intuitive, being primarily image based with a hierarchical organization of the low- and high-magnification images that comprise a dataset. Relevant metadata are prominently displayed and accessible, ensuring that users can access any associated information with a dataset ( _e.g._ microscope and detector settings). Web pages are generated dynamically, and interactivity is achieved through _JavaScript_ using the _React_ [framework (https://react.dev), which ensures a responsive and](https://react.dev) seamless user experience. Interaction between the frontend and backend is facilitated through _RESTful_ API calls. When a user interacts with the web interface, such as by selecting a dataset or processing task, the frontend sends requests to the backend via the _Magellon_ API. Processed data are communicated to the frontend, updating the interface in real time to enable navigation of large datasets, track the status of processing jobs and review results instantly. Associated metadata are displayed in a structured and user-friendly format, often alongside corresponding images. For instance, metadata such as acquisition parameters ( _e.g._ kiloelectronvolts, magnification) and processing results [ _e.g._ particle selection, contrast transfer function (CTF) estimation] are integrated into the display. The metadata are dynamically loaded from the backend, ensuring that any updates or changes made during data processing are immediately reflected in the interface, which is particularly important for users to make informed, real-time decisions based on the incoming data. 2.4. _Magellon_ database structure To handle the complexity of metadata associated with a cryo-EM data collection experiment, _Magellon_ employs the relational database _MySQL_ [(https://www.mysql.com)](https://www.mysql.com) for efficient storage and retrieval. _Magellon_ database interactions utilize the _SQLAlchemy_ Python libraray with _Pydantic_ models for validation and serialization. Many concepts were taken from the database architecture developed previously for the data acquisition software _Leginon_ (Suloway _et_ _al._, 2005), but the _Magellon_ database is greatly simplified to facilitate easier data export and transfer between data collection sites. A potential problem in designing a database where the metadata can be transferred between different physical locations is that a mechanism is needed to ensure that primary keys are not duplicated. Thus, to avoid primary key conflicts, we use universally unique identifiers (UUIDs) as primary keys. This guarantees that all systems have globally unique IDs for their image records, allowing different databases to be merged readily into one database without concerns about conflicts. There is no built-in UUID column type in _MySQL_, thus UUIDs (UUID version 4 - random) are stored as binary(16) by removing four characters and storing each two hexadecimal numbers in a single byte. The full database schema are available for viewing on the _Magellon_ website [(https://](https://magellon.org) [magellon.org).](https://magellon.org) 2.5. _Magellon_ adaptors to enable cross-software compatibility _Magellon_ was developed to be agnostic to the software used for data collection. Data and metadata are ingested and assigned to unified metadata fields so that the import process is the same for all data collection packages. This approach is accomplished with a _Magellon_ translator layer that populates defined metadata fields and inserts them into the _Magellon_ database. Pieces of code, called ‘Adapters’, read metadata from different data collection packages and interface with the translator to enable imports from various software sources. Adapters have been written for the data collection software packages _Leginon_ (Suloway _et_ _al._, 2005) and _Thermo_ _Fisher_ _Scientific_ _EPU_, and adapters for _SerialEM_ (Mastronarde, 2005) and _Gatan_ _Latitude_ are currently under development (Fig. 3). Additionally, _Magellon_ import/export utilities have been written to enable data transfer between different sites. 2.6. _Magellon_ ’s plugin interface offers flexible incorporation of software tools _Magellon_ is designed with an open architecture that promotes extensibility, facilitated by a robust plugin system that streamlines the testing and integration of new algorithms [ _e.g._ CTF, fast Fourier transforms (FFTs), particle picking, frame alignment _etc._ ]. Built on a microservices architecture, each data processing algorithm exists as a distinct plugin or microservice, offering significant advantages over monolithic designs. Plugins can be independently developed, tested, published and shared, while also being deployable on separate systems or via containers with isolated dependencies. Each plugin functions as a self-contained _FastAPI_ project encap Figure 3 Adapter code unifies metadata from multiple different input sources and inserts the data in a common format into the _Magellon_ database. sulating a single algorithm, ensuring modularity and independent development cycles. This approach not only enhances scalability but also simplifies deployment through containerization technologies like _Docker_ and orchestration tools like _Kubernetes_ [(https://kubernetes.io).](https://kubernetes.io) _Magellon_ ’s plugin architecture draws inspiration from the _Akka_ framework’s [(https://akka.io)](https://akka.io) actor model, where each plugin operates as an independent actor within the system. Plugins communicate with the backend exclusively through message-passing via _RabbitMQ_, maintaining dedicated message queues that enable asynchronous task processing, state isolation and operation encapsulation. This approach offers significant advantages: it prevents individual plugin failures from affecting the entire system; hierarchical supervision automatically restarts failed plugins; and state preservation mechanisms safeguard data during interruptions. The design ensures location transparency, allowing plugins to be relocated or scaled without system disruption. By utilizing message-passing for parallelization, the architecture efficiently manages resources and minimizes bottlenecks while enabling horizontal scaling and dynamic resource allocation. Further, each plugin’s isolated memory space ensures optimal memory management and reduces conflicts. These architectural choices make _Magellon_ ’s plugin system inherently extensible, scalable and resilient, enabling cryo-EM algorithm developers in the community to deploy their specialized algorithms as _Magellon_ plugins without concerning themselves with peripheral challenges like data management, system control, pipeline configuration or parallelization. Developers can thus focus exclusively on algorithm development while _Magellon_ handles the infrastructure. 2.7. Flexible _Magellon_ deployment for individual users or large facilities _Magellon_ was designed with a ‘deploy anywhere’ philosophy, emphasizing ease of installation while maintaining flexibility for diverse computational environments. This approach directly addresses the software compatibility and installation challenges commonly faced in hybrid computing infrastructure projects. The deployment architecture supports both simple single-machine installations for individual researchers and complex distributed setups for large facilities, achieved through two complementary approaches: _Docker_ _Compose_ for containerization and a custom command-line interface (CLI) for management. _Magellon_ ’s deployment architecture accommodates three primary scenarios: single-machine, distributed and hybrid deployment. In the single-machine deployment regime, all components of _Magellon_ run on one computer while maintaining isolation through containerization, requiring minimal configuration yet providing full platform functionality. For distributed deployment, _Magellon_ components can be installed across multiple networked computers, with each component placed strategically to utilize specialized hardware (such as GPU clusters) while maintaining seamless system #### research papers wide communication. In hybrid deployment installations, _Magellon_ can bridge local resources with cloud infrastructure, allowing researchers to maintain core functions locally while dynamically expanding processing capabilities to external resources as needed. This flexibility ensures that _Magellon_ can adapt to computational needs in a cost-effective manner, enabling dynamic scaling, burst processing for large datasets and geographic distribution of workloads. Together, these flexible deployment options ensure that _Magellon_ can adapt to a wide range of user needs and institutional scales. _Magellon_ ’s modular architecture enables distributed deployment, where each component can be installed on separate machines across a network. This distribution capability allows components to be strategically placed on hardware optimized for their specific requirements, such as GPU-accelerated nodes for computation-intensive plugins or high-memory servers for database operations. The system’s components automatically discover and communicate with each other through standardized APIs and message queuing, functioning cohesively as an integrated platform, regardless of physical location. This functionality is facilitated through the use of _Consul_, which is an open-source networking and service discovery tool for dynamic, distributed environments. _Consul_ provides a registry where services can register themselves and discover other services, streamlining communication in microservice architectures. This architecture provides both forward compatibility and scalability. Research facilities can manage their project uniformly through a single _Magellon_ instance distributed across their infrastructure. The platform supports both vertical scaling (adding more CPUs, GPUs or storage to existing nodes) and horizontal scaling (incorporating additional computers or compute nodes into the system) without requiring architectural redesign. Moreover, with proper network configuration, _Magellon_ enables geographic distribution of resources. Conceivably, a facility could maintain data storage in one location ( _e.g._ Florida) while leveraging idle GPU resources at another institution or the cloud, creating a federated computing environment that maximizes resource utilization across sites. There are two mechanisms for deployment, depending on the computational needs and expertise of the end user. For single workstation deployment, individual components have been containerized using _Docker_ . A single _Docker_ compose command can install all of the necessary dependencies onto a workstation of interest. For developers or on distributed systems, there is a CLI tool that was developed as a lightweight standalone executable. The CLI handles deployment, setup and management of both the _Magellon_ core system and its plugins. Its design is platform-agnostic and has been tested on Windows, Linux and macOS. A single command, magellon install app, initiates the entire installation process. This command handles all the necessary environment setup and configuration, ensuring that users can get started with minimal effort and eliminating the need for manual configuration steps. The CLI simplifies the development process with the commands magellon development setup and #### research papers magellon development load, which automatically configure the environment and load necessary dependencies. Together, these deployment tools provide a highly accessible and flexible entry point for users and developers, lowering barriers to adoption and promoting community-driven expansion of _Magellon_ ’s capabilities. Plugin management is also handled with the _Magellon_ CLI. Developers can create and deploy plugins using the commands magellon plugins create init, magellon plugins create myctf and magellon plugins deploy myctf. Likewise for end users, plugin discovery and installation are handled with the command magellon plugins list -a -s:author, which allows users to browse available plugins, while magellon plugins install myctf@latest enables seamless installation of specific plugins. The CLI makes it straightforward for users to expand _Magellon_ ’s functionality with minimal effort, without needing deep technical knowledge. 3. Methods 3.1. Data collection for demo A small cryo-EM dataset was collected to demonstrate the functionality of _Magellon_ for data import, management and processing. Mouse heavy-chain apoferritin from a plasmid gifted by Dr Masahide Kikkawa (Danev _et_ _al._, 2019) was expressed and purified as described previously (Peng _et_ _al._, 2023). UltraAuFoil R1.2/1.3 300 Mesh grids were plasma cleaned for 50 s at 7 W with 25% oxygen, 75% argon (Gatan Solarus 950). Cleaned grids were loaded onto Vitrobot Mark IV at 100% humidity (4 <sup>�</sup> C). 4 ml of apoferritin was applied to the grids which were blotted for 1 s at zero force before being vitrified in liquid ethane. Data were collected on a Titan Krios microscope (ThermoFisher Scientific) operated at 300 kV with a 50 mm C2 aperture and 100 mm objective aperture and equipped with a DE Apollo direct detector. Images were acquired using _Leginon_ (Suloway _et_ _al._, 2005). For highmagnification exposures, the Apollo was set in 8 _k_ - 8 _k_ superresolution mode at a magnification of 59000� with a superresolution pixel size of 0.395 A <sup>˚</sup> . The movie frame rate was fixed at 60 frames per second. 4. Results 4.1. Deploying _Magellon_ and importing data As described above, _Magellon_ can be installed and run using _Docker_ or installed manually by setting up the required dependencies. Detailed instructions for both methods are available on the _Magellon_ website [(https://magellon.org)](https://magellon.org) or the ReadMe file included with the source code. To help new users become familiar with _Magellon_, the code is accompanied by a test dataset that can be used to explore _Magellon_ functionality. This small test dataset of vitrified apoferritin has been deposited in the Electron Microscopy Public Image Archive (EMPIAR) under the accession number EMPIAR11254. The entry includes all 310 images associated with the Table 1 Example import performance for the _Magellon_ test dataset. Frame <u>alignment</u> <u>Platform</u> <u>Chip</u> <u>GPU</u> <u>RAM</u> Processing <u>time (min)</u> MacOS iMac M1 None 16 G 19 None Linux Xeon W GeForce RTX 4090 256 G 105 Yes <u>Linux</u> <u>Xeon Silver</u> <u>GeForce GTX 1080</u> <u>64 G</u> <u>359</u> <u>Yes</u> dataset, including low-magnification images and 218 highmagnification exposures with accompanying movies. To streamline data handling operations, we utilized Adaptors within _Magellon_ to build a web tool for _Magellon_ import/ export, which enables users to import the test dataset seamlessly into the _Magellon Viewer_ . We tested import on a variety of computers and platforms (Table 1). The test data includes both integrated micrographs and movies. During the import process, _Magellon_ ingests associated metadata, creates image files and thumbnails for every image in PNG format, precalculates power spectra for every image and estimates the CTF for every image with a pixel size smaller than 5 A <sup>˚</sup> per pixel. Since the distribution is containerized using _Docker_, the processing operations are platform-independent and the Linux binaries that _Magellon_ wraps can be executed seamlessly on a variety of Linux distributions, Mac OS and Windows: essentially any OS for which _Docker_ is compatible. The program _MotionCor2_ serves as the default _Magellon_ frame alignment plugin, so the frame alignment jobs will only execute on computers that are equipped with a compatible _Nvidia_ GPU. However, the _Magellon_ import process will proceed regardless of the presence of a GPU, enabled by the robust fault tolerance of _RabbitMQ_, which allows for the execution of jobs independently without the failure of one job propagating throughout the system. We recommend that new users of _Magellon_ become acquainted with the software by importing the test dataset and following the step-by-step demonstration included in our user guide. This demo provides an overview of _Magellon_ ’s key features and helps users understand how to integrate their own data into the system. 4.2. Interacting with _Magellon_ _Viewer_ The first step for starting a session with _Magellon Viewer_ is filling out a web based metadata form containing information about the user’s data. On completion, the user submits the import job, which triggers a series of customizable processes including metadata import, transfer of raw data to its final location, frame alignment and CTF estimation. Import can occur concurrently with data collection and the data processing occurs on-the-fly. The _Magellon Viewer_ graphical user interface was designed to maximize the visibility of the data and metadata. The interface is organized into four main sections: an atlas viewing section at the top left, a hierarchical image browser below the atlas section, a metadata display section on the upper right and a large interactive image viewer below the metadata section (Fig. 4). Users are presented with images representing the #### research papers Figure 4 The _Magellon_ viewer. The viewer shows atlases for a given session at the top left. A hierarchical image navigator is featured at the bottom left which allows users to navigate between lower magnification images and their higher magnification children. The center features an interactive viewer with associated metadata. sample at every magnification used during data collection. Clicking on an atlas image reveals all the associated lowmagnification images in the hierarchical browser, providing an overview of data acquisition at different scales. Colored bounding boxes highlight images that served as the basis for targeting higher-magnification acquisitions, visually guiding users through the imaging hierarchy. When a user selects an image from the hierarchical browser, a full-resolution version is displayed in the interactive image viewer. This viewer offers a range of built-in tools, including the ability to display precomputed FFTs, a measuring tool for estimating distances or dimensions, and an interactive particle picker for manual or assisted particle selection. Key metadata, such as CTF estimation results, magnification and pixel size, are prominently displayed above the viewer for immediate reference. Full metadata records, including all recorded microscope parameters, camera settings and processing metadata are readily accessible through an expandable tab, enabling users to intuitively retrieve detailed information about each image and the corresponding acquisition conditions. This integrated, data-centric design ensures that users can efficiently navigate complex datasets, assess image quality and manage data collection strategies within a single unified platform. 4.3. Plugin development: _CTFFIND4_ and _MotionCor2_ Two plugins have been developed for _Magellon_ that serve as examples for future plugin developers. These two plugins carry out the initial image analysis processes that are universally performed on all cryo-EM data – frame alignment/doseweighting and CTF estimation. Each type of image analysis process in _Magellon_ is designated to a specific plugin category with defined metadata that are provided from _Magellon_ to the plugin. Likewise, outputs are generated with the expected syntax, format and in an organized fashion. The inputs and outputs are managed by specific queues in the _Magellon_ process manager controlled by _RabbitMQ_ . Since inputs, outputs and metadata to and from the plugin are in a predefined format, the _Magellon_ backend can handle queries, insert metadata into the _Magellon_ database and generate organized output files. As _Magellon_ continues to develop, more types will be developed ( _e.g._ particle picking, image assessment _etc._ ). This approach grants flexibility to developers, so that standardized inputs and outputs can be directed to any new algorithm, eliminating the need to rebuild or reconfigure the entire system. The CTF estimation plugin was developed using the widely adopted _CTFFIND4_ program (Rohou & Grigorieff, 2015). To #### research papers manage task submission and execution, we established two _RabbitMQ_ queues: an input queue for receiving processing requests and an output queue for returning results. The task is generated based on user-defined input parameters and submitted through the input queue. The input queue consumer retrieves each task and initiates the CTF estimation process, which comprises two main phases: CTF estimation and CTF evaluation. During the estimation phase, a command-line instruction for _CTFFIND4_ is dynamically generated using the input parameters and executed via a subprocess call to the _CTFFIND4_ binary. If an error occurs during execution, an error response is generated and returned; if successful, the outputs, including CTF parameters and diagnostic images, are captured for further evaluation. Following estimation, a secondary evaluation phase is conducted using quality metrics originally implemented in _Appion_ (Sheth _et al._, 2015). The outputs from _CTFFIND4_ are subsequently analyzed, and all relevant metadata needed for CTF evaluation are collected and stored. Each request is assigned a unique directory, ensuring organized storage of output files and associated metadata. Outputs are formatted consistently across all plugins, then passed to the output queue for downstream processing. The result processor plugin subsequently retrieves and organizes the outputs, saving files to designated folders and recording metadata entries in the database. Outputs are classified into relevant categories – such as CTF or frame alignment - allowing seamless integration with the broader data management infrastructure. To ensure platform independence and facilitate deployment across diverse computing environments, both _CTFFIND4_ and the associated CTF evaluation code were containerized using _Docker_ . The frame alignment plugin follows a similar architecture to the CTF plugin and was developed using the _MotionCor2_ program (Zheng _et_ _al._, 2017). Like the CTF pipeline, frame alignment uses two dedicated _RabbitMQ_ queues - one for input and one for output - to manage task submission and result handling. Because _MotionCor2_ leverages GPU acceleration, special care was taken to ensure that all GPU drivers, libraries and dependencies were correctly installed and compatible with the version requirements of the software. On receiving a task from the input queue, the plugin dynamically generates the appropriate _MotionCor2_ command using metadata retrieved from the _Magellon_ database and executes the command via a subprocess. Log files, aligned micrographs and associated outputs generated during processing are systematically collected, organized into structured folders and registered within the database via the output queue. To promote platform independence and reproducibility, _MotionCor2_ and its supporting components were containerized in a dedicated _Docker_ image, so that the plugin runs consistently on any machine equipped with an appropriate _Nvidia_ GPU. Integration of all processing plugins into the _Magellon_ core service in this manner ensures seamless operation within the broader platform. Task creation for plugins is automated by querying the necessary input metadata from the _Magellon_ database and dispatching processing tasks to the appropriate input queues. The core service coordinates the execution of plugins by managing task scheduling, monitoring process status, and ensuring that outputs are appropriately stored and categorized. This modular and standardized architecture not only streamlines cryo-EM data processing but also facilitates extensibility, enabling straightforward incorporation of new algorithms and tools into the _Magellon_ framework. 4.4. _Magellon_ ’s _Swagger_ interface: a web based description of tools within _Magellon_ To enhance transparency, flexibility and ease of customization, _Magellon_ provides users with direct access to backend services through an integrated _Swagger_ interface. _Swagger_ is an open-source tool for visualizing and interacting with _RESTful_ APIs in a user-friendly, web based format. Rather than requiring users or developers to interact directly with the underlying codebase, _Magellon_ exposes key backend functions through Swagger, which enables users to query data, launch processing jobs, manage configurations and automate workflows directly through a point-and-click web interface. Users who install _Magellon_ through the demo _Docker_ containers can access the _Magellon_ - _Swagger_ interface by [navigating to the website, https://localhost:8000/docs. Through](https://localhost:8000/docs) this portal, users and developers can view detailed documentation of available backend functions, including descriptions of required input parameters and expected outputs. For example, users can retrieve specific dataset metadata, submit processing jobs or perform individual processing tasks. This design lowers the barrier for advanced usage and extension of _Magellon_, offering a straightforward pathway for users to explore backend capabilities and for developers to build custom features. To introduce users to the _Swagger_ interface, we implemented a standalone 2D lowpass filter function, which allows users to apply a lowpass filter to images already imported into _Magellon_ or to new images uploaded by the user for on-the-fly filtering. Importantly, this example provides an accessible entry point for developers who want to begin building and testing their own image-processing algorithms within _Magellon_ . Users can use this tool to selectively process individual images rather than the full dataset, showing how developers can quickly prototype and validate their routines in a lightweight, low-barrier environment. The lowpass filter plugin thus serves as a template for developers interested in contributing new functionality to the _Magellon_ backend, demonstrating how custom processing functions can be exposed through the _Magellon_ API and integrated into the larger workflow. Additional documentation and tutorials on how to use the _Swagger_ interface, including examples for extending _Magellon_ with new processing modules, are available on the _Magellon_ website [(https://magellon.org).](https://magellon.org) 5. Discussion New algorithms are continually being developed for cryo-EM from many different sources, each with its own dependencies. Integrating these new algorithms into a given processing pipeline represents a significant challenge for both developers and end users. A key aspect of _Magellon_ is extensibility, and we have developed a plugin infrastructure that enables investigators to develop and deploy new utilities for cryo-EM data processing. We have developed two initial plugins including one for CTF estimation and one for frame alignment that serve as examples for future development. _Magellon_ ’s architecture aligns with a broader shift in how cryo-EM data collection and processing are evolving. While current tools such as Thermo Fisher’s _CryoFlow_, _cryoSPARC_ _Live_, and modules built around _Leginon_ and _SerialEM_ data collection software enable users to preprocess data and adjust acquisition parameters in real time, _Magellon_ takes this concept significantly further. We envision a seamless, decoupled workflow wherein data collection and analyses are no longer tied to the same physical location, but remain fully integrated operationally. _Magellon_ ’s microservice based deployment model and data management capabilities uniquely position it to enable this vision. For example, a researcher could initiate a data collection session at a remote facility through the _Magellon_ web interface. As micrographs are acquired, they would immediately appear in the researcher’s browser - without any visible indication that behind the scenes, raw data are being (1) temporarily cached at the facility, (2) automatically transferred to high-performance cloud storage, (3) registered in a globally distributed _Magellon_ database, (4) processed by dynamically provisioned cloud compute resources and (5) possibly being hosted at a geographically distant site, as the researcher visualizes the images through a web interface. The user remains shielded from the complexity of the underlying infrastructure, experiencing a unified and seamless workflow regardless of where the physical resources are located. This location-transparent approach democratizes access to advanced cryo-EM capabilities, benefiting researchers in small laboratories or users of large research centers. Institutions without extensive local infrastructure could leverage cuttingedge microscopes and cloud based computational power without costly investments in hardware that rapidly becomes obsolete. Collaborators at different institutions could simultaneously view and analyze datasets in real time, thanks to _Magellon_ ’s ability to ensure a consistent and integrated view of project status and data processing. For facility managers, the architecture offers flexibility and scalability: computational resources can be dynamically scaled to meet demand, with operational costs tied directly to usage rather than fixed infrastructure capacity. Moreover, processing jobs could be routed to regions with lower-energy costs or available surplus compute capacity, improving both cost efficiency and environmental sustainability. _Magellon_ ’s current design, which separates data management, visualization and processing components, lays the critical foundation for this future, where physical resource constraints are minimized and scientific inquiry can proceed with unprecedented fluidity and reach. While the current release of _Magellon_ is mature in terms of the computational infrastructure and deployment, there #### research papers remain several features that have not yet been implemented. For instance, the database and web frontend were built with the capacity to accommodate multiple users with role based and attribute based access control, but this has not been implemented in the current release. Likewise, the data processing workflow assumes the standard workflow for cryoEM data processing ( _e.g._ CTF estimation) and frame alignment. In future versions, users will be able to customize their workflows as more plugins such as particle pickers or micrograph assessors become available. In the coming years, we anticipate that _Magellon_ will evolve into a comprehensive cryo-EM data collection and viewing platform that will continue to integrate algorithms and software to enhance data acquisition efficiency. We plan to expand the plugin ecosystem, introducing additional tools for particle picking and image classification while simplifying capacity for user based development through a dedicated CLI, reusable SDK and robust documentation. A centralized plugin hub will facilitate sharing and collaboration among researchers, leading to new discoveries. The _Magellon_ backend sets the foundation for future data collection tools that will leverage its database-backed processing infrastructure, enabling integration with _Magellon Viewer_ for real time data visualization and assessment. Direct instrument integration will enable realtime control and data capture from the microscope and detectors, with the flexible infrastructure designed to accommodate both single particle as well as cryo-electron tomography data import, analysis and visualization. The current job management system will mature into a fully automated cryoEM data collection engine supporting advanced features that can distinguish appropriate regions for data collection and associated event triggers. Users will also benefit from a responsive supervision dashboard accessible from both desktop and mobile devices, permitting remote monitoring of collection sessions. Finally, we aim to streamline cloud deployment with one-click AWS implementation, enabling efficient cloud based data processing with intelligent resource management to optimize performance while minimizing costs. Acknowledgements The _Magellon_ backend and frontend code was written by BK. _CTF_ and _Frame_ _Alignment_ plugins were written by PD. The initial draft of the manuscript was written by SMS and BK, and subsequently edited by all authors. The authors thank JC Ducom and Charles Bowman at Scripps for computational support; and members of the Cianfrocco, Lander and Stagg laboratories for beta testing and providing feedback on early _Magellon_ releases. Data availability The apoferritin dataset used for testing is available on the Electron Microscopy Public Image Archive under accession code EMPIAR-11254. The code is available on GitHub [(https://github.com/sstagg/Magellon.git)](https://github.com/sstagg/Magellon.git) and the documenta #### research papers tion is available on the _Magellon_ website [(https://www.](https://www.magellon.org/) [magellon.org/).](https://www.magellon.org/) Funding information Funding for this research was provided by a National Institutes of Health grant R01 GM143805 to SMS, GCL and MAC. References [Bepler, T., Morin, A., Rapp, M., Brasch, J., Shapiro, L., Noble, A. J. &](https://scripts.iucr.org/cgi-bin/cr.cgi?rm=pdfbb&cnor=eh5023&bbid=BB1) Berger, B. (2019). _[Nat. Methods](https://scripts.iucr.org/cgi-bin/cr.cgi?rm=pdfbb&cnor=eh5023&bbid=BB1)_ 16, 1153–1160. Cheng, A. & Yu, Y. (2024). _[Curr. Opin.](https://scripts.iucr.org/cgi-bin/cr.cgi?rm=pdfbb&cnor=eh5023&bbid=BB2)_ _Struct._ _Biol._ 86, 102795. Danev, R., Yanagisawa, H. & [Kikkawa,](https://scripts.iucr.org/cgi-bin/cr.cgi?rm=pdfbb&cnor=eh5023&bbid=BB3) M. (2019). _Trends_ _Biochem._ _Sci._ 44, [837–848.](https://scripts.iucr.org/cgi-bin/cr.cgi?rm=pdfbb&cnor=eh5023&bbid=BB3) Darrow, M. C., Moore, J. P., [Walker,](https://scripts.iucr.org/cgi-bin/cr.cgi?rm=pdfbb&cnor=eh5023&bbid=BB4) R. J., Doering, K., Thaw, P. & King, R. S. (2019). _[Acta](https://scripts.iucr.org/cgi-bin/cr.cgi?rm=pdfbb&cnor=eh5023&bbid=BB4)_ _Cryst._ A 75, a422. de la Rosa-Trevı´n, J. M., [Quintana,](https://scripts.iucr.org/cgi-bin/cr.cgi?rm=pdfbb&cnor=eh5023&bbid=BB5) A., del Cano, L., Zaldı´var, A., Foche, I., Gutie´rrez, J., [Go´mez-Blanco,](https://scripts.iucr.org/cgi-bin/cr.cgi?rm=pdfbb&cnor=eh5023&bbid=BB5) J., Burguet-Castell, J., Cuenca-Alba, J., Abrishami, V., Vargas, J., Oto´n, J., Sharov, G., [Vilas, J. L., Navas, J., Conesa, P., Kazemi, M., Marabini, R., Sorzano,](https://scripts.iucr.org/cgi-bin/cr.cgi?rm=pdfbb&cnor=eh5023&bbid=BB5) C. O. S. & Carazo, [J. M. (2016).](https://scripts.iucr.org/cgi-bin/cr.cgi?rm=pdfbb&cnor=eh5023&bbid=BB5) _J. Struct._ _Biol._ 195, 93–99. Esfahani, B. G., Randolf, P. S., [Peng,](https://scripts.iucr.org/cgi-bin/cr.cgi?rm=pdfbb&cnor=eh5023&bbid=BB6) R., Grant, T., Stroup, M. E. & Stagg, S. M. (2024). _[PNAS Nexus](https://scripts.iucr.org/cgi-bin/cr.cgi?rm=pdfbb&cnor=eh5023&bbid=BB6)_ 3, 284. Grant, T., Rohou, [A. & Grigorieff, N.](https://scripts.iucr.org/cgi-bin/cr.cgi?rm=pdfbb&cnor=eh5023&bbid=BB7) (2018). _eLife_ 7, e35383. [Jamali, K., Ka¨ll, L., Zhang, R., Brown, A., Kimanius, D. & Scheres, S.](https://scripts.iucr.org/cgi-bin/cr.cgi?rm=pdfbb&cnor=eh5023&bbid=BB8) H. W. (2024). _[Nature](https://scripts.iucr.org/cgi-bin/cr.cgi?rm=pdfbb&cnor=eh5023&bbid=BB8)_ 628, 450–457. Kimanius, D., Dong, L., Sharov, [G.,](https://scripts.iucr.org/cgi-bin/cr.cgi?rm=pdfbb&cnor=eh5023&bbid=BB9) Nakane, T. & Scheres, S. H. W. (2021). _Biochem._ _[J.](https://scripts.iucr.org/cgi-bin/cr.cgi?rm=pdfbb&cnor=eh5023&bbid=BB9)_ 478, 4169–4185. Lander, G. C., Stagg, S. M., [Voss,](https://scripts.iucr.org/cgi-bin/cr.cgi?rm=pdfbb&cnor=eh5023&bbid=BB10) N. R., Cheng, A., Fellmann, D., Pulokas, J., Yoshioka, C., [Irving,](https://scripts.iucr.org/cgi-bin/cr.cgi?rm=pdfbb&cnor=eh5023&bbid=BB10) C., Mulder, A., Lau, P. W., [Lyumkis, D., Potter, C. S. & Carragher, B. (2009).](https://scripts.iucr.org/cgi-bin/cr.cgi?rm=pdfbb&cnor=eh5023&bbid=BB10) _J. Struct. Biol._ 166, [95–102.](https://scripts.iucr.org/cgi-bin/cr.cgi?rm=pdfbb&cnor=eh5023&bbid=BB10) Li, S., Terashi, G., Zhang, Z. & [Kihara,](https://scripts.iucr.org/cgi-bin/cr.cgi?rm=pdfbb&cnor=eh5023&bbid=BB11) D. (2025). _Biochem._ _Soc._ _Trans._ 53 [, 259–265.](https://scripts.iucr.org/cgi-bin/cr.cgi?rm=pdfbb&cnor=eh5023&bbid=BB11) Li, Y., Cash, J. N., Tesmer, J. J. G. & Cianfrocco, M. A. (2020). _Structure_ 28 [,](https://scripts.iucr.org/cgi-bin/cr.cgi?rm=pdfbb&cnor=eh5023&bbid=BB12) 858–869.e3. Mastronarde, D. N. [(2005).](https://scripts.iucr.org/cgi-bin/cr.cgi?rm=pdfbb&cnor=eh5023&bbid=BB13) _J._ _Struct._ _Biol._ 152, 36–51. [Mendez, J. H., Chua, E. Y. D., Paraan, M., Potter, C. S. & Carragher,](https://scripts.iucr.org/cgi-bin/cr.cgi?rm=pdfbb&cnor=eh5023&bbid=BB14) B. (2023). _Curr._ _Opin._ _[Struct.](https://scripts.iucr.org/cgi-bin/cr.cgi?rm=pdfbb&cnor=eh5023&bbid=BB14)_ _Biol._ 83, 102729. Peng, R., Fu, X., Mendez, J. H., [Randolph,](https://scripts.iucr.org/cgi-bin/cr.cgi?rm=pdfbb&cnor=eh5023&bbid=BB15) P. S., Bammes, B. E. & Stagg S. M. (2023). _J._ _[Struct.](https://scripts.iucr.org/cgi-bin/cr.cgi?rm=pdfbb&cnor=eh5023&bbid=BB15)_ _Biol._ _X_ 7, 100080. [Punjani, A., Rubinstein, J. L., Fleet, D. J. & Brubaker, M. A. (2017).](https://scripts.iucr.org/cgi-bin/cr.cgi?rm=pdfbb&cnor=eh5023&bbid=BB16) _Nat._ _[Methods](https://scripts.iucr.org/cgi-bin/cr.cgi?rm=pdfbb&cnor=eh5023&bbid=BB16)_ 14, 290–296. Rohou, A. & Grigorieff, N. [(2015).](https://scripts.iucr.org/cgi-bin/cr.cgi?rm=pdfbb&cnor=eh5023&bbid=BB17) _J._ _Struct._ _Biol._ 192, 216–221. Scheres, S. H. W. (2012). _[J. Struct.](https://scripts.iucr.org/cgi-bin/cr.cgi?rm=pdfbb&cnor=eh5023&bbid=BB100)_ _Biol._ 180, 519–530. Sheth, L. K., Piotrowski, A. L. & Voss, N. R. (2015). _J._ _Struct._ _Biol._ 192, [222–234.](https://scripts.iucr.org/cgi-bin/cr.cgi?rm=pdfbb&cnor=eh5023&bbid=BB18) [Suloway, C., Pulokas, J., Fellmann, D., Cheng, A., Guerra, F., Quispe,](https://scripts.iucr.org/cgi-bin/cr.cgi?rm=pdfbb&cnor=eh5023&bbid=BB19) [J., Stagg, S., Potter, C. S. & Carragher, B. (2005).](https://scripts.iucr.org/cgi-bin/cr.cgi?rm=pdfbb&cnor=eh5023&bbid=BB19) _J. Struct. Biol._ 151, [41–60.](https://scripts.iucr.org/cgi-bin/cr.cgi?rm=pdfbb&cnor=eh5023&bbid=BB19) Tang, G., Peng, L., Baldwin, P. [R., Mann,](https://scripts.iucr.org/cgi-bin/cr.cgi?rm=pdfbb&cnor=eh5023&bbid=BB20) D. S., Jiang, W., Rees, I. & Ludtke, S. J. (2007). _J._ _[Struct.](https://scripts.iucr.org/cgi-bin/cr.cgi?rm=pdfbb&cnor=eh5023&bbid=BB20)_ _Biol._ 157, 38–46. Wagner, T., Merino, F., Stabrin, [M.,](https://scripts.iucr.org/cgi-bin/cr.cgi?rm=pdfbb&cnor=eh5023&bbid=BB21) Moriya, T., Antoni, C., Apel [baum, A., Hagel, P., Sitsel, O., Raisch, T., Prumbaum, D., Quentin,](https://scripts.iucr.org/cgi-bin/cr.cgi?rm=pdfbb&cnor=eh5023&bbid=BB21) [D., Roderer, D., Tacke, S., Siebolds, B., Schubert, E., Shaikh, T. R.,](https://scripts.iucr.org/cgi-bin/cr.cgi?rm=pdfbb&cnor=eh5023&bbid=BB21) Lill, P., Gatsogiannis, C. & [Raunser,](https://scripts.iucr.org/cgi-bin/cr.cgi?rm=pdfbb&cnor=eh5023&bbid=BB21) S. (2019). _Commun._ _Biol._ 2, [218.](https://scripts.iucr.org/cgi-bin/cr.cgi?rm=pdfbb&cnor=eh5023&bbid=BB21) [Zheng, S. Q., Palovcak, E., Armache, J. P., Verba, K. A., Cheng, Y. &](https://scripts.iucr.org/cgi-bin/cr.cgi?rm=pdfbb&cnor=eh5023&bbid=BB22) Agard, D. A. (2017). _[Nat.](https://scripts.iucr.org/cgi-bin/cr.cgi?rm=pdfbb&cnor=eh5023&bbid=BB22)_ _Methods_ 14, 331–332.

섹션 본문 49문단 · 43,082자

(제목 없음)

1Single-particle cryo-electron microscopy (cryo-EM) has revolutionized structural biology by enabling high-resolution determination of macromolecular structures.However, the field faces challenges in data management, processing workflow integration and software extensibility.We present Magellon, an innovative cryo-EM software platform that addresses these challenges through a modern microservices architecture.Magellon consists of an extensible backend with a web based frontend that we call Magellon Viewer.Together, these combine high-performance computing capabilities with an intuitive user interface, enabling researchers to efficiently process and analyze cryo-EM data.The platform's distinguishing features include a plugin based architecture, distributed processing capabilities, comprehensive monitoring systems, and a novel approach to data organization and visualization.A key philosophy of the approach is that the Magellon backend provides a platform that uses robust industry-standard libraries to orchestrate computational tasks while offering users and developers flexibility in selecting the computational resources for performing calculations.Magellon represents a significant advancement in cryo-EM software infrastructure, offering flexibility, scalability and extensibility while maintaining ease of use.

Introduction 1.Cryo-EM and automation

2Automation has played a pivotal role in the explosive growth of single-particle cryogenic electron microscopy (cryo-EM) and the accessibility of the technique to investigators who are not experts in electron microscopy.Automated tools and software can be found in all stages of cryo-EM structure determination, including specimen preparation (Darrow et al., 2019;Esfahani et al., 2024), data collection (Suloway et al., 2005;Mastronarde, 2005) and image analysis ( et al., 2009;Kimanius et al., 2021;Punjani et al., 2017;Rosa-Trevı ´n et al., 2016;Grant et al., 2018).The development and implementation of such tools has had a transformative impact on the field of structural biology, as they render the complex process of single-particle cryo-EM structure determination more tractable, repeatable and systematic.

3The increased use of cryo-EM structure determination has been accompanied by an expanded collection of academic software for data processing, which continues to grow (Cheng & Yu, 2024;Mendez et al., 2023;Li et al., 2025).This growth has been accelerated by the rise of machine learning in computer vision, which has been integrated into nearly all aspects of the cryo-EM image analysis pipeline (Bepler et al., 2019;Li et al., 2020;Jamali et al., 2024;Wagner et al., 2019).The software packages developed to address the various steps of data processing can be classified into three primary types:

4(1) comprehensive, all-in-one packages such as cryoSPARC (Punjani et al., 2017) or EMAN2 (Tang et al., 2007), where each processing step has been coded individually in the software package environment; (2) hybrid packages, such as Scipion (de la Rosa-Trevı ´n et al., 2016), Relion (Scheres, 2012), Appion (Lander et al., 2009) or cisTEM (Grant et al., 2018), which integrate both native algorithms and external software through wrapper interfaces; and (3) customized, bespoke data processing pipelines, where individual investigators install the stand-alone programs and write convenience scripts to shuttle data between them.The advantage of the all-in-one packages is that they are relatively easy to install and learn to use, but have limited flexibility and extensibility.In contrast, bespoke pipelines, while highly customizable, can be complex to set up and difficult to manage.Hybrid software packages aim to combine the advantages of both approaches by providing a standardized interface that integrates both native algorithms and external software.

5Hybrid systems and bespoke pipelines face several technical architecture challenges that affect workflow efficiency and the longevity of the software.One major problem is the complexity of software integration, as these systems often struggle to seamlessly integrate multiple processing tools and algorithms.Within the same vein are issues with data organization -when databases are incorporated into a software package, there is usually a lack of robust methods for portable data organization, which creates problems for inter-facility transfers.Scalability constitutes an additional limitation, with systems often unable to smoothly scale from personal workstations to large computing clusters.Finally, introducing new functionality can present considerable barriers, as integrating new software or algorithms typically demands comprehensive knowledge of the underlying codebase.

6We present here a new hybrid software package, Magellon, an extensible platform designed to enable intuitive, point-andclick data viewing, organization and analysis.Notably, the platform is open source, flexible and designed for crosscompatibility across different operating systems.Magellon employs a microservices architecture to enable independent scaling of components, while its plugin based design facilitates seamless integration of new algorithms without modifying core code.Considerable effort was devoted to the design of Magellon's backend, making it deployable and consistent across different computing environments, including Windows, Linux and MacOS.Additionally, Magellon employs industrystandard libraries and modern protocols to enable installation on personal laptops while maintaining scalability to datacenter-sized infrastructure.As a demonstration of Magellon's capabilities, we developed the Magellon Viewer -a web based, interactive frontend built with React JavaScript that leverages the Magellon backend.The platform's modular design enables research teams to customize or replace components, such as the Viewer, with specialized interfaces tailored to specific needs, or even develop alternative frontends for particular applications.With potential for future expansion through micro-frontends, Magellon is positioned to become a critical component of cryo-EM cyberinfrastructure, supporting both individual researchers and large research groups.

Design principles

7The foundational philosophy behind Magellon is that it should be a platform-as-a-service (PaaS) tool for cryo-EM data processing and algorithm deployment.The architectural core of Magellon is structured to handle database organization, job submission and user accounts.Additionally, Magellon offers extensible tool implementation through a well defined plugin/toolbox interface in addition to enabling portability for data import/export.The combination of these tools establishes a foundational platform that can be used for data viewing and processing in a web-tool named the Magellon Viewer.This design ensures that training and maintenance remain manageable while promoting extensibility, thereby enabling the broader scientific community to contribute features and enhancements so that development is not limited to the core Magellon developers.

Magellon backend

8The Magellon backend comprises a central data orchestration framework and a set of plugins, functioning similarly to a microservices environment where each component operates independently (Fig. 1).This design offers flexibility, scalability and maintainability.The backend manages primary tasks, schedules jobs and handles communication between plugins, while the plugins encapsulate specific algorithms that function as independent services.Magellon was designed to use resources available either on the host computer or across a network by leveraging representational state transfer (REST) programming.Using the REST framework, tasks are allocated to different workers that can reside on any computer accessible over the network with the Magellon software installed.To further the robustness of our backend infrastructure and accommodate ease-of-use for developers aiming to extend or interact with Magellon tasks, we developed a Magellon application programming interface (API).The REST API framework was written using FastAPI (https://fastapi.tiangolo.com) and Swagger (https://swagger.io)(Fig. 1), and enables task requests to be transmitted over a network.FastAPI provides for separation of controllers for each purpose (e.g.separate controllers web, database, processing etc.) and enhances code organization and readability, while Swagger provides an interface for API documentation and testing.

9To effectively manage the diverse processing tasks that could be carried out within the Magellon interface, which could range from seconds to hours of computational time, a robust task manager was implemented using RabbitMQ (https://www.rabbitmq.com)for message queuing and management (Fig. 2).RabbitMQ is an open-source message broker with established reliability and efficiency in handling asynchronous communication between distributed systems.RabbitMQ serves as the central orchestrator for Magellon processing while the FastAPI backend serves as the central coordinator, managing task distribution, monitoring execution status across the distributed system and triggering dependent processing steps based on task completion.This computational organization structure ensures that tasks are efficiently scheduled, queued and executed across various computational resources, optimizing Magellon's performance and scalability.

10The Magellon RabbitMQ implementation includes systematic error logging, retry mechanisms with exponential backoff and failure escalation protocols.Failed tasks are automatically logged with detailed error messages, and the system supports configurable retry policies with dead letter queues for permanently failed tasks.When plugins fail, the architecture ensures that failures remain isolated and do not propagate system-wide.The queue management prevents data loss and maintains processing continuity.An advantage of this approach is that data processing is very robust against processing interruptions; the whole system can be restarted and the processing will continue where it left off.

11Maintaining consistent and validated data exchange between different REST clients is crucial to Magellon's efficiency and the integrity of analyses.To this end, Magellon employs Pydantic models (https://docs.pydantic.dev)for data structuring and validation, including the consistent serialization and deserialization of messages as Pydantic-validated JSON.Pydantic is a Python library designed for data parsing and validation that integrates seamlessly with FastAPI and Swagger frameworks.Pydantic ensures that incoming data adheres to the defined schemas and formatting requirements, thereby minimizing the risk of errors occurring during Magellon REST computational architecture and API framework.The heart of Magellon is the Magellon API which utilizes industry-standard libraries and frameworks that altogether form the Magellon backend.The Magellon Viewer frontend and plugins connect to the backend through standardized outlets that enable extensibility of the platform.processing interactions.For example, in Magellon there is a Pydantic model for images (ImageDtoBase) that defines all of the metadata and types (e.g.stage position, image shift, spot size, beam intensity, pixel size etc.) that are expected for a TEM image being imported.Thus, data import is standardized regardless of what instrument or software is used for data acquisition.By standardizing data formats in this manner, Magellon facilitates streamlined interactions within the platform, simplifying and standardizing the development process.

Frontend: Magellon Viewer

12The Magellon Viewer is entirely web based to maximize accessibility, ease of interaction, and exposure of users to their data and metadata while simultaneously leveraging the suite of backend Magellon tools.The web navigation is designed to be intuitive, being primarily image based with a hierarchical organization of the low-and high-magnification images that comprise a dataset.Relevant metadata are prominently displayed and accessible, ensuring that users can access any associated information with a dataset (e.g.microscope and detector settings).Web pages are generated dynamically, and interactivity is achieved through JavaScript using the React framework (https://react.dev),which ensures a responsive and seamless user experience.

13Interaction between the frontend and backend is facilitated through RESTful API calls.When a user interacts with the web interface, such as by selecting a dataset or processing task, the frontend sends requests to the backend via the Magellon API.Processed data are communicated to the frontend, updating the interface in real time to enable navigation of large datasets, track the status of processing jobs and review results instantly.Associated metadata are displayed in a structured and user-friendly format, often alongside corresponding images.For instance, metadata such as acquisition parameters (e.g.kiloelectronvolts, magnification) and processing results [e.g.particle selection, contrast transfer function (CTF) estimation] are integrated into the display.The metadata are dynamically loaded from the backend, ensuring that any updates or changes made during data processing are immediately reflected in the interface, which is particularly important for users to make informed, real-time decisions based on the incoming data.

Magellon database structure

14To handle the complexity of metadata associated with a cryo-EM data collection experiment, Magellon employs the relational database MySQL (https://www.mysql.com)for efficient storage and retrieval.Magellon database interactions utilize the SQLAlchemy Python libraray with Pydantic models for validation and serialization.Many concepts were taken from the database architecture developed previously for the data acquisition software Leginon (Suloway et al., 2005), but the Magellon database is greatly simplified to facilitate easier data export and transfer between data collection sites.A potential problem in designing a database where the metadata can be transferred between different physical locations is that a mechanism is needed to ensure that primary keys are not duplicated.Thus, to avoid primary key conflicts, we use universally unique identifiers (UUIDs) as primary keys.This guarantees that all systems have globally unique IDs for their image records, allowing different databases to be merged readily into one database without concerns about conflicts.There is no built-in UUID column type in MySQL, thus UUIDs (UUID version 4 -random) are stored as binary( 16) by removing four characters and storing each two hexadecimal numbers in a single byte.The full database schema are available for viewing on the Magellon website (https:// magellon.org).

Magellon adaptors to enable cross-software compatibility

15Magellon was developed to be agnostic to the software used for data collection.Data and metadata are ingested and assigned to unified metadata fields so that the import process is the same for all data collection packages.This approach is accomplished with a Magellon translator layer that populates defined metadata fields and inserts them into the Magellon database.Pieces of code, called 'Adapters', read metadata from different data collection packages and interface with the translator to enable imports from various software sources.Adapters have been written for the data collection software packages Leginon (Suloway et al., 2005) and Thermo Fisher Scientific EPU, and adapters for SerialEM (Mastronarde, 2005) and Gatan Latitude are currently under development (Fig. 3).Additionally, Magellon import/export utilities have been written to enable data transfer between different sites.

Magellon's plugin interface offers flexible incorporation of software tools

16Magellon is designed with an open architecture that promotes extensibility, facilitated by a robust plugin system that streamlines the testing and integration of new algorithms [e.g.CTF, fast Fourier transforms (FFTs), particle picking, frame alignment etc.].Built on a microservices architecture, each data processing algorithm exists as a distinct plugin or microservice, offering significant advantages over monolithic designs.Plugins can be independently developed, tested, published and shared, while also being deployable on separate systems or via containers with isolated dependencies.Each plugin functions as a self-contained FastAPI project encap- sulating a single algorithm, ensuring modularity and independent development cycles.This approach not only enhances scalability but also simplifies deployment through containerization technologies like Docker and orchestration tools like Kubernetes (https://kubernetes.io).

17Magellon's plugin architecture draws inspiration from the Akka framework's (https://akka.io)actor model, where each plugin operates as an independent actor within the system.Plugins communicate with the backend exclusively through message-passing via RabbitMQ, maintaining dedicated message queues that enable asynchronous task processing, state isolation and operation encapsulation.This approach offers significant advantages: it prevents individual plugin failures from affecting the entire system; hierarchical supervision automatically restarts failed plugins; and state preservation mechanisms safeguard data during interruptions.The design ensures location transparency, allowing plugins to be relocated or scaled without system disruption.By utilizing message-passing for parallelization, the architecture efficiently manages resources and minimizes bottlenecks while enabling horizontal scaling and dynamic resource allocation.Further, each plugin's isolated memory space ensures optimal memory management and reduces conflicts.These architectural choices make Magellon's plugin system inherently extensible, scalable and resilient, enabling cryo-EM algorithm developers in the community to deploy their specialized algorithms as Magellon plugins without concerning themselves with peripheral challenges like data management, system control, pipeline configuration or parallelization.Developers can thus focus exclusively on algorithm development while Magellon handles the infrastructure.

Flexible Magellon deployment for individual users or large facilities

18Magellon was designed with a 'deploy anywhere' philosophy, emphasizing ease of installation while maintaining flexibility for diverse computational environments.This approach directly addresses the software compatibility and installation challenges commonly faced in hybrid computing infrastructure projects.The deployment architecture supports both simple single-machine installations for individual researchers and complex distributed setups for large facilities, achieved through two complementary approaches: Docker Compose for containerization and a custom command-line interface (CLI) for management.

19Magellon's deployment architecture accommodates three primary scenarios: single-machine, distributed and hybrid deployment.In the single-machine deployment regime, all components of Magellon run on one computer while maintaining isolation through containerization, requiring minimal configuration yet providing full platform functionality.For distributed deployment, Magellon components can be installed across multiple networked computers, with each component placed strategically to utilize specialized hardware (such as GPU clusters) while maintaining seamless system-wide communication.In hybrid deployment installations, Magellon can bridge local resources with cloud infrastructure, allowing researchers to maintain core functions locally while dynamically expanding processing capabilities to external resources as needed.This flexibility ensures that Magellon can adapt to computational needs in a cost-effective manner, enabling dynamic scaling, burst processing for large datasets and geographic distribution of workloads.Together, these flexible deployment options ensure that Magellon can adapt to a wide range of user needs and institutional scales.

20Magellon's modular architecture enables distributed deployment, where each component can be installed on separate machines across a network.This distribution capability allows components to be strategically placed on hardware optimized for their specific requirements, such as GPU-accelerated nodes for computation-intensive plugins or high-memory servers for database operations.The system's components automatically discover and communicate with each other through standardized APIs and message queuing, functioning cohesively as an integrated platform, regardless of physical location.This functionality is facilitated through the use of Consul, which is an open-source networking and service discovery tool for dynamic, distributed environments.Consul provides a registry where services can register themselves and discover other services, streamlining communication in microservice architectures.

21This architecture provides both forward compatibility and scalability.Research facilities can manage their project uniformly through a single Magellon instance distributed across their infrastructure.The platform supports both vertical scaling (adding more CPUs, GPUs or storage to existing nodes) and horizontal scaling (incorporating additional computers or compute nodes into the system) without requiring architectural redesign.Moreover, with proper network configuration, Magellon enables geographic distribution of resources.Conceivably, a facility could maintain data storage in one location (e.g.Florida) while leveraging idle GPU resources at another institution or the cloud, creating a federated computing environment that maximizes resource utilization across sites.

22There are two mechanisms for deployment, depending on the computational needs and expertise of the end user.For single workstation deployment, individual components have been containerized using Docker.A single Docker compose command can install all of the necessary dependencies onto a workstation of interest.For developers or on distributed systems, there is a CLI tool that was developed as a lightweight standalone executable.The CLI handles deployment, setup and management of both the Magellon core system and its plugins.Its design is platform-agnostic and has been tested on Windows, Linux and macOS.A single command, magellon install app, initiates the entire installation process.This command handles all the necessary environment setup and configuration, ensuring that users can get started with minimal effort and eliminating the need for manual configuration steps.The CLI simplifies the development process with the commands magellon development setup and magellon development load, which automatically configure the environment and load necessary dependencies.Together, these deployment tools provide a highly accessible and flexible entry point for users and developers, lowering barriers to adoption and promoting community-driven expansion of Magellon's capabilities.

23Plugin management is also handled with the Magellon CLI.Developers can create and deploy plugins using the commands magellon plugins create init, magellon plugins create myctf and magellon plugins deploy myctf.Likewise for end users, plugin discovery and installation are handled with the command magellon plugins list -a -s:author, which allows users to browse available plugins, while magellon plugins install myctf@latest enables seamless installation of specific plugins.The CLI makes it straightforward for users to expand Magellon's functionality with minimal effort, without needing deep technical knowledge.

Data collection for demo

24A small cryo-EM dataset was collected to demonstrate the functionality of Magellon for data import, management and processing.Mouse heavy-chain apoferritin from a plasmid gifted by Dr Masahide Kikkawa (Danev et al., 2019) was expressed and purified as described previously (Peng et al., 2023).UltraAuFoil R1.2/1.3 300 Mesh grids were plasma cleaned for 50 s at 7 W with 25% oxygen, 75% argon (Gatan Solarus 950).Cleaned grids were loaded onto Vitrobot Mark IV at 100% humidity (4 � C). 4 ml of apoferritin was applied to the grids which were blotted for 1 s at zero force before being vitrified in liquid ethane.Data were collected on a Titan Krios microscope (ThermoFisher Scientific) operated at 300 kV with a 50 mm C2 aperture and 100 mm objective aperture and equipped with a DE Apollo direct detector.Images were acquired using Leginon (Suloway et al., 2005).For highmagnification exposures, the Apollo was set in 8k � 8k superresolution mode at a magnification of 59 000� with a superresolution pixel size of 0.395 A ˚.The movie frame rate was fixed at 60 frames per second.

Deploying Magellon and importing data

25As described above, Magellon can be installed and run using Docker or installed manually by setting up the required dependencies.Detailed instructions for both methods are available on the Magellon website (https://magellon.org) or the ReadMe file included with the source code.To help new users become familiar with Magellon, the code is accompanied by a test dataset that can be used to explore Magellon functionality.This small test dataset of vitrified apoferritin has been deposited in the Electron Microscopy Public Image Archive (EMPIAR) under the accession number EMPIAR-11254.The entry includes all 310 images associated with the dataset, including low-magnification images and 218 highmagnification exposures with accompanying movies.

26To streamline data handling operations, we utilized Adaptors within Magellon to build a web tool for Magellon import/ export, which enables users to import the test dataset seamlessly into the Magellon Viewer.We tested import on a variety of computers and platforms (Table 1).The test data includes both integrated micrographs and movies.During the import process, Magellon ingests associated metadata, creates image files and thumbnails for every image in PNG format, precalculates power spectra for every image and estimates the CTF for every image with a pixel size smaller than 5 A ˚per pixel.Since the distribution is containerized using Docker, the processing operations are platform-independent and the Linux binaries that Magellon wraps can be executed seamlessly on a variety of Linux distributions, Mac OS and Windows: essentially any OS for which Docker is compatible.The program MotionCor2 serves as the default Magellon frame alignment plugin, so the frame alignment jobs will only execute on computers that are equipped with a compatible Nvidia GPU.However, the Magellon import process will proceed regardless of the presence of a GPU, enabled by the robust fault tolerance of RabbitMQ, which allows for the execution of jobs independently without the failure of one job propagating throughout the system.

27We recommend that new users of Magellon become acquainted with the software by importing the test dataset and following the step-by-step demonstration included in our user guide.This demo provides an overview of Magellon's key features and helps users understand how to integrate their own data into the system.

Interacting with Magellon Viewer

28The first step for starting a session with Magellon Viewer is filling out a web based metadata form containing information about the user's data.On completion, the user submits the import job, which triggers a series of customizable processes including metadata import, transfer of raw data to its final location, frame alignment and CTF estimation.Import can occur concurrently with data collection and the data processing occurs on-the-fly.

29The Magellon Viewer graphical user interface was designed to maximize the visibility of the data and metadata.The interface is organized into four main sections: an atlas viewing section at the top left, a hierarchical image browser below the atlas section, a metadata display section on the upper right and a large interactive image viewer below the metadata section (Fig. 4).Users are presented with images representing the Clicking on an atlas image reveals all the associated lowmagnification images in the hierarchical browser, providing an overview of data acquisition at different scales.Colored bounding boxes highlight images that served as the basis for targeting higher-magnification acquisitions, visually guiding users through the imaging hierarchy.

30When a user selects an image from the hierarchical browser, a full-resolution version is displayed in the interactive image viewer.This viewer offers a range of built-in tools, including the ability to display precomputed FFTs, a measuring tool for estimating distances or dimensions, and an interactive particle picker for manual or assisted particle selection.Key metadata, such as CTF estimation results, magnification and pixel size, are prominently displayed above the viewer for immediate reference.Full metadata records, including all recorded microscope parameters, camera settings and processing metadata are readily accessible through an expandable tab, enabling users to intuitively retrieve detailed information about each image and the corresponding acquisition conditions.This integrated, data-centric design ensures that users can efficiently navigate complex datasets, assess image quality and manage data collection strategies within a single unified platform.

Plugin development: CTFFIND4 and MotionCor2

31Two plugins have been developed for Magellon that serve as examples for future plugin developers.These two plugins carry out the initial image analysis processes that are universally performed on all cryo-EM data -frame alignment/doseweighting and CTF estimation.Each type of image analysis process in Magellon is designated to a specific plugin category with defined metadata that are provided from Magellon to the plugin.Likewise, outputs are generated with the expected syntax, format and in an organized fashion.The inputs and outputs are managed by specific queues in the Magellon process manager controlled by RabbitMQ.Since inputs, outputs and metadata to and from the plugin are in a predefined format, the Magellon backend can handle queries, insert metadata into the Magellon database and generate organized output files.As Magellon continues to develop, more types will be developed (e.g.particle picking, image assessment etc.).This approach grants flexibility to developers, so that standardized inputs and outputs can be directed to any new algorithm, eliminating the need to rebuild or reconfigure the entire system.

32The CTF estimation plugin was developed using the widely adopted CTFFIND4 program (Rohou & Grigorieff, 2015).To The Magellon viewer.The viewer shows atlases for a given session at the top left.A hierarchical image navigator is featured at the bottom left which allows users to navigate between lower magnification images and their higher magnification children.The center features an interactive viewer with associated metadata.manage task submission and execution, we established two RabbitMQ queues: an input queue for receiving processing requests and an output queue for returning results.The task is generated based on user-defined input parameters and submitted through the input queue.The input queue consumer retrieves each task and initiates the CTF estimation process, which comprises two main phases: CTF estimation and CTF evaluation.During the estimation phase, a command-line instruction for CTFFIND4 is dynamically generated using the input parameters and executed via a subprocess call to the CTFFIND4 binary.If an error occurs during execution, an error response is generated and returned; if successful, the outputs, including CTF parameters and diagnostic images, are captured for further evaluation.Following estimation, a secondary evaluation phase is conducted using quality metrics originally implemented in Appion (Sheth et al., 2015).The outputs from CTFFIND4 are subsequently analyzed, and all relevant metadata needed for CTF evaluation are collected and stored.Each request is assigned a unique directory, ensuring organized storage of output files and associated metadata.Outputs are formatted consistently across all plugins, then passed to the output queue for downstream processing.The result processor plugin subsequently retrieves and organizes the outputs, saving files to designated folders and recording metadata entries in the database.Outputs are classified into relevant categories -such as CTF or frame alignment -allowing seamless integration with the broader data management infrastructure.To ensure platform independence and facilitate deployment across diverse computing environments, both CTFFIND4 and the associated CTF evaluation code were containerized using Docker.

33The frame alignment plugin follows a similar architecture to the CTF plugin and was developed using the MotionCor2 program (Zheng et al., 2017).Like the CTF pipeline, frame alignment uses two dedicated RabbitMQ queues -one for input and one for output -to manage task submission and result handling.Because MotionCor2 leverages GPU acceleration, special care was taken to ensure that all GPU drivers, libraries and dependencies were correctly installed and compatible with the version requirements of the software.On receiving a task from the input queue, the plugin dynamically generates the appropriate MotionCor2 command using metadata retrieved from the Magellon database and executes the command via a subprocess.Log files, aligned micrographs and associated outputs generated during processing are systematically collected, organized into structured folders and registered within the database via the output queue.To promote platform independence and reproducibility, MotionCor2 and its supporting components were containerized in a dedicated Docker image, so that the plugin runs consistently on any machine equipped with an appropriate Nvidia GPU.

34Integration of all processing plugins into the Magellon core service in this manner ensures seamless operation within the broader platform.Task creation for plugins is automated by querying the necessary input metadata from the Magellon database and dispatching processing tasks to the appropriate input queues.The core service coordinates the execution of plugins by managing task scheduling, monitoring process status, and ensuring that outputs are appropriately stored and categorized.This modular and standardized architecture not only streamlines cryo-EM data processing but also facilitates extensibility, enabling straightforward incorporation of new algorithms and tools into the Magellon framework.

Magellon's Swagger interface: a web based description of tools within Magellon

35To enhance transparency, flexibility and ease of customization, Magellon provides users with direct access to backend services through an integrated Swagger interface.Swagger is an open-source tool for visualizing and interacting with RESTful APIs in a user-friendly, web based format.Rather than requiring users or developers to interact directly with the underlying codebase, Magellon exposes key backend functions through Swagger, which enables users to query data, launch processing jobs, manage configurations and automate workflows directly through a point-and-click web interface.

36Users who install Magellon through the demo Docker containers can access the Magellon-Swagger interface by navigating to the website, https://localhost:8000/docs.Through this portal, users and developers can view detailed documentation of available backend functions, including descriptions of required input parameters and expected outputs.For example, users can retrieve specific dataset metadata, submit processing jobs or perform individual processing tasks.This design lowers the barrier for advanced usage and extension of Magellon, offering a straightforward pathway for users to explore backend capabilities and for developers to build custom features.

37To introduce users to the Swagger interface, we implemented a standalone 2D lowpass filter function, which allows users to apply a lowpass filter to images already imported into Magellon or to new images uploaded by the user for on-the-fly filtering.Importantly, this example provides an accessible entry point for developers who want to begin building and testing their own image-processing algorithms within Magellon.Users can use this tool to selectively process individual images rather than the full dataset, showing how developers can quickly prototype and validate their routines in a lightweight, low-barrier environment.The lowpass filter plugin thus serves as a template for developers interested in contributing new functionality to the Magellon backend, demonstrating how custom processing functions can be exposed through the Magellon API and integrated into the larger workflow.Additional documentation and tutorials on how to use the Swagger interface, including examples for extending Magellon with new processing modules, are available on the Magellon website (https://magellon.org).

Discussion

38New algorithms are continually being developed for cryo-EM from many different sources, each with its own dependencies.

39Integrating these new algorithms into a given processing pipeline represents a significant challenge for both developers and end users.A key aspect of Magellon is extensibility, and we have developed a plugin infrastructure that enables investigators to develop and deploy new utilities for cryo-EM data processing.We have developed two initial plugins including one for CTF estimation and one for frame alignment that serve as examples for future development.

40Magellon's architecture aligns with a broader shift in how cryo-EM data collection and processing are evolving.While current tools such as Thermo Fisher's CryoFlow, cryoSPARC Live, and modules built around Leginon and SerialEM data collection software enable users to preprocess data and adjust acquisition parameters in real time, Magellon takes this concept significantly further.We envision a seamless, decoupled workflow wherein data collection and analyses are no longer tied to the same physical location, but remain fully integrated operationally.Magellon's microservice based deployment model and data management capabilities uniquely position it to enable this vision.For example, a researcher could initiate a data collection session at a remote facility through the Magellon web interface.As micrographs are acquired, they would immediately appear in the researcher's browser -without any visible indication that behind the scenes, raw data are being (1) temporarily cached at the facility, (2) automatically transferred to high-performance cloud storage, (3) registered in a globally distributed Magellon database, (4) processed by dynamically provisioned cloud compute resources and (5) possibly being hosted at a geographically distant site, as the researcher visualizes the images through a web interface.The user remains shielded from the complexity of the underlying infrastructure, experiencing a unified and seamless workflow regardless of where the physical resources are located.

41This location-transparent approach democratizes access to advanced cryo-EM capabilities, benefiting researchers in small laboratories or users of large research centers.Institutions without extensive local infrastructure could leverage cuttingedge microscopes and cloud based computational power without costly investments in hardware that rapidly becomes obsolete.Collaborators at different institutions could simultaneously view and analyze datasets in real time, thanks to Magellon's ability to ensure a consistent and integrated view of project status and data processing.For facility managers, the architecture offers flexibility and scalability: computational resources can be dynamically scaled to meet demand, with operational costs tied directly to usage rather than fixed infrastructure capacity.Moreover, processing jobs could be routed to regions with lower-energy costs or available surplus compute capacity, improving both cost efficiency and environmental sustainability.Magellon's current design, which separates data management, visualization and processing components, lays the critical foundation for this future, where physical resource constraints are minimized and scientific inquiry can proceed with unprecedented fluidity and reach.

42While the current release of Magellon is mature in terms of the computational infrastructure and deployment, there remain several features that have not yet been implemented.For instance, the database and web frontend were built with the capacity to accommodate multiple users with role based and attribute based access control, but this has not been implemented in the current release.Likewise, the data processing workflow assumes the standard workflow for cryo-EM data processing (e.g.CTF estimation) and frame alignment.In future versions, users will be able to customize their workflows as more plugins such as particle pickers or micrograph assessors become available.

43In the coming years, we anticipate that Magellon will evolve into a comprehensive cryo-EM data collection and viewing platform that will continue to integrate algorithms and software to enhance data acquisition efficiency.We plan to expand the plugin ecosystem, introducing additional tools for particle picking and image classification while simplifying capacity for user based development through a dedicated CLI, reusable SDK and robust documentation.A centralized plugin hub will facilitate sharing and collaboration among researchers, leading to new discoveries.The Magellon backend sets the foundation for future data collection tools that will leverage its database-backed processing infrastructure, enabling integration with Magellon Viewer for real time data visualization and assessment.Direct instrument integration will enable realtime control and data capture from the microscope and detectors, with the flexible infrastructure designed to accommodate both single particle as well as cryo-electron tomography data import, analysis and visualization.The current job management system will mature into a fully automated cryoEM data collection engine supporting advanced features that can distinguish appropriate regions for data collection and associated event triggers.Users will also benefit from a responsive supervision dashboard accessible from both desktop and mobile devices, permitting remote monitoring of collection sessions.Finally, we aim to streamline cloud deployment with one-click AWS implementation, enabling efficient cloud based data processing with intelligent resource management to optimize performance while minimizing costs.

Figure 2

44Figure 2 Task management in the Magellon backend.(1) Tasks are initiated from the frontend and passed to the Magellon API, (2) messages are published to the RabbitMQ message broker.(3) Messages (i.e.job requests) are placed in a job queue.(4) Jobs are passed to a data processing worker, where (5) the job runs.(6) When the job completes the outputs are published back to RabbitMQ.(7) RabbitMQ routes the results to the results processor that (8) inserts metadata into the Magellon database and saves the results to the appropriate paths in the file system and notifies the Magellon API of completion.

Figure 1

45Figure 1

Figure 3

46Figure 3Adapter code unifies metadata from multiple different input sources and inserts the data in a common format into the Magellon database.

Figure 4

47Figure 4

Table 1

48Example import performance for the Magellon test dataset.

49sample at every magnification used during data collection.

참고문헌

참고문헌 정보가 없습니다.