Are the lines Information directly measured, or computed from density information?
For example, in the below code, we can download the lines information around the coordinate (4400, 3300, 5600). Are the lines directly measured from the brain (if yes, how)?
Or there is an algorithm to compute the lines by using the density information? Therefore, we obtain the density information first (i.e. http://api.brain-map.org/grid_data/download/156394513?include=density), and then do some differences comparison at the voxels nearby (4400, 3300, 5600)?
Thanks!
import json
import urllib.request
LINES_FMT = "http://api.brain-map.org/api/v2/data/query.json?criteria=service::mouse_connectivity_target_spatial[seed_point$eq%d,%d,%d][section_data_set$eq%d]"
injection_data_set_id = 156394513
x = 4400
y = 3300
z = 5600
url = LINES_FMT % (x, y, z, injection_data_set_id)
connection = urllib.request.urlopen(url)
response_text = connection.read()
response = json.loads(response_text)
print(len(response['msg']))
print(response['msg'][0])