Alterlab open science

From NVlabs/Skill2Env · View interactive version

Alterlab open science is an AI agent skill from the GitHub repository NVlabs/Skill2Env. Guidance for open science practices — preregistration (OSF Registries, AsPredicted, PROSPERO, ClinicalTrials.gov), open data and FAIR principles, repository choice (Zenodo, Dryad, Figshare), open access routes (Green/Gold/Diamond), Creative Commons licensing, reproducible computational workflows (Do

How to use this skill

Skill file

Open Science Practices

Overview

Open science represents a fundamental shift in how research is conducted, shared, and evaluated. Rather than treating the scientific process as a series of private activities culminating in a polished publication, open science makes the entire research lifecycle transparent -- from the initial hypothesis through data collection, analysis, and dissemination. This transparency serves multiple purposes: it increases trust in research findings, accelerates scientific progress by enabling reuse and replication, reduces waste by making negative results visible, and democratizes access to knowledge.

The open science movement encompasses a wide range of practices: preregistration of study designs and analyses, registered reports that receive peer review before data collection, open sharing of data and materials under FAIR principles (Findable, Accessible, Interoperable, Reusable), open access publishing through various routes (Green, Gold, Diamond), reproducible computational workflows using containers and notebooks, open peer review, and the use of persistent repositories for long-term data preservation.

This skill provides practical guidance for implementing each of these practices. It is not an advocacy document -- it acknowledges the real tensions between openness and privacy, the costs of open access publishing, and the career incentives that sometimes conflict with open practices. The goal is to equip researchers with the knowledge to make informed decisions about which open science practices to adopt, when, and how.

When to Use This Skill

Use this skill when you need to:

Core Capabilities

Preregistration

Preregistration involves publicly recording your research plan -- hypotheses, methods, sample size, and analysis strategy -- before collecting or analyzing data. It distinguishes confirmatory analyses (hypothesis-testing) from exploratory analyses (hypothesis-generating), reducing the risk of p-hacking, HARKing (Hypothesizing After Results are Known), and other questionable research practices.

Key preregistration platforms:

| Platform | Best For | Features |

|----------|----------|----------|

| OSF Registries | All disciplines | Multiple templates, embargo options, DOI, integrates with OSF projects |

| AsPredicted | Quick preregistration | 8-question template, simple, generates PDF |

| ClinicalTrials.gov | Clinical trials | Legally required for most interventional trials in the US |

| PROSPERO | Systematic reviews | Specific to health-related systematic reviews |

| EGAP | Political science / governance | Designed for experimental governance research |

What to include in a preregistration:

  1. Research questions and hypotheses -- State specific, testable predictions
  2. Design -- Experimental, quasi-experimental, observational, survey
  3. Variables -- Independent, dependent, covariates, moderators, mediators
  4. Sample -- Target population, sampling strategy, inclusion/exclusion criteria
  5. Sample size justification -- Power analysis or resource constraints with rationale
  6. Measurement -- Instruments, scales, operationalization of constructs
  7. Analysis plan -- Statistical tests, model specifications, assumption checks
  8. Inference criteria -- Alpha level, correction for multiple comparisons
  9. Exclusion criteria -- Rules for removing data points or participants
  10. Exploratory analyses -- Planned but not confirmatory

A worked preregistration excerpt (hypothesis, analysis plan, power analysis) and the common misconceptions about what preregistration does not require (exploratory analyses, deviations, qualitative work) are collected in references/preregistration_guide.md. Reusable OSF and AsPredicted templates live in references/open-science-resources.md.

Registered Reports

Registered reports take preregistration further by embedding it in the peer review process. The study is reviewed in two stages:

Stage 1: Before data collection

Stage 2: After data collection

Benefits of registered reports:

Journals offering registered reports: Over 300 journals across disciplines now accept registered reports. The Center for Open Science maintains the complete list at cos.io/rr.

A full annotated Stage 1 submission structure (introduction, methods, layered analysis plan, exclusion criteria, timeline) is in references/preregistration_guide.md; a discipline-by-discipline list of registered-report journals is in references/open-science-resources.md.

Open Data and FAIR Principles

The FAIR principles provide a framework for making data maximally useful for both humans and machines:

Findable:

Accessible:

Interoperable:

Reusable:

Practical data sharing checklist: A full three-phase checklist (before sharing, preparing the deposit, depositing) covering de-identification, codebooks, formats, licensing, DOIs, and data availability statements is in references/data_sharing_and_dmp.md. Metadata standards and preferred open file formats by discipline are in references/open-science-resources.md.

Data Management Plans

Most major funders now require a data management plan (DMP) as part of grant applications. A DMP describes how data will be collected, organized, stored, shared, and preserved.

NSF DMP requirements (2 pages):

  1. Types of data produced
  2. Data and metadata standards
  3. Policies for access and sharing
  4. Policies for re-use and redistribution
  5. Plans for archiving and preservation

NIH Data Management and Sharing Plan (post-2023):

  1. Data type
  2. Related tools, software, and code
  3. Standards
  4. Data preservation, access, and associated timelines
  5. Access, distribution, and reuse considerations
  6. Oversight of data management and sharing

A worked DMP excerpt (data types, sharing plan, standards) and the list of DMP authoring tools (DMPTool, DMPonline, ARGOS) are in references/data_sharing_and_dmp.md.

Open Access Publishing

Open access (OA) removes paywalls so that anyone can read research without a subscription. There are several routes to OA:

Gold OA: Published in a fully open access journal. The author (or their funder/institution) pays an Article Processing Charge (APC). Examples: PLOS ONE, eLife, BMJ Open.

Green OA: The author deposits a version of the paper (preprint or accepted manuscript) in a repository. The journal may impose an embargo period (typically 6-12 months). No APC required. Repositories include institutional repositories, PubMed Central, arXiv, and SSRN.

Diamond OA (Platinum OA): The journal is open access with no APC -- costs are covered by institutions, scholarly societies, or grants. Examples include many humanities journals, the Journal of Machine Learning Research, and some society journals.

Hybrid OA: The journal is subscription-based but offers an OA option for individual articles (for an APC). Controversial because institutions pay twice (subscription + APC). Some funders (e.g., cOAlition S / Plan S) no longer fund hybrid OA.

Bronze OA: Free to read on the publisher website but without an open license. The publisher can remove access at any time. Not true OA.

APC cost ranges (2025-2026):

| Publisher Tier | Typical APC |

|---------------|-------------|

| Mega journals (PLOS ONE) | $1,500-$2,000 |

| Mid-tier specialty journals | $2,000-$4,000 |

| High-impact journals (Nature, Science OA options) | $5,000-$11,000 |

| Diamond OA journals | $0 |

Rights retention strategy: Many funders (including cOAlition S members) now support a Rights Retention Strategy where authors retain a CC-BY license on the Author Accepted Manuscript, regardless of publisher policy. This enables Green OA deposit immediately upon acceptance.

Preprint servers by discipline:

| Server | Disciplines |

|--------|------------|

| arXiv | Physics, mathematics, computer science, quantitative biology |

| bioRxiv | Biology |

| medRxiv | Health sciences (not peer-reviewed clinical findings) |

| SSRN | Social sciences, economics, law |

| PsyArXiv | Psychology |

| SocArXiv | Sociology, political science |

| EdArXiv | Education |

| EarthArXiv | Earth sciences |

| ChemRxiv | Chemistry |

| OSF Preprints | All disciplines |

Creative Commons Licenses for Research

Creative Commons (CC) licenses provide standardized terms for sharing research outputs. Understanding them is essential for open science.

License options (most to least permissive):

| License | Allows | Requires | Restrictions |

|---------|--------|----------|-------------|

| CC0 (Public Domain) | Anything | Nothing | None |

| CC-BY | Anything | Attribution | None |

| CC-BY-SA | Anything | Attribution, share-alike | Derivatives must use same license |

| CC-BY-NC | Non-commercial use | Attribution | No commercial use |

| CC-BY-NC-SA | Non-commercial use | Attribution, share-alike | No commercial use, same license |

| CC-BY-ND | Sharing only | Attribution | No derivatives |

| CC-BY-NC-ND | Non-commercial sharing | Attribution | No commercial use, no derivatives |

Recommendations:

Reproducible Analysis

Reproducibility means that another researcher can take your data and code and obtain the same results. Computational reproducibility is the minimum standard; replicability (obtaining similar results with new data) is the aspirational goal.

Levels of reproducibility:

  1. Documentation -- Describe your analysis steps in sufficient detail that someone could in principle reproduce them
  2. Code sharing -- Share the actual analysis scripts used
  3. Environment capture -- Record the software versions, packages, and operating system used
  4. Containerization -- Package the complete computational environment (Docker, Singularity)
  5. Executable environment -- Provide a one-click way to run the analysis (Binder, Code Ocean)

Tooling for each level: Docker/Singularity package the complete environment; Binder (mybinder.org) turns a GitHub repo with an environment.yml or install.R into a live interactive Jupyter/RStudio session with zero local install; Code Ocean provides guaranteed reproducibility with a published DOI per "compute capsule" (used by Nature and others for results verification). Always pin exact package versions so environments rebuild identically.

Copy-ready recipes -- a Dockerfile for an R analysis, an annotated Binder environment.yml, a CITATION.cff software-citation file, and the eight core rules for reproducible code (relative paths, random seeds, package managers, session info, pipeline automation, version control, README, clean-machine testing) -- are in references/reproducible_workflows.md. A Makefile pipeline and a full project directory layout are in references/open-science-resources.md.

Computational Notebooks

Jupyter notebooks, R Markdown, and Quarto documents combine code, text, and results in a single document. They are powerful tools for reproducible research when used well.

Jupyter notebooks (.ipynb):

R Markdown (.Rmd) / Quarto (.qmd):

Best practices for notebooks:

Open Peer Review

Open peer review encompasses several practices that increase transparency in the review process:

Models of open peer review:

  1. Open identities -- Reviewer names are disclosed to authors (and sometimes publicly)
  2. Open reports -- Review text is published alongside the paper
  3. Open participation -- Anyone can submit reviews or comments (not just invited reviewers)
  4. Open interaction -- Authors and reviewers engage in dialogue during review
  5. Open pre-review manuscripts -- Preprints allow public comment before formal review

Journals practicing open peer review:

| Journal/Platform | Model |

|-----------------|-------|

| eLife | Published reviews with author responses |

| BMJ | Open identities, open reports |

| F1000Research | Post-publication open review |

| PLOS ONE (optional) | Authors can opt for open reports |

| PeerJ | Authors can publish review history |

| Frontiers | Open identities, structured reports |

Data Repositories

Choosing the right repository depends on your discipline, data type, and funder requirements.

General-purpose repositories:

| Repository | Max File Size | License | DOI | Preservation |

|-----------|--------------|---------|-----|-------------|

| Zenodo | 50 GB per dataset | Flexible | Yes | CERN long-term |

| Dryad | No hard limit | CC0 required | Yes | Curated, long-term |

| Figshare | 5 GB free, 20 GB institutional | Flexible | Yes | Long-term |

| OSF | 5 GB per file, 50 GB per project | Flexible | Yes | Long-term |

| Harvard Dataverse | 2.5 GB per file | Flexible | Yes | Long-term |

Domain-specific repositories (selected):

| Repository | Domain | Notes |

|-----------|--------|-------|

| GenBank / SRA | Genomics | Required for sequence data |

| PDB | Protein structures | Required for structural biology |

| ICPSR | Social science | Curated, access-controlled options |

| PANGAEA | Earth sciences | Georeferenced data |

| Qualitative Data Repository | Qualitative research | Specialized for interview/ethnographic data |

| UK Data Archive | Social science (UK) | Long-term preservation |

| Archaeology Data Service | Archaeology | UK-based, international scope |

Replication Studies

Replication studies attempt to reproduce the findings of a previous study. They are essential for scientific self-correction but historically undervalued.

Types of replication:

  1. Direct replication -- Same methods, same population, same analysis
  2. Conceptual replication -- Different methods testing the same theoretical prediction
  3. Systematic replication -- Planned variation across conditions, populations, or contexts

Planning a replication study:

Key considerations:

Open Source Research Software

Research software is increasingly recognized as a first-class scholarly output. Making it open source enhances reproducibility and enables community contributions.

Best practices for research software:

  1. Choose an appropriate license -- MIT (permissive), Apache 2.0 (permissive with patent protection), GPL (copyleft)
  2. Use version control -- Git with a public repository on GitHub/GitLab
  3. Write documentation -- README, installation instructions, usage examples, API reference
  4. Add tests -- Unit tests, integration tests, and regression tests
  5. Use continuous integration -- GitHub Actions, Travis CI, or similar
  6. Create releases with semantic versioning -- v1.2.3 (major.minor.patch)
  7. Publish a DOI -- Zenodo-GitHub integration mints DOIs for each release
  8. Write a software paper -- Journal of Open Source Software (JOSS) publishes peer-reviewed software papers
  9. Add a CITATION.cff file -- Machine-readable citation metadata

A ready-to-adapt CITATION.cff example (authors, ORCID, version, DOI, license) is in references/reproducible_workflows.md.

Best Practices

Getting Started with Open Science

  1. Start with preregistration -- It is free, it improves your research design, and it takes only an hour. Use the AsPredicted template for your next confirmatory study.
  2. Share your data with your next paper -- Choose Zenodo or a domain-specific repository. Write a codebook. It gets easier every time.
  3. Post preprints -- Upload to the appropriate preprint server before or at submission. It increases visibility and establishes priority.
  4. Use version control -- If you write any code for your research, use git. This is non-negotiable for reproducibility.
  5. Document as you go -- Writing README files, codebooks, and analysis logs during the project is far easier than reconstructing them later.

Navigating Institutional and Funder Requirements

  1. Know your funder mandate -- NIH, NSF, ERC, UKRI, and many others now require data sharing plans and open access. Read the specific policy for your grant.
  2. Use your institutional repository -- Many universities operate institutional repositories that meet Green OA requirements.
  3. Check publisher policies -- Sherpa Romeo (sherpa.ac.uk/romeo) catalogs publisher self-archiving policies.
  4. Budget for APCs -- Include open access publication costs in your grant budget. Most funders allow this.
  5. Negotiate with publishers -- Use rights retention language in your cover letter if your funder requires it.

Balancing Openness with Constraints

  1. Sensitive data -- Not all data can or should be shared openly. Human subjects data with re-identification risk, Indigenous data sovereignty concerns, and proprietary data all require careful handling. Share metadata and analysis code even when raw data cannot be shared.
  2. Scooping concerns -- Preregistration and preprints actually protect against scooping by establishing a timestamped public record of your work.
  3. Career incentives -- Some tenure committees undervalue open science contributions. Document the impact of your open resources (downloads, citations, reuse).
  4. Time costs -- Open science practices take time to learn and implement. Start with one or two practices and build incrementally.

Building an Open Science Lab Culture

  1. Model the behavior -- If you are a PI, preregister your own studies and share your own data before expecting trainees to do so.
  2. Provide training -- Allocate lab meeting time for open science skills (git, OSF, Docker, data management).
  3. Reward open practices -- Recognize and celebrate when lab members share data, post preprints, or contribute to open source tools.
  4. Create templates -- Develop lab-specific preregistration templates, data management plans, and README templates that lower the barrier to adoption.
  5. Budget for it -- Include data management, APC costs, and open science infrastructure in grant applications.

Common Pitfalls

Preregistration Pitfalls

Data Sharing Pitfalls

Reproducibility Pitfalls

Open Access Pitfalls

References

Part of the AlterLab Academic Skills suite.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.