Skip to content

Repository to store material for the IMPC Data API workshop.

License

Notifications You must be signed in to change notification settings

mpi2/impc-data-api-workshop

Repository files navigation

IMPC Data API Workshop Repository

Welcome to the IMPC Data API Workshop repository! This repository is designed to provide all the resources you need to follow along with our workshop (2024-05-20) on building and using data APIs. Below is an overview of the contents of this repository:

  1. Exercises
    The exercises folder contains hands-on practice tasks and correct answers. If you would like to go through the exercises, use impc_workshop_exercises.ipynb. If you would like to look at the correct answers, take a look at impc_workshop_answers.ipynb.

  2. Presentations
    The presentations folder includes all the slide decks used during the workshop sessions.

  3. Cheat Sheet
    The cheat_sheet.ipynb file is a Jupyter Notebook that serves as a quick reference guide for common API tasks and commands.

Useful Links

Phenodigm useful links:

Installation Guide

Whether you attended the workshop or want to explore the exercises, here is a guide to work locally.
To use the Jupyter notebook with the exercises, you need to set up an environment to run it. We suggest two options:

  1. Local Installation (More control, but more setup): Install on your machine. This allows ease of access, execution of complex queries, and uses your computational resources, but can be challenging if you haven't used pip before. We highly recommend this option.
  2. Using Binder (Easier to set up, but less resources available): A limited computing environment via Binder.

Option 1. Local Installation with pip and Jupyter

We recommend using Python 3.10

  1. Create a virtual environment (optional but recommended):

    python3 -m venv my_venv
    source my_venv/bin/activate
  2. Install Jupyter Notebook: You can find the installation instructions here. If you are using a virtual environment, make sure you install Jupyter notebook inside the environment.

  3. Clone the repository: Open your terminal and run:

    git clone https://github.com/mpi2/impc-data-api-workshop
  4. Update pip:

    pip install --upgrade pip
  5. Install the dependencies:

    cd impc-data-api-workshop
    pip install -r requirements.txt
  6. Start Jupyter Notebook:

    jupyter notebook
  7. This will open a new browser window with the Jupyter interface. On the sidebar, navigate to the exercises directory.

  8. Open the impc_workshop_exercises.ipynb file.

Option 2. Using Binder

If you prefer an easier way to interact with the material, try Binder

We advice this approach for preliminary exploration of the material, if you wish to write your own queries we encourage you to attempt a the local setup.

  1. Navigate to the Binder website.
  2. Paste the URL of this repository as instructed.
  3. This will start a Docker container with the dependencies from requirements.txt. All you have to do is wait.
  4. Once it is done loading, a new window with a Jupyter notebook session will start.

NOTES:

  • Should you wish to save any changes you make to the Jupyter notebooks, follow Binder's instructions.
  • Binder has a maximum of simultaneous users per repo, to ensure you can use the material, opt for Installation Option 1.
  • Note some of the existing queries in the exercises might not work due to the resource cap from Binder.

Based on the workshop material, we created a Python package called impc_api. Documentation on how to download, available functions, and usage instructions can be found here.

Note: Some functions in the package have been updated compared to the workshop material.

Happy coding!

About

Repository to store material for the IMPC Data API workshop.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •