Exchange Data with Other Tools

← Back

Data Interoperability with Other Tools

Overview: Pasta-ELN supports data exchange with other tools. Import data from a Nextcloud server, synchronize between Pasta-ELN installations via an elabFTW server, and upload to repositories like Dataverse and Zenodo.

Nextcloud server integration

The add-on Import files from Nextcloud links files on a Nextcloud server into a project without copying them. Right-click a folder and select Project add-ons > Import files from Nextcloud, or use the project's More menu for the project folder. Double-click to open Nextcloud folders, select files, and click OK. PASTA-ELN writes one small pointer file (<name>.nclink) per selected file and scans the folder.

Credentials: on first use, a dialog asks for an instance name, the server URL, the login name, and an app password. Create the app password in Nextcloud under Personal settings > Security > Devices & sessions. PASTA-ELN stores the credentials encrypted in .nextcloud_credentials.json in the data folder. For servers with a self-signed certificate, set "verify": false in that file.

Extraction: during a scan, PASTA-ELN finds the remote file by its Nextcloud file ID, also after it was moved or renamed. If the file content changed since the import, the extraction reports an error. Files up to 100 MB are downloaded temporarily and processed by the extractor for their file type; larger files receive only the Nextcloud metadata.

Synchronize via ElabFTW server

Pasta-ELN installations share data through a project group (called storage block in the configuration) on an elabFTW server.

Setup by the elabFTW admin: create one resource of category ProjectGroup per project group. Do not archive it. All members need write access to it.

Setup by each user: in Other > Configuration > Project group, enter the server address and API key, select the storage block and click Verify. Pasta-ELN adds a note to the body of the resource that asks users not to edit it.

Data hierarchy: every synchronization saves the local data hierarchy (item types and their properties) in the metadata of the project group; the local data hierarchy always overwrites the server copy. To use the data hierarchy of the server, for example on a new installation, click the download button next to the storage block. This replaces the local data hierarchy after a confirmation. Manual edits of the server copy are validated; invalid copies are ignored and overwritten during the next synchronization.

Dataverse Repository

Dataverse integration allows publishing PASTA projects on the Dataverse platform. Projects are packaged as ELN files, datasets are created, metadata is published, and files are uploaded. Metadata configuration is customizable for dataset creation.

Steps to Obtain an API Key:

  1. Log in to your Dataverse instance.

  2. Navigate to "API Token" under user settings.

  3. Generate a new token.

  4. Copy and paste the key into the configuration.

Metadata Requirements:

  • title (string): defaults to the project title

  • author (string): defaults to the list of authors

  • datasetContact (string): defaults to the one in the list of authors

  • dsDescription (string): defaults to the project objective

  • keyword (list): defaults to the tags of this project

  • subject (choice): At least one subject from a controlled vocabulary

  • relatedPublications: is empty

Zenodo

Zenodo integration supports publishing PASTA projects. Metadata is customizable, and files are uploaded to Zenodo's main or testing instance (https://zenodo.org, https://sandbox.zenodo.org).

Steps to Obtain an API Key:

  1. Log in or create an account on Zenodo.

  2. Navigate to "Applications" under user settings.

  3. Generate a Personal Access Token with deposit:write and deposit:actions permissions.

  4. Copy and paste the key into the configuration.

Metadata Requirements:

  • title (string): defaults to the project title

  • creators (list of dicts: name, affiliation, orcid): defaults to the list of authors

  • description (string): defaults to the project objective

  • keywords (list of strings): defaults to the tags of this project

  • additional keys (dict): additional information

  • publication_date (YYYY-MM-DD): is today

  • upload_type (string, e.g. "dataset", "publication", etc.): is "dataset"

  • access_right (e.g. "open", "embargoed", "restricted", "closed"): is "open"

  • license (e.g. "CC-BY-4.0"): is "CC-BY-4.0"

  • related_identifiers (list of dicts: identifier, relation, resource_type): is empty

The research domain can be encoded in:

  • "keywords": ["machine learning", "neuroscience", "data science"]

  • "communities": [{"identifier": "neuroscience"}]

Comparison of Zenodo and Dataverse Terms

Dataverse

Zenodo

author

creators

datasetContact

Not required (optionally in creators or omitted)

dsDescription

description

subject keywords

communities (approx.)

keyword

keywords

publicationDate

publication_date

license (from termsOfUse)

license

language

language

series

No direct match

relatedPublications

related_identifiers

productionDate

No direct match

depositor (internal use)

Not explicitly captured

distributor

No direct match

software (if included)

upload_type = software or related_identifiers

notesText

description (as additional info)

fileDescription

File-level metadata (manually added in Zenodo)

geographicCoverage

No direct match (can go in description or keywords)

temporalCoverage

No direct match

dataSources

description (or none)

methods

description (or none)

← Back logo