Skip to content

Latest commit

 

History

History
116 lines (82 loc) · 9.84 KB

GIN-web-interface-tutorial.md

File metadata and controls

116 lines (82 loc) · 9.84 KB

GIN Web Interface Tutorial

The aim of this tutorial is to give you an introduction to using the GIN web interface. For this tutorial you will need a laptop with an internet connection and a mock repository downloaded on your computer.

In this tutorial you will learn how to:

  1. Create a repository
  2. Upload files to a repository
  3. Download files from a repository onto your computer
  4. Transfer repository ownership to your organisation
  5. Create a collaborating team
  6. Assign the repository to the team
  7. Add members to the team

UoB GIN is currently available only on the UoB intranet. Therefore, we are going to use the web GIN instead. This is fine as the two work the same. We start by registering an account with the web GIN. You just need to follow the instructions on the screen, confirm your email, and your account is set up (Figure 0).

Figure 0. Register your Account
Figure 0. Register your Account

 

Once the registration is done, you should have an account open as shown in the figure below.

Figure 1. Fresh Account
Figure 1. Fresh account

 

The next step is to create a repository.

Figure 2. Creating a repository
Figure 2. Creating a repository

 

I am going to use mock Neuropixels data acquired during a single recording session using two silicon probes. Below is an example (Figure 3) showing how to enter basic data describing a repository. I am not going to enter anything in the gitignore entry but one can indicate which files and folders of the local instance of the repository should not be synchronised with the remote repository by providing a gitignore file.

Figure 3. Describing a repository
Figure 3. Describing a repository

 

By default the repository is private but it can be changed to public at any time (not yet true for UoB GIN). You can also add collaborators at a later stage. Once the repository is created you should see the page below.

Figure 4. Fresh repository
Figure 4. Fresh repository

 

Once the repository is created its properties can be modified via the Settings pane (Figure 5). Figure below shows part of available settings. More advanced settings can be set up (revealed if you scroll down), as well as collaborators can be added to the repository who can be granted full or restricted access rights (Figure 6).

Figure 5. Repository settings
Figure 5. Repository settings

 

Figure 6. Setting up collaborations
Figure 6. Setting up collaborations

 

When we have a repository created and settings adjusted, the next step is to upload research data files. I have created a simple folder structure containing mock data that I would typically generate during a single recording session using two Neuropixels probes and a pupil camera but which also include pre-processing data generated during spike sorting with kilosort and Phy. The files can be uploaded using the blue ‘upload file’ button (Figure 4) which brings the ‘Commit changes’ page (Figure 7). The files can then be uploaded by clicking the area marked by the blue dashed line or by clicking that area. Note that the web interface limits the ammount and the size of files that can be uploaded. The proper more efficient way to manage multiple and large files is to use the GIN command line tools which are covered in the next tutorial.

Figure 7. File upload page
Figure 7. File upload page

 

In my case I simply drag-and-drop the entire folder that I have prepared. This mock research data folder contains the following structure:
dervinism\mock_repository\Jack_Mellor_group\MD\mock_project\animal_ID\session1_2022-05-16\probe1 (all data pertaining to the recording probe 1)
dervinism\mock_repository\Jack_Mellor_group\MD\mock_project\animal_ID\session1_2022-05-16\probe2 (all data pertaining to the recording probe 2)
dervinism\mock_repository\Jack_Mellor_group\MD\mock_project\animal_ID\session1_2022-05-16 (data that is related to both recording probes like pupil video, for example).
I also add a commit message that succinctly describes the change that I am introducing to the repository.

Figure 8. Committing files to the repository
Figure 8. Committing files to the repository

 

The repository now contains files which can be downloaded by your collaborators or by yourself if you lose access to your local instance of the repository. Just press the download button indicated in Figure 9 to download the entire repository. Files larger than 10MB will not be downloaded and only pointers will be downloaded. Big files have to be downloaded individually. Alternatively, large files can be downloaded using GIN client, git, or gitAnnex (command line tools). To download files individually, simply locate the file within the repository and click the Download button to the right of the file of interest (Figure 10). Similarly, you can delete a file by clicking the button with the bin symbol to the right of the Download button. If the file is a text file it can be edited by pressing the button with the pen symbol. GIN allows creating new text files by pressing the blue New file button (Figure 9). If you give an .md (Markdown) extension to the text file, it will allow you to use rich text editing tools just like in Github. These text editing tools are particularly useful when creating README files. Markdown text editing tools were used to create this tutorial.

Figure 9. Downloading repositories
Figure 9. Downloading repositories

 

Figure 10. Downloading individual files
Figure 10. Downloading individual files

 

Non-text files can be modified by uploading a new version of the repository files. In this way the old files are not only being replaced by the new ones, but changes are being tracked and the entire history of repository modifications is being preserved. Furthermore, you can create new repositories, add another organisation and associate the repository with a particular organisation. When I created my account, I indicated my affiliation with the University of Bristol. Now I am going to transfer the ownership of this repository to UoB. In the repository settings (Figure 5) I scroll down to the very bottom of the page passing the Advanced Settings all the way down to the Danger Zone where I carry out the transfer of ownership (Figure 11).

Figure 11. Danger Zone
Figure 11. Danger Zone

 

Once the ownership transfer has been carried out, the repository name should become associated with the new owner: UoB (Figure 12).

Figure 12. Transferring repository ownership
Figure 12. Transferring repository ownership

 

If you go to the Dashboard of your account (see top left corner of Figure 12), you can view activity that is associated with your account. There you can also see repositories and organisations associated with the repositories you work with. If you click on the organisation that is associated with one of your repositories (Figure 13), you will be taken to the organisation’s page (Figure 14) where you can create new teams of users. Figure 15 shows an example of creating a team that works with Neuropixels recordings: carrying out experiments using Neuropixels probes and writing code to analyse data generated using these probes. As one of the final steps, you associate the team with a repository which would give anyone within that team elevated rights to manipulate the repository as indicated in the Figure 16. If you press the blue Join button, you become a member of this team.

Figure 13. Finding your organisation in the Dashboard
Figure 13. Finding your organisation in the Dashboard

 

Figure 14. Organisation page
Figure 14. Organisation page

 

Figure 15. Creating a team
Figure 15. Creating a team

 

Figure 16. Assigning a repository to a team
Figure 16. Assigning a repository to a team

 

The team that you have created currently has no members. By pressing the blue Join button (Figure 16), you can be the first member to join the team. You can also invite other members of your lab or external collaborators to join the team. If you press on the blue members text, you will be prompted to add new team members (Figure 17). Choose another member of your lab to add as a collaborating team member. The new team member will have access and elevated rights to control the repository.

Figure 17. Add new team meambers
Figure 17. Add new team meambers

 

Any issues relating to a particular repository can be reported under the Issues tab in the repository page (Figures 4, 9, and 12). Any requests to make changes to the repository can be approved under the Pull Requests tab (Figures 4, 9, and 12). A more extended description of how to use the GIN server web interface is available at the GIN web interface guide. There is also a Windows GIN client available that functions as a GIN GUI for Windows systems.