Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Software is a special kind of data - it is executable. However, it requires the same care (if not more) of regular data. This means that it must be documented with relevant metadata, stored and preserved correctly, and also why it should be accounted for in your DMP.

This section is all about structuring, saving and sharing software.

Version Control

All files can move through different versions of themselves: the file is created, edited multiple times, and then eventually used for something else or shared. Tracking all changes between these versions is useful for two main reasons: first, it allows you to go “back” to a previous version, if the file was edited by accident or perhaps because the previous version was simply better; second, it allows you to see what modifications were performed by who, and thus it gives you the power of choosing which ones to keep, and which to toss.

Version control is essential for software, and is almost impossible to do manually. Luckily, there are many consolidated programs that can help with it. One of the most famous is “git” first developed in 2005 by Linus Torvalds (the creator and lead developer of the Linux Kernel). Many platforms leverage git to provide their services, with particular examples being GitHub and GitLab.

Version control makes it possible to work concurrently on a single document, file or software with many people easily, and is almost a must when working with software. As this is not a guide on using version control software, you can learn more about Git on https://git-scm.com/, the main website of the project.

Computational Reproducibility

When writing scripts and other software to analyze your data, reproducibility becomes an issue. Even a handful of updates in a few core packages that you leverage for your analysis might completely break the workflows or, even worse, change the results in subtle but important ways.

When using scripts to analyze data, it is important to preserve exactly the context used to run the scripts in the first place. There are a few ways to do this, but one of the most common and easy to implement is containerization. To learn more, see box:containers.

A very common software to perform containerization is Docker (https://www.docker.com/), but others exist, for example PodMan (https://podman.io/).

If your data analysis is complex, you might even want to use so-called workflow managers, like the overwhelmingly popular SnakeMake and NextFlow. They allow you to write reproducible workflows and share them with ease, while, at the same time, making them more efficient.

If you wish to use containerization or other tools to make your analyses more reproducible, contact a Data Steward: they will guide you towards more specific guidance material and can help you with reproducibility in general.

In your Data Management Plan, it’s useful to underline which solutions you will adopt to analyze your data, and how you will ensure it is reproducible.

Interpreted software

Many software languages, especially those used for analysis, are interpreted. For example, Python is interpreted. While sharing your software analysis with others, it is important to keep in mind to also share the interpreter, and all required packages, together with the software itself.

Containers, (see box:containers), can bundle all applications needed to execute the software with the software itself, thus solving these problem.

Be especially careful when deciding to use proprietary interpreted languages (such as MATLAB), as copies of it cannot be shared. Others may not be able to launch your analyses for reproducibility purposes, for example.

Sharing, licensing and other issues

Software is usually shared, licensed and reused differently than other data. These aspects are discussed more in depth in the “Sharing and Preservation” section on section:sharing.

README Files

As software is data, it needs metadata to be really understandable. Usually, software metadata is conveyed in so-called README files. Such files should usually contain:

and in general anything that is useful to correctly understand and use your code.

A good README file will act as a showcase for your project, and will let others easily know everything they need to to use your software.

Remember to keep your README updated as your program changes.

📝 Software

Consider these questions if you are writing any software during your project:

Finally, consider who will be in charge of the administration of the software you will create.

📑 Software

Andrea talks with the others on his team and determines what software they likely will need to write. They conclude, also based on their expertise, that they will need to write some code to perform the statistical analysis of the data, as well as, potentially, some data manipulation and digestion and some visualizations later.

They talk with their data steward that suggests Docker as a possible tool useful for sharing their analysis with others, as well as to promote reproducibility. As the team does not know Docker, they work with their Steward to learn more about it.


> SOFTWARE\
> We will need to write custom code for data manipulation, statistical analysis and data visualization. Mariangela knows the R statistical software and can do the work for us.
> 
> Suggested Docker as a possible reproducibility/sharing tool - Mariangela will work with the steward to learn how to leverage it.
> 
> Mariangela already uses GitHub for her code, so we're gonna make a new group on there and use Git and GitHub for the code. To not use real data for testing we're gonna create some mock synthetic data (how? we should check online techniques to do this).
> 
> We should write good READMEs following the guidance in the guide as soon as we create the repositories.
> 
> Mariangela will be in charge of the creation of all the software and the materials, also for quality purposes.