{ "cells": [ { "cell_type": "raw", "metadata": { "raw_mimetype": "text/restructuredtext", "vscode": { "languageId": "raw" } }, "source": [ ".. _xy_expressions_example:\n", "\n", "======================\n", "xy expressions\n", "======================" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "%load_ext autoreload\n", "%autoreload 2\n", "#\n", "from astropathdb import AstroDB\n", "from astropathdb import plotting as pl\n", "from astropathdb import analysis as al\n" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "db = AstroDB()" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [], "source": [ "hist = al.get_xy_expression(\n", " astrodb = db,\n", " xopal = 'cmembrane540',\n", " yopal = 'cnucleus570',\n", " ptype = {'phenotype': 'CD8'},\n", " sampleid = {'sampleid': 19}\n", ")" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
| \n", " | x | \n", "y | \n", "
|---|---|---|
| 0 | \n", "22.723500 | \n", "4.530527 | \n", "
| 1 | \n", "13.566510 | \n", "2.920654 | \n", "
| 2 | \n", "12.923540 | \n", "6.366521 | \n", "
| 3 | \n", "15.927090 | \n", "2.199049 | \n", "
| 4 | \n", "2.414017 | \n", "3.532351 | \n", "