There is a function which allows the import and the export of metadata, but why would it be important?
Let us see the main reasons:
- You want to analyze the metadata on your own computer
- You want to upload some new metadata connected to one of your sessions
- You want to change some metadata connected to one of your sessions
To export and import metadata, follow the steps below.
- Login and choose the corresponding project, then go to 'My Data' and click on 'Other options'. Here, select 'Export Metadata'.Here, you can select the title of the file, type and ID row. These rows are the most basic ones, and could be organized by Gender, Handedness, Age at scan, Gray Matter volume or whatever the chosen data contains.
- Afterwards, just click on the 'Prepare CSV file' button. In this case, your CSV file will contain 4 rows which consist of 2 columns, the Gender and the Handedness. The fourth row is the data itself.
It is really important to know in which subject which session ID you want to upload or exchange. To create a new metadata subject or to create a new Session in an existing subject, use the following form: 'subjectname/sessionID'.
Be aware that the import metadata will overwrite the old one which has the same name as the new one. Old ones are accessible from the history but the system will use the new imported metadata.
- To import a CSV file from your computer, please do as before until click on 'Other options'. Now please, select 'Import Metadata'
- After the upload of the CSV file of the new metadata, with a good format, you will be able to see the changes in the summarizing table under 'My Data' or the new metadata line with the new Session ID or the new Subject ID depending on your changes.
Note: It doesn't matter whether you select an existing Session or not, because the uploading is driven by the above-mentioned Subject and Session ID.
There is another option called 'Show only the parameters from the CSV file'. This option could be useful to recompose the appearance of the table of your metadata. It doesn't mean that the metadata will be deleted, i.e. old columns from the dataset. This recomposition will just modify the appearance with which you can see much more easily what kind of datasets you have.
Where can you check what the old value of the metadata was?
In the case of overwriting a data by importing, the data can still be checked from which value you changed the dataset. To do so, follow the following steps:
- Select the session which had been changed.
- Click on 'Other options', select 'Edit session'.
- If you click on the double square arrow icon, the popup will tell you what kind of changes were made by whom and when.