Open practices and software citation

Author
Affiliation

Kyle Niemeyer

Oregon State University

Topics:

  • Licensing and copyright
  • Open science practices
  • software citation
  • reproducibility
  • publishing your software

Software citation

How to make your software citable?

Add a CITATION.cff file:

cff-version: 1.2.0
message: "Please cite the following works when using this software."
type: software
title: Title
abstract: Title
authors:
- family-names: ...
  given-names: ...
  orcid: ...
  affiliation: ...
doi: ...
repository-code: ...
url: ...
keywords: ...
license: ...

For research, need one more step: archiving software (or data)

Consider: what if you use/cite software, and someone modifies it?

Zenodo + GitHub = ❤️

Zenodo can be connected to GitHub, and set to automatically archive releases.

Live demo time… connecting GitHub to Zenodo

Citing software & data is important.

Our research results depend on software and data—different versions of software and data change our answers.

Without proper citations, your work is not reproducible.

Also, academia relies on citations for credit. (for better or worse)

Software citation principles

Smith AM, Katz DS, Niemeyer KE, FORCE11 Software Citation Working Group. (2016) Software citation principles. PeerJ Computer Science 2:e86 https://doi.org/10.7717/peerj-cs.86.

How to cite?

Name/description

Author(s)/developer(s)

DOI or other persistent identifier

Version number/commit hash

Location (e.g., GitHub repo)

(If there’s a paper describing it, cite that too)

Where to cite?

In the text with the references/bibliography.

KE Niemeyer, NJ Curtis, & CJ Sung. “pyJac: analytical Jacobian generator for chemical kinetics” (2017) Computer Physics Communications, 215:188–203. https://doi.org/10.1016/j.cpc.2017.02.004

Reproducibility

Repro-packs

Lorena Barba describes “reproducibility packages” associated with papers, with figures shared under CC-BY license:

“For every figure that presents some result, we bundle the files needed to reproduce it — input or configuration files used to run the simulation(s) behind the result; code to process raw data into derived data; and scripts to create output graphs — and deposit them together with the figure into an open-data repository, such as Figshare. Figshare assigns the bundle a DOI, which we then include in the figure caption so readers can easily find the data and re-create the result.”

Benefits

Improving reproducibility and impact of your work

Reviewers will love you with this one great trick!

It also lets you reuse your figures without violating the journal copyright. (Yes, when published, the journal owns the paper and everything in it that isn’t licensed from somewhere else.)

Publishing your software

JOSS: Journal of Open Source Software

Developer-friendly journal for research software packages

Affiliate of Open Source Initiative

Open access & no fees

If you’ve already licensed your code and have good documentation then we expect that it should take less than an hour to prepare and submit your paper to JOSS.

JOSS paper submission

JOSS reviews

Also consider submitting a talk/paper to SciPy!

Example tracks:

  • Machine Learning, Data Science, and Generative AI
  • Playing Nice: Scientific Computing Across Languages
  • General
  • Earth/Ocean/Geo
  • Social Science/Humanities/Economics/Human Systems
  • Materials science/Chemistry
  • Data Vis and Image Processing

Recap

Openness is a set of habits layered onto software you already write:

  1. License it: pick an existing license (permissive like BSD-3/MIT when in doubt), add LICENSE.txt; without one, no one may legally use your code
  2. Make it citable: add a CITATION.cff file so others can credit your work
  3. Archive releases: connect GitHub to Zenodo to mint a DOI for each tagged version
  4. Cite software & data: different versions change your answers; citation supports both reproducibility and credit
  5. Share repro-packs: bundle scripts, data, and figures under CC-BY, deposit for a DOI, cite it in the paper
  6. Publish it: submit a paper to JOSS or a talk to SciPy to get your software peer-reviewed and recognized

Copyright is automatic—everything else is a choice you make so your work can be used, reproduced, and credited.