In [35]:
%load_ext autoreload
%autoreload 2
In [41]:
from AllenImageSyncroSDK import AllenImageSyncroSDK
In [ ]:
In [42]:
allensdk=AllenImageSyncroSDK()
In [43]:
allensdk.reference_to_image(1,0,0,0,[100054727])
Out[43]:
In [48]:
#this takes a plate from the e18 atlas (100740810)
#and a location roughly over p2a on that plate
#and maps it to the p56 atlas (id=181276165)
# see http://atlas.brain-map.org/atlas?atlas=181276160#atlas=181276160&plate=100740810&structure=16382&x=3997&y=2293&zoom=0&resolution=0.99&z=6
allensdk.image_to_atlas(100740810,3997,2293,181276165)
#the result says it is on section_image_id=10083770 at 7831,3699
#which is correctly over p2a
#see http://atlas.brain-map.org/atlas?atlas=181276165#atlas=181276165&plate=100883770&structure=16382&x=7831.99560546875&y=3700.004638671875&zoom=0&resolution=2.09&z=7
Out[48]:
In [45]:
allensdk.image_to_reference(100837249,0,0)
Out[45]:
In [ ]: