xy expressions#
[1]:
%load_ext autoreload
%autoreload 2
#
from astropathdb import AstroDB
from astropathdb import plotting as pl
from astropathdb import analysis as al
[2]:
db = AstroDB()
[3]:
hist = al.get_xy_expression(
astrodb = db,
xopal = 'cmembrane540',
yopal = 'cnucleus570',
ptype = {'phenotype': 'CD8'},
sampleid = {'sampleid': 19}
)
[4]:
hist.head()
[4]:
| x | y | |
|---|---|---|
| 0 | 22.723500 | 4.530527 |
| 1 | 13.566510 | 2.920654 |
| 2 | 12.923540 | 6.366521 |
| 3 | 15.927090 | 2.199049 |
| 4 | 2.414017 | 3.532351 |
[5]:
hist.plot(x = 'x', y = 'y', kind='scatter', logx=True, logy=True)
[5]:
<Axes: xlabel='x', ylabel='y'>