Skip to main content

A package to facilitate making API request to the IMPC Solr API

Project description

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 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.

Happy coding!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

impc_api-1.0.1.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

impc_api-1.0.1-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file impc_api-1.0.1.tar.gz.

File metadata

  • Download URL: impc_api-1.0.1.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for impc_api-1.0.1.tar.gz
Algorithm Hash digest
SHA256 38365a0f412b33e9a8c9309879a9985414abc00ae13ae8be312be5c5b899b743
MD5 cdd36fe427e8246d0adda60481264351
BLAKE2b-256 64eb3151adef11b8ccd799bcd9cf5c34b7221232f0262162d714747fac1569f6

See more details on using hashes here.

File details

Details for the file impc_api-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: impc_api-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for impc_api-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 544fd1be21f9c8489545aad0fecf4efb38b1b7773d5f694ba3aa63eea8043559
MD5 e7f511bf0b917d130bba83b6d9925ac1
BLAKE2b-256 deda2188f82ab200cde56e1dbdf6332e0591f3037b12703ec686e47dd8e590e5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page