Skip to content

Commit 57600ca

Browse files
committed
Promote citation file to standard and add DOI note
Pull from Collab Guide [PR 24](Imageomics/Collaborative-distributed-science-guide#24) * Add note on which DOI to use from Zenodo and why, link for reference * Move citation to standard files section Citation files are important for provenance of research software, we expect them * Add clarification about updating throughout project lifespan, link to project life cycle
1 parent 5639559 commit 57600ca

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

docs/wiki-guide/GitHub-Repo-Guide.md

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ For each repository, include the following files in the root directory as soon a
1515
* [LICENSE.md](#license)
1616
* [.gitignore](#gitignore)
1717
* [software requirements](#software-requirements-file)
18+
* [CITATION.cff](#citation)
1819

1920
More [recommendations](#recommended-files) are discussed below.
2021

@@ -72,25 +73,18 @@ It is also advisable to include a machine-readable file with minimal software re
7273

7374
For more information on managing these environments and generating such files programmatically, see the wiki entry [Virtual Environments](Virtual-Environments.md).
7475

75-
## Recommended Files
76-
77-
Though the following files are not included in every repository and do not have a simple selection process integrated into GitHub, they are extremely important (if not essential) to maintaining FAIR principles and reproducibility in projects, as well as ensuring proper attribution for your work.
78-
79-
### CONTRIBUTING
80-
81-
If you are looking to open your project to more public contributions, it is a good idea to include contributing guidelines. This could take the form of a "CONTRIBUTING.md" file or a subsection of your README.
82-
83-
Contributing guidelines are important to maintain consistency across the way people work on a project. It is important to establish conventions about the important things while avoiding excessive constraints and bureaucracy that would make contributing a pain. Important things include efficient and effective communication.
84-
8576
### CITATION
8677

8778
Make it easier for people to cite your project by including a [CITATION.cff file](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-citation-files); you can copy-paste the template below.
8879

89-
As with journal publications, we expect to be cited when someone uses our code. To facilitate proper attribution, GitHub will automatically read a [CITATION.cff file](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-citation-files) and display a link to "cite this repository". Providing this file is as simple as filling your information into one of their example files and uploading it to your repo. More examples and information about the Citation File Format can be found on the [citation-file-format repo](https://github.com/citation-file-format/citation-file-format), including helpful [related tools](https://github.com/citation-file-format/citation-file-format#tools-to-work-with-citationcff-files-wrench).
80+
As with journal publications, we expect to be cited when someone uses our code. To facilitate proper attribution, GitHub will automatically read a [CITATION.cff file](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-citation-files) and display a link to "cite this repository". This file is also used to populate metadata fields in a [Zenodo](https://zenodo.org/) record when [auto-generating a DOI](DOI-Generation.md#2-generate-a-doi-with-zenodo). As with any other component of your project, this file may change over the project's lifespan (see [Digital Product Life Cycle](docs/wiki-guide/Digital-Product-Lifecycle.md) for details), but it should be present and updated before any release.
81+
82+
Providing this file is as simple as copying the below example and filling in your information before uploading it to your repo. More examples and information about the Citation File Format can be found on the [citation-file-format repo](https://github.com/citation-file-format/citation-file-format), including helpful [related tools](https://github.com/citation-file-format/citation-file-format#tools-to-work-with-citationcff-files-wrench).
9083

9184
You can check your CITATION.cff file prior to upload using this [validator tool](https://www.yamllint.com/).
9285

9386
!!! note "Note"
87+
- When adding a DOI to your citation (`doi`), be sure to use the version-agnostic DOI from Zenodo. Since the DOI is not generated until _after_ the release, this ensures there will never be an "incorrect" DOI associated to the release—correct version reference is ensured through the `version` key, which should always be updated _**before**_ generating a new release.
9488
- Subcategories of `preferred-citation` do not get bullet points, but the first subcategory of `references` must be bulleted (as below).
9589
- This is generally intended as a reference for your code. Preferred citation can be used for the paper, though it is better to ask in the `README` that someone cites _both_ and provide the paper reference there (only the `preferred-citation` will show up to be copied from the citation box if it is included).
9690

@@ -116,7 +110,7 @@ message: "If you find this software helpful in your research, please cite both t
116110
repository-code: "https://github.com/Imageomics/<repo>"
117111
title: "<repo title>"
118112
version: <release version>
119-
doi: <DOI from Zenodo>
113+
doi: <DOI from Zenodo> # version agnostic DOI
120114
type: software
121115
preferred-citation:
122116
type: article
@@ -142,6 +136,16 @@ references:
142136
date-released:
143137
```
144138
139+
## Recommended Files
140+
141+
Though the following files are not included in every repository and do not have a simple selection process integrated into GitHub, they are extremely important (if not essential) to maintaining FAIR principles and reproducibility in projects, as well as ensuring proper attribution for your work.
142+
143+
### CONTRIBUTING
144+
145+
If you are looking to open your project to more public contributions, it is a good idea to include contributing guidelines. This could take the form of a "CONTRIBUTING.md" file or a subsection of your README.
146+
147+
Contributing guidelines are important to maintain consistency across the way people work on a project. It is important to establish conventions about the important things while avoiding excessive constraints and bureaucracy that would make contributing a pain. Important things include efficient and effective communication.
148+
145149
## Additional Considerations
146150
147151
### Formatting and Naming Conventions

0 commit comments

Comments
 (0)