{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "## Wrap README.md in a notebook" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "data": { "text/markdown": [ "# idr-notebooks\n", "\n", "A set of Python Notebooks to demonstrate how to access the images and metadata from the [Image Data Resource (IDR)](https://idr.openmicroscopy.org), including features and all descriptive tags.\n", "\n", "Full access to IDR metadata and images is provided through the standard OMERO API, documentation for which can be found [here](https://docs.openmicroscopy.org/latest/omero5.4/developers/index.html), with the Python bindings found specifically [here](https://docs.openmicroscopy.org/latest/omero5.4/developers/Python.html). The notebooks in this repository are meant to exemplify the use of that API in the context of the IDR, and the sort of queries that can be done. In particular, they show how to reproduce Figure 1 and Figure 2 of the paper.[1](#footnote1) They also make use of the [scipy](https://www.scipy.org/) ecosystem, including [pandas](https://pandas.pydata.org).\n", "\n", "To build the image run, in this repository:\n", "\n", " $ docker build -t idr-notebooks .\n", "\n", "The image contains the dependencies required to connect to IDR.\n", "\n", "To start the image:\n", "\n", " $ docker run -it -p 8888:8888 idr-notebooks\n", "\n", "| **Notebook** | **Lang** | **Level** | **Description** |\n", "|----------------------------------------------------------------------------|----------|---------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n", "| **[Using Jupyter](Using_Jupyter.ipynb)** | Markdown | Intro | Getting a login account |\n", "| **[IDR API example script](IDR_API_example_script.ipynb)** | Py | Intro | Shows an example of using the web API to extract metadata from the IDR. Can also be launched **locally**. |\n", "| **[Getting Started](Getting_Started.ipynb)** | Py | Intro | How to connect, some simple data access |\n", "| **[Figure 1 Sample of Phenotypes](Figure_1_Sampling_of_Phenotypes.ipynb)** | Py | IDR Paper | Reproduces Fig. 1 of the paper: downloads annotations from all screens and computes and plots some statistics |\n", "| **[Gene Network](GeneNetwork.ipynb)** | Py | IDR Paper | Reproduces Fig. 2 of the paper: downloads annotations from 3 screens,with a phenotype in common, queries StringDB for interactions and plots the resulting network. Uses a conversion table for orthologues and gene identifiers which was built offline using biomart (see article for more details). It uses [Bokeh](https://bokeh.pydata.org/) and [NetworkX](https://networkx.github.io/) to display networks. |\n", "| **[PCA analysis of Charm features](PCAanalysisOfCharmFeatures.ipynb)** | Py | Study details | Shows how to access the computed CHARM features using OMERO.tables, and performs some analysis on them, showing that single cell information can be accessed from generic tile-based features, without segmentation. |\n", "| **[Rohn Phenotype Clustering](RohnPhenotypeClustering.ipynb)** | Py | Study details | Downloads annotations from idr0008-rohn-actinome, and performs some simple phenotypic clustering, building a figure, similar to Fig. 1 of the corresponding paper. Builds a gallery of thumbnails from images of several phenotypes. |\n", "| **[Sysgro ROI Length](SysgroRoiLength.ipynb)** | Py | Study details | Loads polygons which are linked to the images of idr0001-graml-sysgro and compares the length of cells labelled with a particular gene such as ASH2 versus the wild type. |\n", "| **[Calculate Sharpness](CalculateSharpness.ipynb)** | Py | Example | Calculates sharpness of images and generates heatmaps. |\n", "\n", "----\n", "\n", "1: Available on bioRxiv under https://doi.org/10.1101/089359\n", "\n", "2: If you don't yet have [an account](Using_Jupyter.ipynb), notebooks can be viewed under https://github.com/IDR/idr-metadata or more completely under https://nbviewer.jupyter.org/github/idr/idr-notebooks/tree/master/\n" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "from IPython.display import display, Markdown\n", "with open('README.md', 'r') as fh:\n", " content = fh.read()\n", "display(Markdown(content))" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.6.5" } }, "nbformat": 4, "nbformat_minor": 2 }