Skip to content

Publishing Datasets

This guide explains how to publish private datasets to make them publicly accessible with a citable DOI and a preserved release state.

The publication workflow transforms a private dataset into a public, citable resource through a multi-step process:

  1. User Request - Dataset owner requests publication
  2. Checks - NEMAR screens the dataset for participant identifiers (see The identifier screen) and checks that BIDS validation passes
  3. Admin Review - NEMAR admin reviews and approves, with the screen’s result in hand
  4. Automated Orchestrator - System makes dataset public and assigns DOI
  5. Published - Dataset is public with permanent DOI

Before requesting publication, ensure your dataset:

  • Has been uploaded to NEMAR
  • Passes BIDS validation
  • Is complete and ready for public sharing
  • Has accurate metadata in dataset_description.json
  • Contains no information that identifies a participant, in file contents, recording headers or file names (the upload preflight and the publication screen both check; see Identifier screening)

Submit a publication request for your dataset:

Terminal window
nemar dataset publish request <dataset-id>

When the request is accepted, the command prints a confirmation and the screen’s current state, and then the same four-line notice every time, whatever the dataset (the dataset id is filled in):

Your request was received.
NEMAR is checking publication eligibility.
If every check passes, an administrator is notified to approve it.
Run 'nemar dataset publish status <dataset-id>' to see where it stands.

What happens next:

  1. Your request is recorded and the checks start: BIDS validation, and the identifier screen, which runs after the request is made.
  2. When the identifier screen reports, the NEMAR admins receive an email that states its result. If it cannot be started, fails, or never reports, they receive the email anyway, and it says so.
  3. If the screen finds a direct identifier, the request is blocked: you are emailed the kinds and counts it found, the admins are told too, and nobody can approve it until the data is fixed and the request is made again (see The identifier screen).
  4. Your dataset remains private until an administrator approves.
  5. You can check status at any time with nemar dataset publish status <dataset-id>.

The notice does not say more because the screen has not run yet when you read it, and its result belongs to a specific commit of your dataset. Read the outcome from publish status or from the email.

When your dataset declares an upstream source whose license needs the original authors’ evidence, nemar dataset publish request refuses the request before it records anything. There is no request, no review and no mail. It prints <dataset-id> needs license evidence before publication can be requested. Nothing was recorded., then what to send, from whom and where, and exits with code 2 (the code nemar dataset license-check uses for a lineage that needs action), so a script can tell this refusal from other failures.

The outcomes that need evidence are needs_permission, share_alike_mismatch, redistribution_prohibited and source_is_publication (see Lineage outcomes). A lineage that is unresolved, one that cannot be computed within 20 seconds, and any failure of the check let the request through as before; they are never your cure.

  1. Send the evidence to support@nemar.org, quoting the dataset id. For an upstream you can fix yourself (a paper named where the dataset belongs), name the dataset in SourceDatasets instead and request again.
  2. An administrator records it against the support ticket, and you get a reply on the ticket.
  3. Request publication again.

An administrator can record the evidence while no request is open: it is recorded against the dataset, and it covers the dataset’s next request with the same sources and the same license.

A request that was already open when the check found it needs evidence is closed by its review, not denied. nemar dataset publish status says closed: license evidence needed and prints the same message, and you are mailed once. A closed request is not a denial: it does not count toward the automatic denial’s limits, it carries no denial reason, and an administrator can restore it. Once the evidence is recorded, request again.

Check the status of your publication request:

Terminal window
nemar dataset publish status <dataset-id>

Possible statuses:

  • requested - Waiting for admin review
  • blocked - The request cannot be approved yet. The output says why (for example BIDS validation has not passed, the dataset does not meet the submission standards, or the identifier screen found a direct identifier) and what clears it
  • approving - Admin is running the publication process
  • published - Dataset is now public with DOI
  • denied - Request was denied (includes reason)
  • closed: license evidence needed - The request was closed, not denied, because the dataset’s upstream license needs evidence no recorded permission covers. Send the evidence, then request again (License evidence before the request)

Under the status, the command prints the request’s identifier screen as a headline and count lines, for example Identifier screen: needs review. The next section explains the words.

Every publication request is screened for information that identifies a participant. The screen is an automatic check that reads every European Data Format (EDF) and BioSemi Data Format (BDF) recording header, the participants and scans tables, JSON files that are not standard sidecars, and file names, and reports kinds and counts only. It runs after the request is made and is bound to the commit of your dataset’s main branch that it read. Identifier screening describes what it reads and, in one place, what it does not cover.

What the headline means for your request:

Headline What happens
Identifier screen: running The screen has not reported yet.
clean, clean (acquisition dates only), clean (no recordings) Nothing to act on; the request goes to an administrator as it is.
FOUND IDENTIFIERS The request is blocked and there is no override. Remove the information (for EDF and BDF files, the patient and recording fields of the header), push the change, and request publication again, which runs the screen again.
needs review, INCOMPLETE, recordings NOT screened, EDF/BDF clean, other recordings NOT screened An administrator may approve only with a recorded reason.
DID NOT RUN, DID NOT REPORT The screen did not produce a verdict. Approval waits for a run that does; an administrator can start one.

INCOMPLETE and the two failure headlines are never read as clean. A screen that did not run, did not finish or did not report is not a result, and neither is a request that predates the screen. The same goes for recordings in a format the screen cannot read: BrainVision, EEGLAB, FIF and other formats are counted and reported as not screened, never as clean.

If acquisition dates finer than year and month were found, the output also carries a five-line warning:

Warning: acquisition dates finer than year and month were found in recording headers or scans tables (N entries). NEMAR does not change them. A date can help identify a participant when it is combined with other information. Remove or coarsen any date that could identify someone before uploading or requesting publication. Administrators are told of these findings when publication is requested.

The warning never blocks or holds a request. N counts findings, not recordings, and “at least N” means the screen could not read everything. It is about dates that remain: nemar dataset upload and the first import of a dataset from OpenNeuro set the day and month of the dates they can read to 1 January, and a date on 1 January is not counted. The sentence “NEMAR does not change them.” is said only of dates NEMAR did not change. See Acquisition dates.

If admins haven’t responded, you can resend the notification:

Terminal window
nemar dataset publish resend <dataset-id>

This sends a reminder email to all admins without creating a duplicate request. While the identifier screen is still running the admins have not been mailed yet, so there is nothing to resend, and the command says so.

Once approved, you’ll receive an email containing:

  • Confirmation that your dataset is now public
  • Your permanent DOI (e.g., 10.82901/NEMAR.nm000104)
  • Link to the public dataset page
  • Citation information

Your dataset is now:

  • Publicly visible on GitHub
  • Protected by tag protection (versions are not modified, except for a privacy correction under the Takedown Procedure)
  • Backed by S3 storage with Object Lock on its data files
  • Citable with a permanent DOI

The published version of your dataset can hold a few files, or lines in files, that NEMAR generated and you did not upload. They are there so that people can find, cite and use the data, and each is listed here. NEMAR does not change your data files (except a privacy correction under the Takedown Procedure).

  • LICENSE, when you did not include one. The License field of dataset_description.json is your dataset’s license; a LICENSE file is optional. When the field names a license NEMAR holds the official text for (the Creative Commons 4.0 licenses and CC0 1.0), NEMAR adds LICENSE with one line naming the license and saying NEMAR added it, then that license’s official text, so anyone with a copy of the dataset has the terms it is shared under. A LICENSE file you included is never changed or replaced.
  • The DOI: DatasetDOI in dataset_description.json, and a DOI badge in the README, so the dataset says how to cite it.
  • NEMAR’s own metadata under .nemar/, with a line in .bidsignore that keeps the BIDS validator away from it, and a placeholder participants.tsv listing the subjects when the dataset has none.

NEMAR may add other generated files for the same reasons, for example a citation file; any it adds is listed on this page first.

NEMAR’s canonical dataset DOI is issued through EZID. A version workflow may create a non-public Zenodo draft as a best-effort archive backup, but that draft is not the dataset’s canonical DOI.

List all publication requests:

Terminal window
# All requests
nemar admin dataset publish list
# Filter by status
nemar admin dataset publish list --status requested
nemar admin dataset publish list --status approving
nemar admin dataset publish list --status denied

Output includes:

  • Dataset ID
  • Requesting user
  • Request date
  • Current status
  • Current step (if approving)
  • The request’s identifier screen: its headline, its counts by kind, the acquisition-date warning when one applies, and what approval needs next

Working through the requests: publish next

Section titled “Working through the requests: publish next”

publish list shows the queue; nemar admin dataset publish next walks the requests that need you, oldest first, one card at a time.

Terminal window
nemar admin dataset publish next
nemar admin dataset publish next --dataset nm000480
nemar admin dataset publish next --once

Each card is a few lines:

  • Who asked, for which version, and how long ago (an anonymous release says so).
  • Review: the review’s outcome and the suggested next action.
  • Missing or wrong: one line per blocker or concern finding, with a cross (x without a terminal or with NO_COLOR) when its question failed and ? when it could not be confirmed, and the review model’s note under it as plain text, cut to 160 characters.
  • Holds approval: what is not a question the review asks: the identifier screen’s acknowledgment, BIDS validation, the license lineage, the name against its upstream.

The words come from one table of closed fields, never from free model text. Press y to approve, n to deny, c to comment, d for everything the card used to say (every reason’s statement, cure and command, the decision card, the notes in full), s to skip and q to stop. On a terminal, n starts the denial reason as the “Missing or wrong” list with each note, as one line to edit before Enter sends it; it holds only what a depositor can act on. --json of publish show and every other command are unchanged.

A request closed for license evidence is not on the list: it is waiting for the depositor, and publish show says closed: license evidence needed.

Approve a publication request:

Terminal window
nemar admin dataset publish approve nm000104

The identifier screen comes first. Approval is refused until the request’s identifier screen allows it:

Screen What approval needs
clean, clean (acquisition dates only), clean (no recordings) Nothing more.
needs review, INCOMPLETE, recordings NOT screened, EDF/BDF clean with other recordings NOT screened --acknowledge-identifier-screen "<reason>", a reason of 10 to 500 characters that is recorded with your name.
FOUND IDENTIFIERS Nothing can approve it. The depositor fixes the data and requests again.
DID NOT RUN, DID NOT REPORT, or a result for a commit that main has moved past A new run: nemar admin dataset publish screen <dataset-id>.
Terminal window
nemar admin dataset publish approve <dataset-id> --acknowledge-identifier-screen "Reviewed the listed kinds; none identifies a participant"
nemar admin dataset publish screen <dataset-id>

How the screen runs, what the email says, and what to do when it does not report: Identifier screening operations.

Interactive confirmation: The CLI will show you:

  • Dataset information
  • Requesting user
  • What will happen (17 orchestrator steps)

You can:

  • Press y to proceed
  • Press n to cancel
  • Use --yes flag to skip confirmation

DOI provider:

Terminal window
# Production DOI (EZID)
nemar admin dataset publish approve nm000104
# EZID test shoulder (for testing)
nemar admin dataset publish approve nm000104 --sandbox

The current dataset publication path uses EZID. Older CLI surfaces may still display a Zenodo provider option for compatibility, but the current backend rejects Zenodo as the dataset DOI provider.

Non-interactive mode:

Terminal window
nemar admin dataset publish approve nm000104 --yes

When the authors ask for a published dataset back, use nemar admin dataset unpublish <dataset-id> (a dry run until --apply --reason "<why>"). It makes the dataset private and resets its publication record without touching the DOIs, and a new publication request is allowed. Use nemar admin dataset withdraw instead only when the dataset is broken or has to be removed, because that tombstones the DOIs. There is no command that only changes a dataset’s visibility. The runbook is Publication lifecycle.

When you approve a request, an automated 17-step orchestrator runs. Steps are idempotent and can be resumed if interrupted. The current dataset DOI path uses EZID; --sandbox selects the EZID test shoulder for testing.

Checks if BIDS validation and version-check workflows exist on the repo. Deploys them if missing. Verifies the latest CI run passes (if any runs exist).

Step 2: enrichment_check - Check Optional Metadata

Section titled “Step 2: enrichment_check - Check Optional Metadata”

Checks whether the dataset has optional NEMAR enrichment metadata available for the DOI record. This is a warning-only step; missing enrichment does not block publication.

Step 3: s3_public_read - S3 Public Read Access

Section titled “Step 3: s3_public_read - S3 Public Read Access”

The bucket is public-by-default behind a single deny-list policy (a public-read Allow with a NotResource carve-out listing every private dataset prefix; see #673/#674). Making this dataset public removes its prefix from the carve-out so anonymous GetObject is allowed; it does not add a new grant. Idempotent. This enables anonymous downloads via git-annex web remote URLs.

Step 4: repo_public - Make Repository Public

Section titled “Step 4: repo_public - Make Repository Public”

Changes GitHub repository visibility from private to public. Updates the database visibility record.

Enables tag protection rules on the repository, preventing deletion or modification of version tags. Ensures DOI integrity since DOIs reference specific tags.

Creates the concept (parent) DOI through EZID with DataCite kernel-4 XML metadata. DOI pattern: 10.82901/NEMAR.<dataset_id> in production or 10.5072/FK2<dataset_id> in the EZID test shoulder.

Skipped if a concept DOI already exists.

Step 7: update_metadata - Update dataset_description.json

Section titled “Step 7: update_metadata - Update dataset_description.json”

Reads BIDS metadata from the repo, enriches it with DOI information, and commits an updated dataset_description.json back to the repo.

Generates or updates the dataset README with DOI badge, citation info, and dataset description.

When the dataset has no LICENSE file (or LICENCE or COPYING, in any spelling) and its License field names a Creative Commons 4.0 license or CC0 1.0, adds LICENSE to main with one header line and that license’s official text, before the version tag, so the published version holds it. It never replaces an existing file, adds nothing for any other license, and writes an audit row for each file it adds. See Files NEMAR adds when you publish.

Creates a v1.0.0 git tag on the repo’s main branch if no tags exist yet.

Step 11: create_release - Create GitHub Release

Section titled “Step 11: create_release - Create GitHub Release”

Creates a GitHub Release from the version tag.

Step 12: upload_to_zenodo - Compatibility step

Section titled “Step 12: upload_to_zenodo - Compatibility step”

The current publication orchestrator retains this step so older progress records remain readable, but the dataset publication path skips the Zenodo upload. A later version workflow may create a non-public Zenodo draft as a best-effort archive backup.

Changes the EZID identifier status from reserved to public, making the DOI publicly resolvable.

The DOI identifier is permanent. If a dataset is later withdrawn, NEMAR can restrict the dataset and leave the DOI resolving to a tombstone rather than silently changing the released state.

Step 14: version_doi - Create Version DOI and Manifest

Section titled “Step 14: version_doi - Create Version DOI and Manifest”

Creates the first version DOI under the concept DOI and dispatches the version manifest workflow. The version DOI identifies the released version and its file manifest.

Applies S3 Object Lock (governance mode) to every object under the dataset’s objects/ prefix, preventing accidental deletion; manifests and archives are not locked. Lock duration: 100 years. Apart from deleting a dataset outright, a privacy correction under the Takedown Procedure is the one reason an administrator bypasses it.

Step 16: sync_nemar - Compatibility step (disabled)

Section titled “Step 16: sync_nemar - Compatibility step (disabled)”

This step is now a no-op: it used to sync dataset metadata to a legacy PHP dataexplorer data pipeline that predated the current nemar.org, and that coupling has since been removed. The step is retained only so existing publication-request records remain valid; it logs a skip and always succeeds. Archive-zip generation is not an orchestrator step; the central run-version-doi.yml workflow dispatches generate-archive separately after the version DOI is minted.

Step 17: notify_user - Send Notification Email

Section titled “Step 17: notify_user - Send Notification Email”

Sends a publication confirmation email to the dataset owner with the DOI and citation information. This is the final step; the publication request status changes to “published”.

If a step fails, you can resume from the failed step:

Terminal window
nemar admin dataset publish approve nm000104 --resume

How it works:

  • System remembers which steps completed successfully
  • Only failed and remaining steps are re-run
  • Safe to run multiple times (idempotent)

Example scenario:

Terminal window
# First attempt fails at step 5 (tag_protect)
nemar admin dataset publish approve nm000104
# Error: Tag protection failed
# Fix the issue (e.g., remove conflicting GitHub rules)
# Then resume
nemar admin dataset publish approve nm000104 --resume
# Skips completed steps 1-4, retries step 5, then continues with 6-17

When a depositor sends the evidence a license outcome asks for, record it against the support ticket it arrived on:

Terminal window
nemar admin dataset publish license-permission nm000480 --ticket 412 --evidence "Authors' email of 2026-11-20 accepts CC BY 4.0 for this copy"
nemar admin dataset publish license-permission nm000480 --ticket 412 --evidence "..." --apply

Without --apply it is a dry run: it shows the request (or that there is none), the lineage outcome, the target license and the sources the permission would name. The evidence comes first, so the dataset usually has no request open. Then the permission is recorded against the dataset, with its license lineage computed now, and the depositor is mailed to request again. Against an open request it works as before. An unresolved co-source never counts against a permission and is never named in it. The text you type is stored for administrators only: it is never shown to the depositor, sent to a model or printed back.

A request that its review closed as closed: license evidence needed is restored like a denial (nemar admin dataset publish restore <dataset-id>), but a recorded permission that covers it prevents the close in the first place.

Deny a publication request with a reason:

Terminal window
nemar admin dataset publish deny nm000104 --reason "BIDS validation failing - please fix errors and resubmit"

What happens:

  • Request status set to denied
  • User receives email with your reason
  • User can fix issues and submit a new request

Subject: [NEMAR] Publication request: <dataset-id> by <username> - IDENTIFIER SCREEN: <result>

Content:

  • Dataset information (ID, name)
  • Requesting user details
  • Link to dataset
  • The identifier screen’s result, and the sentence that says what approval needs next
  • CLI command to approve/deny

The admin email waits for the screen: it is sent when the screen reports, and states the result in its subject. If the screen could not be started, failed, or never reported, the email is sent anyway and says so.

Subject: [NEMAR] Your dataset nm000104 has been published

Content:

  • Confirmation of publication
  • Permanent DOI
  • Link to public dataset
  • Citation information
  • Next steps (creating version DOIs)

Subject: Publication on hold: <dataset-id> - identifying information found

Content:

  • The kinds and counts of what the screen found (never a value)
  • What to do: remove the information, push the change, and request publication again

Subject: [NEMAR] Publication request for nm000104 denied

Content:

  • Denial reason from admin
  • What to fix
  • How to resubmit after fixing issues

Problem: Request submission fails with “Dataset not found”

  • Cause: Dataset ID is incorrect or dataset doesn’t exist
  • Solution: Check dataset ID with nemar dataset list --mine

Problem: Request submission fails with “Already published”

  • Cause: Dataset is already public
  • Solution: No action needed, dataset is already public

Problem: Request submission fails with “Unauthorized”

  • Cause: Not logged in or not dataset owner
  • Solution: Run nemar auth login and ensure you own the dataset

Problem: Status shows “denied” but I fixed the issues

  • Cause: Old request was denied
  • Solution: Submit a new request with nemar dataset publish request <id>

Problem: Status shows “blocked” and the screen says FOUND IDENTIFIERS

  • Cause: The identifier screen found a name, a birth date finer than the year, an age over 89, or an identifying column or key. The output lists kinds and counts, not files, so finding the file is your work
  • Solution: Remove the information, push the change, and run nemar dataset publish request <id> again. There is no override. If you think it is a false positive, report it so the scanner is fixed for every dataset, without pasting a value or a file name from your data

Problem: The screen says DID NOT RUN or DID NOT REPORT

  • Cause: The check itself failed, not your data
  • Solution: Nothing to fix on your side. Tell an administrator, who can run the screen again with nemar admin dataset publish screen <id>

Problem: Approval fails at ci_check

  • Cause: BIDS validation is failing
  • Solution: User needs to fix validation issues first. Deny request with clear reason.

Problem: Approval fails at repo_public

  • Cause: GitHub API error or permissions issue
  • Solution: Check GITHUB_ADMIN_PAT is valid with repo and admin:org scopes. Retry with --resume.

Heads up: the GITHUB_ADMIN_PAT user-token approach is being replaced by a GitHub App installation token; see GitHub App setup. Migration tracked in epic #432.

Problem: Approval fails at doi_create

  • Cause: EZID API error
  • Solution:
    • Check EZID_USERNAME/EZID_PASSWORD are valid
    • Retry with --resume

Problem: Approval fails at publish_doi

  • Cause: EZID status change failed
  • Solution: Check EZID status. The DOI may already be in the correct state. Retry with --resume.

Problem: Approval fails at s3_lock

  • Cause: AWS API error or permissions issue
  • Solution: Check AWS credentials are valid. Verify S3 bucket exists. Retry with --resume.

Problem: Want to re-run entire orchestrator

  • Cause: Need fresh start (not resume)
  • Solution: Not currently supported. Contact dev team if needed.
  1. Validate before requesting - Run nemar dataset validate locally first
  2. Complete metadata - Ensure dataset_description.json is accurate
  3. Be patient - Admins may take time to review
  4. Communicate - If urgent, contact admins directly (don’t just resend)
  1. Check CI first - Review BIDS validation status before approving
  2. Use –resume - If a step fails, fix the issue and resume (don’t start over)
  3. Provide clear reasons - When denying, explain exactly what needs fixing
  4. Monitor email - Publication request emails help track new requests

Q: How long does publication take? A: Once approved, the orchestrator runs its 16 tracked steps; runtime depends on repository size, S3 object count, and external services. Admin review time varies.

Q: Can a published dataset be withdrawn? A: A dataset can be restricted through the takedown process. Its DOI is not deleted; it resolves to a tombstone that records the withdrawal.

Q: Can the authors take a published dataset back? A: Ask NEMAR support. An administrator can unpublish it: the dataset becomes private again and returns to being an unpublished dataset that you can request to publish later. Its DOIs are not touched, so they keep resolving, and anything already downloaded or cited stays valid. This is different from a withdrawal, which is for a broken or removed dataset and tombstones the DOIs.

Q: Can I update a published dataset? A: Yes, but only through pull requests, direct pushes to main are blocked once a dataset is public. Owners and collaborators use nemar dataset update/release; anyone else can fork and open a PR. A NEMAR administrator merges only after the applicable checks and review are complete on the current PR revision. See Collaboration & the Lifecycle.

Q: What if I need to publish urgently? A: Contact NEMAR admins directly. Publication requests are processed in order received.

Q: Can I have multiple publication requests? A: Only one active request per dataset. Previous requests must be completed (approved/denied) before submitting new ones.

Q: What happens if orchestrator is interrupted? A: Use --resume to continue from the last successful step. The system tracks progress automatically.

  • Production DOIs: 10.82901/NEMAR.<dataset_id> (e.g., 10.82901/NEMAR.nm000104)
  • Version DOIs: 10.82901/NEMAR.nm000104.V1.0.1
  • Sandbox DOIs: 10.5072/FK2<dataset_id> (auto-deleted after 2 weeks)
  • Metadata format: DataCite kernel-4 XML
  • DOI lifecycle: reserved → public; a withdrawn record may be marked unavailable while remaining resolvable as a tombstone.

Zenodo is not NEMAR’s canonical dataset DOI provider. The version workflow may create or update a non-public Zenodo draft as a best-effort archive backup; availability of that backup does not change which DOI researchers should cite.

The following secrets are configured at the nemarDatasets organization level (inherited by all dataset repos):

  • NEMAR_WEBHOOK_TOKEN - Authenticates webhook calls from GitHub Actions to the backend
  • AWS_ACCESS_KEY_ID / AWS_SECRET_ACCESS_KEY - For S3 operations in workflows

No per-repo secret setup is needed when creating new datasets.

  • nemar dataset upload - Upload a new dataset
  • nemar dataset validate - Validate BIDS compliance
  • nemar dataset release - Create a version bump PR
  • nemar dataset update - Push changes via PR
  • nemar admin dataset publish approve - Approve publication request (admin)
  • nemar admin dataset publish screen - Run a request’s identifier screen again (admin)
  • nemar admin dataset doi create - Create concept DOI standalone (admin)
  • nemar admin dataset doi info - View DOI information (admin)