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.

Choosing where to store your data and how to organize the files you will create during your project is a central aspect of research data management. Here, the goal is to efficiently store the data, allow both humans and machines (i.e. analysis scripts) to access and use the data easily, and ensure that nothing is lost, damaged or accidentally modified.

Another aspect to consider is who on your research team can add, access, modify and delete your data. This is especially relevant if your data is sensitive (see the section on section:sensitive_data).

Your data was probably expensive to gather, maybe it cannot ever be gathered again, or it could be protected by industrial secrets. Loss or unauthorized access to it could be catastrophic. This section is all about not letting that happen.

Choosing a storage solution

You will need to store you data somewhere for the duration of your project.

Choosing a good storage solution for your data is crucial. A good storage solution:

Storage solutions come in many shapes and sizes, and you are invited to ask a data steward for help in selecting one. Asking your department or institution IT department can also be extremely helpful, as different universities provide different storage solutions to their researchers.

See tab:storage_solutions for a list of possible storage solutions.

StorageProsCons
Internal hard drive (PC, laptop)Always available, extremely flexibleRisk of data loss (theft, damage), requires manual backups, no built-in version control, difficult to share, limited capacity
External hard drivePortable, quite economic, easy to share, extremely flexibleRisk of theft or damage, requires manual backups, no built-in version control, limited capacity
Cloud storage servicesAccessible from multiple devices, even simultaneously, easy to share with others and collaborate, usually has version controlOnly available with internet access, possible sync errors, can be costly, and usually depends on third-party companies.
Personal serversVery safe, if maintained properly, all the benefits from cloud storage services, possible to access locallyVery costly, usually required dedicated personnell

Security

When using a service or solution from third parties, the security of the storage provided by them usually is guaranteed in whatever agreement is there between you (or your institution) and the provider of the service.

In any case, it’s best to check if the security of your data is guaranteed, and if so, how. Additionally, extra care should be given on the security of sensitive data (see section:sensitive_data to learn more), and in particular where the servers of the provider are located.

In any case, it’s best to contact an IT professional, the DPO or a Data Steward to help you in selecting appropriate data security measures.

Structuring files and folders

Choosing how to structure your files and folders is generally up to you, and you don’t need to be particularly specific when stating how you will handle it in practice. However, it can be important to determine a data sorting and labelling plan especially if you are going to gather many files and/or you have several partners which will contribute their own files into a shared repository.

You should include a few general guidelines regarding:

The example:file_organization shows you just one possible way to structure your data.

Here, consulting a data steward with your specific problem is very useful - they can help you define a data management strategy that works for you.

The topic of file and folder organization is one that will most probably change as you start gathering your data. Remember to update your DMP if you realize that you have to change how you store and structure your files.

Some projects, especially those that use so-called “big” data, will most likely use specialized software like SQL databases to handle their data. Obviously, if your project must use specialized solutions for its data handling and storage requirements, this section reduces to merely describing the systems that are or will be put in place.

File Naming Conventions

How you name files is very important. A good name should allow you to:

For this reason, it’s a good idea to decide on some rules to follow when naming files. A common method is to create a naming pattern, for example:

YYYY-MM-DD_{type}_{protocol}_{run id}.{data|metadata}.{ext}

For this example, the various sections mean:

You can, of course, come up with any naming pattern for your files. Patterns like this one, however, going from the broadest characteristics (the date), to the most specific (the experimental run) allow you to store other information higher up in the tree as their own files. For instance, a specific experimental protocol could be named, following the pattern from before, as YYYY-MM-DD_{type}_{protocol}.pdf.

Here are some concrete examples:

The important thing here is to be consistent - pick one (or more!) patterns and stick with them. If you find them to be not useful during the project, update them and the DMP accordingly.

bold[Do not store metadata only in the file name! If you use some metadata field in your file names, repeat them in the contents of the file itself. File names are very easy to modify, and thus the metadata written there is at risk of (accidental) modification.]

You should avoid using file names to track file versions (e.g. my_file_v1.pdf, my_fileFINALFINAL.pdf, etc...). To track the versions of files that need it, it’s best to use a proper file versioning system: see [versioning]{.ref}.

Controlling access

Not all members of your research team have the same role (see activity:team), and therefore not all of them might need to access all the data you are handling.

Especially if you are working with sensitive data, limiting the number of people that can access the data reduces the risk of accidental modification, deletion or disclosure.

In your DMP, you should consider if everyone must have access to every piece of data you collect, and, if not, who should have access to what, and for how long. Of course, you are limited in what you can do based on the choice of data storage solution you have made (see [hot_data_storage]{.ref}): some storage solutions do not provide fine control over data access permissions. It’s always best to talk to your ICT expert regarding these requirements.

Data Backups

Backups are copies of the original data in a different physical location. They are useful as, if one of the copies is lost, destroyed or accidentally edited, the others can be used to restore it.

For instance, if all your hard-collected data is stored only in your laptop, and it gets stolen, you will lose the data forever.

Cloud storage solutions usually handle their own backups, and accidental data loss from major cloud storage providers, like Microsoft, Google or Apple are highly unlikely. However, cloud backups are as vulnerable to accidental editing as local copies.

A good rule of thumb when planning for backups is the “3, 2, 1” rule: plan to create three total copies, in at least two different media, one of which is a cloud storage solution. Of course, this rule should be adapted to your specific use case, and specifically backup copies should be created carefully when dealing with sensitive data (see section:sensitive_data). In these cases, it’s best to work with a Data Steward to select appropriate storage and backup locations.

📝 File Organization

To do this activity, you must be familiar with the chapter on File Organization on section:organization and have completed the activity:data_outline.

First, determine what the best storage solution for your project is. Consider the following aspects:

After you write all of these criteria, contact your ICT expert in the department - they will guide you to the best solution for your use case (see [hot_data_storage]{.ref}).

Second, answer the following questions regarding file structure and how they will be stored:

As you write these, you may realize you need more fields in your metadata files, especially if they are useful to relate files to one another. Remember to go back and add them in the file you created for activity:metadata_schema.

Remember that the DMP can be updated as you go. Simply write down what seems to be useful for now - if you realize it doesn’t work, change the DMP accordingly!

Annotate who will be in charge of checking that all data is stored properly, and that these rules are followed. You can either assign someone to periodically check that everything is collected properly, or even have one person be the sole recipient of the data - they will receive all data from all the others, and save it properly in its place[^11].

📑 File Organization

Andrea and their team consider where to store and how to organize their files.

They already contacted a Data Steward and determined that the cloud storage provided by the Atheneum has the sufficient security features that they require, so they simply need to define how to name and sort their files.

The Steward helped them develop a file naming pattern suitable for their needs.

FILE NAMING CONVENTION
Every file should have a unique name, so that there is no chance of mixing them up. The pattern is:

PAD-\[data type ID\]-\[date\]-\[specific identifier\].\[metadata or data\].\[file extension\]

  • PAD is short for “PADDING”;

  • The “data type id” is a shorthand for which kind of data is in the file (make a table);

  • “plan” -> planimetry, “insul” -> insulation of a planimetry, etc... Full details when we start generating the files.

  • The “specific identifier” is a string uniquely representing the contents of the file (to be defined later?)

  • The end of the file finishes with “.metadata” or “.data” - each “data” file has one “metadata” file related to it.

  • Finally, the file name ends in the extension.

There will be a single, encrypted excel file that collects all personal data, which only I (Andrea) can access, while all paper forms that gather personal data will be destroyed after I insert the data in the encrypted file. We will use “pseduonymization”, and each person will be given a unique identifier to relate other data together, but without their identifying information.

Software will be hosted on github and its structure is dependent on which programming language we choose. Most likely Python, so a standard python package.

FOLDER STRUCTURE
We think this is a good folder structure, to start with:

  • Data

    • Planimetries

    • Insulations

    • Criteria

    • Illness_data

    • Analysis outputs

      • Figures

  • Bibliography

  • Manuscripts

Data that is ready for analysis will be moved in its own read-only folder by me after checking for errors (manually?).