In [1]:
drive_path = '/Volumes/Brain2016 1'
import os
from allensdk.core.mouse_connectivity_cache import MouseConnectivityCache
import numpy as np
import pandas as pd
%matplotlib inline
import matplotlib.pyplot as plt
import get_connectivity as gc
import sys
sys.path.append('~/GIT/K-AND/daniel/')
In [2]:
# When downloading 3D connectivity data volumes, what resolution do you want (in microns)?
# Options are: 10, 25, 50, 100
resolution_um=25
# The manifest file is a simple JSON file that keeps track of all of
# the data that has already been downloaded onto the hard drives.
# If you supply a relative path, it is assumed to be relative to your
# current working directory.
manifest_file = os.path.join(drive_path, "MouseConnectivity","manifest.json")
mcc = MouseConnectivityCache(manifest_file=manifest_file, resolution=resolution_um)
In [3]:
ontology = mcc.get_ontology()
In [5]:
fid_VIS_SCm, fpd_VIS_SCm=get_connectivity('VIS','SCm')
In [6]:
fid_SCm_PRNc, fpd_SCm_PRNc=get_connectivity('SCm','PRNc')
In [7]:
fid_SCm_PRNr, fpd_SCm_PRNr=get_connectivity('SCm','PRNr')
In [8]:
fid_PRNc_III, fpd_PRNc_III=get_connectivity('PRNc','III')
In [9]:
fid_PRNc_VI, fpd_PRNc_VI=get_connectivity('PRNc','VI')
In [10]:
fid_PRNr_VI, fpd_PRNr_VI=get_connectivity('PRNr','VI')
In [11]:
fid_PRNr_III, fpd_PRNr_III=get_connectivity('PRNr','III')
In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [13]:
iu_c,iw_c=get_mean_injection_density(fid_SCm_PRNc,fpd_SCm_PRNc)
In [15]:
iu,iw=get_mean_injection_density(fid_SCm_PRNr, fpd_SCm_PRNr)
In [ ]:
In [16]:
plot_max_voxels(iu,'SCm')
In [17]:
plot_max_voxels(iw,'SCm')
In [ ]:
plot_max_voxels(iw_c,'SCm')
In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [ ]:
# # plot histogram for VIS_SCm_npv data
# vs_npv = VIS_SCm_npv.values()
# _,_,_=plt.hist(vs_npv, 25, facecolor='green', alpha=0.75)
In [ ]:
# spc_npv = SCm_PRNc_npv.values()
# _,_,_=plt.hist(spc_npv, 25, facecolor='green', alpha=0.75)
In [ ]:
# spr_npv = SCm_PRNr_npv.values()
# _,_,_=plt.hist(spr_npv, 25, facecolor='green', alpha=0.75)
In [ ]:
# plt.scatter(spr_npv,spc_npv,alpha=.5,s=80)
In [ ]:
In [ ]: