🆕New features

Explore the documentation for the latest features introduced in the V1 release.

🖊️Code Editor

Starting from v1.5.0, MEDomicsLab introduces an integrated code editor, allowing users to seamlessly edit Python, text, Markdown, and JSON files directly within the platform. Built on the react-ace package, the editor offers a variety of themes and robust support for multiple file types. To get started, simply double-click any supported file in your workspace—it will open automatically in the editor, where you can make modifications and save your changes. Below are some screenshots showcasing the new editor in action:

Code Editor: how to open?
Code Editor Breakdown
Code Editor Example

👁️Views

In MongoDB, views are virtual collections created using aggregation pipelines, which allow you to transform and present data without physically storing it as a new collection.

What is a View in MongoDB?

A view in MongoDB is essentially a query that’s saved and accessible like a collection, but without actually storing any data. Views are read-only, which means you cannot modify data directly in a view. They are generated using aggregation pipelines, which transform and filter the underlying data from one or more source collections.

How Views Work

A MongoDB view is defined by an aggregation pipeline, which can be a series of stages to filter, group, sort, or transform documents from the source collection(s). When you query a view, MongoDB applies the defined aggregation stages to the source data on-the-fly, creating a "virtual" collection that shows the result of the pipeline.

MongoDB Views in MEDomicsLab

In MEDomicsLab, views primarily help prevent the creation of redundant dataset copies by enabling flexible data representation and access.

  1. They allow for simplified representations of complex data. For instance, you might have a large, detailed collection with multiple fields, but you create a view that only exposes the fields most relevant to certain users or applications.

  2. Views also facilitate direct access to processed data, supporting analytics like features extraction, models training, and other computed insights, making it easier for the each module to access the processed data directly.

Example Use Case

In MEDomicsLab, MongoDB Views are utilized to provide previews of datasets following a particular process, such as removing a column.

In this example:

Delete "Text" column clicked

once the delete "Text" column button is pressed, a preview panel appears, offering options to confirm, cancel, or save the changes as a view. Selecting "confirm changes" will apply the changes directly to the original dataset (i.e. will delete the "Text" column):

Delete "Text" column preview

while choosing "save as view" will create a new MongoDB View, preserving the changes in a separate collection. This new view will then appear in your workspace, allowing you to interact with the modified dataset without affecting the original:

Opening a saved view

MongoDB views provide flexibility in how you present and control access to data, allowing you to tailor data views to the needs of different users without modifying the original collections.

Last updated