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:
-
Exercises
Theexercises
folder contains hands-on practice tasks and correct answers. If you would like to go through the exercises, useimpc_workshop_exercises.ipynb
. If you would like to look at the correct answers, take a look atimpc_workshop_answers.ipynb
. -
Presentations
Thepresentations
folder includes all the slide decks used during the workshop sessions. -
Cheat Sheet
Thecheat_sheet.ipynb
file is a Jupyter Notebook that serves as a quick reference guide for common API tasks and commands.
Useful Links
- IMPC website
- IMPC SOLR cores documentation
- IMPReSS | International Mouse Phenotyping Resource of Standardised Screens
- GenTaR | The Genome Targeting Repository
Phenodigm useful links:
- IMPC disease models summary
- IMPC disease associations
- Disease Models Portal
- OMIM | Online Mendelian Inheritance in Man
- Orphanet
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:
- 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. - 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
-
Create a virtual environment (optional but recommended):
python3 -m venv my_venv source my_venv/bin/activate
-
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.
-
Clone the repository: Open your terminal and run:
git clone https://github.com/mpi2/impc-data-api-workshop
-
Update pip:
pip install --upgrade pip
-
Install the dependencies:
cd impc-data-api-workshop pip install -r requirements.txt
-
Start Jupyter Notebook:
jupyter notebook
-
This will open a new browser window with the Jupyter interface. On the sidebar, navigate to the exercises directory.
-
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.
- Navigate to the Binder website.
- Paste the URL of this repository as instructed.
- This will start a Docker container with the dependencies from
requirements.txt
. All you have to do is wait. - 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
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38365a0f412b33e9a8c9309879a9985414abc00ae13ae8be312be5c5b899b743 |
|
MD5 | cdd36fe427e8246d0adda60481264351 |
|
BLAKE2b-256 | 64eb3151adef11b8ccd799bcd9cf5c34b7221232f0262162d714747fac1569f6 |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 544fd1be21f9c8489545aad0fecf4efb38b1b7773d5f694ba3aa63eea8043559 |
|
MD5 | e7f511bf0b917d130bba83b6d9925ac1 |
|
BLAKE2b-256 | deda2188f82ab200cde56e1dbdf6332e0591f3037b12703ec686e47dd8e590e5 |