Why citing software matters
The case for citation was set out in 2016 by the FORCE11 Software Citation Working Group. Its principles state that software should be treated as a legitimate and citable product of research.1 Software citations should carry the same importance as citations of papers and data. They also belong in the reference list, not in a separate section or a footnote.1 The principles add that a citation should help readers find the specific version of the software that was used.1
Version matters because software changes. A result produced with one release of a package may not reproduce with the next. The FORCE11 principles therefore call for identification as specific as necessary, using version numbers, revision numbers, or platform variants.1 They also call for identifiers that persist even beyond the lifespan of the software they describe.1 A citation that names only a program, with no version, leaves the reader unable to repeat the work.
How the style guides treat datasets
APA Style added guidance on data set references in its seventh edition. Its guidance says to cite a data set when the writer has analyzed publicly archived data or archived their own data for the first time in the work.2 The date is the year of publication for the version used, and any identifier and version number follow the title in parentheses.2 A bracketed description, such as "[Data set]," tells readers what kind of source it is. When writers use existing statistics, APA says to cite the publication that reported them instead of the data set itself.2
Medical journals follow their own conventions. The ICMJE recommendations state that published articles should reference the unique, persistent identifiers of the data sets they use.3 The National Library of Medicine's sample references show a dataset deposit record with authors, a title, the label "[dataset]," and the repository that holds it.4 Its examples also record the date the writer cited the material, which helps when a deposit is later updated. The Chicago Manual of Style also expanded its guidance on databases and datasets in its 18th edition.5
How to cite software and code
The National Library of Medicine's samples offer a simplified format for software available online. In that format the publisher is optional, the place of publication is not needed, and writers should include a URL or a DOI.4 The examples give the program name, a version number, the label "[software]," and a release date.4 The same pattern works for code stored in a repository, as long as the writer gives a version or release.
Developers can make this easier for their users. GitHub explains that a repository can include a CITATION.cff file, a plain-text file with citation information in a form that both people and software can read.6 When the file is present, GitHub adds a "Cite this repository" link that produces an APA or BibTeX citation.6 Writers should still check the result against the style their journal requires, since a generated citation reflects only what the developer entered.
Checking data and software references
A good check starts with the methods section. Every named package, dataset, and script should either appear in the reference list or be explained in the text. Each entry should include a version and, where one exists, a DOI or other persistent identifier. Our article on data availability statements covers the related statement many journals now require.
The style governs the final form. The same dataset will look different in APA Style, Vancouver, and IEEE, even when every element is present. Our article on choosing a style manual explains how to tell which authority applies.
How we check these references
Our editors check that software, data, and code references follow the paper's chosen style and include the elements that style requires. Everything a client sends is treated in confidence, including drafts, data files, and code. We do not test software, confirm that a dataset contains what the paper reports, or create identifiers. Our article on reference lists and trust explains why complete references matter to reviewers.