intro-computational-reproducibility

Material for a short version of the workshop 'Best Practices for Writing Reproducible Code'

https://github.com/utrechtuniversity/intro-computational-reproducibility

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.5%) to scientific vocabulary

Keywords

documentation programming reproducibility utrecht-university workshop
Last synced: 4 months ago · JSON representation ·

Repository

Material for a short version of the workshop 'Best Practices for Writing Reproducible Code'

Basic Info
Statistics
  • Stars: 2
  • Watchers: 0
  • Forks: 0
  • Open Issues: 1
  • Releases: 0
Topics
documentation programming reproducibility utrecht-university workshop
Created over 1 year ago · Last pushed over 1 year ago
Metadata Files
Readme License Citation

README.md

Introduction to Computational Reproducibility

This is the GitHub repository containing the slides and exercises for an 1.5 hour Introduciton to Computational Reproducibility. This workshop is a short version of the full RDM Support workshop "Best Practices in Writing Reproducible Code". Information on that workshop can be found on the RDM Support website.

Contents of this workshop

  1. Introduction (5 min)
  2. Project structure ( 5 min)
  3. Documentation (5 min)
  4. Code quality (10 min)
  5. Git and GitHub (10 min)
    EXERCISES (30 min)
  6. Closing (5 mins)

Exercises

For people new to Git and GitHub

We learn to do some basic things with GitHub via the GitHub website.

Step 1: Create a GitHub account https://github.com/signup

Step 2: Go to this template repository and browse it: github.com/UtrechtUniversity/simple-python-template

Step 3: Clone the repository:

  • Go back to the main page of the repository and click the green 'Use this template' button.
  • A drop down menu will appear. Select 'Create a new repository'
  • Choose a repository name, e.g. my-first-github-repository. If interested, read more on repository naming conventions
  • Choose 'public', which means everyone can see this repository
  • Click 'Create repository'

Step 4: Make a change to the README file

After creating the repository you automatically land on the main page of the repository. Note the web address of this page: github.com/<your profile name>/<your repository name>. The page displays the contents (folders and files) of the repository and underneath the page displays the contents of the README.md file. We will now make a change to the README file.

  • Click the pencil icon at the top right of the README file to edit the file.
  • Write and/or delete something in the editor
  • In the top of the editor, click Preview to check your changes. Click edit if you want to continue editing.
  • The filename extension of the README is .md which stands for markdown. Markdown is a markup language for editing text documents. Check this markdown guide for more information about the syntax.

Step 5: Commit the changes

When you commit changes, you create a new snapshot of your project for the projects' history. - When you have finished editing the file, click the green button 'Commit changes...' in the top right of the window. - Write an informative commit message about the change you made for the project log - Make sure the option 'Commit directly to the main branch' is selected and click 'Commit changes'

Step 6: Inspect the git history (or project log)

You have now created a new snapshot of your project. We are now going to watch a previous version of the project.

  • After you clicked 'Commit changes' you are redirected to the main page of your GitHub repository.
  • To go to your git history, click 'Commits' which you can find at the top right of the contents of your repository.
  • In your case you will see two 'Commits' (aka snapshots). To browse an earlier version of your repository, click <> at the right side of the commit with message "Initial commit".
  • Verify that the change that you made is not there.
  • To go back to the up-to-date state of your project, click the drop down arrow at the top left of the repository contents and under 'Branches' select 'main'.

If there is time left, you may continue with one the exercises on skills.github.com (see the section below).

For people that have used Git and GitHub before:

skills.github.com is a nice collection of exercises to practice the GitHub workflow. Depending on your skill level, choose one of the following lessons:

We think the lessons above are the most relevant for research. Feel free to choose other lessons, however the instructors might not be familiar with the topic in case you need help.

License

The slides are licensed under a Creative Commons Attribution 4.0 International License. View the license here.

Acknowledgements

These slides were adapted from the workshop Best Practices in Writing Reproducible Code by the following people:

To contribute, please open an Issue or Pull Request, or contact Research Data Management (RDM) support.

Owner

  • Name: Utrecht University
  • Login: UtrechtUniversity
  • Kind: organization
  • Email: info.rdm@uu.nl
  • Location: Utrecht, The Netherlands

The central place for managing code and software for Utrecht University researchers and employees

Citation (CITATION.cff)

cff-version: 1.2.0
title: Introduction Computational Reproducibility
message: 'If you reuse our materials, please cite us!'
type: software
authors:
  - given-names: Research Data Management Support
    affiliation: Utrecht University
    email: info.rdm@uu.nl
repository-code: >-
  https://github.com/UtrechtUniversity/intro-computational-reproducibility
url: 'https://uu.nl/rdm'
abstract: >
  This repository contains the materials for a 1.5 hour workshop on
  computational reproducibility. It is a shortened version from the
  2-day workshop 'Best Practices in Writing Reproducible Code',
  organized by Research Data Management Support at Utrecht
  University, the Netherlands.
keywords:
  - reproducibility
  - open science
  - programming
  - dependency
  - documentation
  - version control
  - reusability
  - robustness
  - workshop
license: CC-BY-4.0
version: 2024.09.04
date-released: '2024-09-04'

GitHub Events

Total
  • Watch event: 1
Last Year
  • Watch event: 1

Committers

Last synced: 5 months ago

All Time
  • Total Commits: 416
  • Total Committers: 13
  • Avg Commits per committer: 32.0
  • Development Distribution Score (DDS): 0.334
Past Year
  • Commits: 27
  • Committers: 2
  • Avg Commits per committer: 13.5
  • Development Distribution Score (DDS): 0.407
Top Committers
Name Email Commits
Barbara Vreede b****e@g****m 277
nehamoopen 3****n 46
Jelle Treep h****p@u****l 33
DorienHuijser d****r@o****m 22
Lefebvre, A.E.J. (Armel) a****e@u****l 15
Bianca Kramer b****r@g****m 9
Jonathan de Bruin j****s@g****m 6
chStaiger s****e@g****m 3
Hanne Oberman h****n@u****l 1
Jeroen Ooms j****s@g****m 1
MFraters m****s@o****m 1
Raoul Schram r****m@u****l 1
parisa-zahedi p****i@u****l 1
Committer Domains (Top 20 + Academic)
uu.nl: 5

Issues and Pull Requests

Last synced: 5 months ago

All Time
  • Total issues: 1
  • Total pull requests: 7
  • Average time to close issues: N/A
  • Average time to close pull requests: 4 minutes
  • Total issue authors: 1
  • Total pull request authors: 2
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.0
  • Merged pull requests: 7
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 1
  • Pull requests: 7
  • Average time to close issues: N/A
  • Average time to close pull requests: 4 minutes
  • Issue authors: 1
  • Pull request authors: 2
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.0
  • Merged pull requests: 7
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • tlinjordet (1)
Pull Request Authors
  • jelletreep (11)
  • DorienHuijser (2)
Top Labels
Issue Labels
Pull Request Labels

Dependencies

.github/workflows/publish.yml actions
  • actions/checkout v3 composite
  • actions/configure-pages v1 composite
  • actions/deploy-pages main composite
  • actions/upload-pages-artifact v3 composite
  • browser-actions/setup-chrome v1 composite
  • quarto-dev/quarto-actions/setup v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite