vfbquery 0.5.2__py3-none-any.whl → 0.5.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- vfbquery/__init__.py +1 -1
- vfbquery/vfb_queries.py +16 -2
- {vfbquery-0.5.2.dist-info → vfbquery-0.5.3.dist-info}/METADATA +1 -1
- {vfbquery-0.5.2.dist-info → vfbquery-0.5.3.dist-info}/RECORD +7 -7
- {vfbquery-0.5.2.dist-info → vfbquery-0.5.3.dist-info}/LICENSE +0 -0
- {vfbquery-0.5.2.dist-info → vfbquery-0.5.3.dist-info}/WHEEL +0 -0
- {vfbquery-0.5.2.dist-info → vfbquery-0.5.3.dist-info}/top_level.txt +0 -0
vfbquery/__init__.py
CHANGED
vfbquery/vfb_queries.py
CHANGED
|
@@ -2698,7 +2698,7 @@ def get_neuron_neuron_connectivity(short_form: str, return_dataframe=True, limit
|
|
|
2698
2698
|
}
|
|
2699
2699
|
return {
|
|
2700
2700
|
'headers': headers,
|
|
2701
|
-
'
|
|
2701
|
+
'rows': rows,
|
|
2702
2702
|
'count': len(rows)
|
|
2703
2703
|
}
|
|
2704
2704
|
|
|
@@ -2756,7 +2756,7 @@ def get_neuron_region_connectivity(short_form: str, return_dataframe=True, limit
|
|
|
2756
2756
|
}
|
|
2757
2757
|
return {
|
|
2758
2758
|
'headers': headers,
|
|
2759
|
-
'
|
|
2759
|
+
'rows': rows,
|
|
2760
2760
|
'count': len(rows)
|
|
2761
2761
|
}
|
|
2762
2762
|
|
|
@@ -3924,6 +3924,20 @@ def fill_query_results(term_info):
|
|
|
3924
3924
|
filtered_item = item
|
|
3925
3925
|
filtered_result.append(filtered_item)
|
|
3926
3926
|
|
|
3927
|
+
if 'headers' in result:
|
|
3928
|
+
if 'preview_columns' in query.keys() and len(query['preview_columns']) > 0:
|
|
3929
|
+
filtered_headers = {col: result['headers'][col] for col in query['preview_columns']}
|
|
3930
|
+
else:
|
|
3931
|
+
filtered_headers = result['headers']
|
|
3932
|
+
elif isinstance(result, dict) and 'data' in result:
|
|
3933
|
+
# Handle legacy 'data' key as alias for 'rows'
|
|
3934
|
+
for item in result['data']:
|
|
3935
|
+
if 'preview_columns' in query.keys() and len(query['preview_columns']) > 0:
|
|
3936
|
+
filtered_item = {col: item[col] for col in query['preview_columns']}
|
|
3937
|
+
else:
|
|
3938
|
+
filtered_item = item
|
|
3939
|
+
filtered_result.append(filtered_item)
|
|
3940
|
+
|
|
3927
3941
|
if 'headers' in result:
|
|
3928
3942
|
if 'preview_columns' in query.keys() and len(query['preview_columns']) > 0:
|
|
3929
3943
|
filtered_headers = {col: result['headers'][col] for col in query['preview_columns']}
|
|
@@ -22,7 +22,7 @@ test/test_query_performance.py,sha256=0T4qybM2GRInUmpKCQV4Q-cl6sCfxi6PjIodpirQtf
|
|
|
22
22
|
test/test_similar_morphology.py,sha256=SRtr1Zj2_RW55Qe8O6m6SCvb9QfltWgAmxPEzMX-7hg,7390
|
|
23
23
|
test/test_tracts_nerves_innervating.py,sha256=k9l-XlrvLfqzKJNyPhuJq8qBfhhrU5b8QLRnAPv1LMI,8077
|
|
24
24
|
test/test_transcriptomics.py,sha256=VZf3Tgh2XgyGZpojM87j04y42RT2Dbca6xP46h_fQHg,9969
|
|
25
|
-
vfbquery/__init__.py,sha256=
|
|
25
|
+
vfbquery/__init__.py,sha256=pesugXM2yE-UKr9uC0zj5xOjjLUUlMYWFP3Dr6rvpGE,3754
|
|
26
26
|
vfbquery/cache_enhancements.py,sha256=-PCM0YZHPjwUJwJODZLgmz91sDyFGuYz_QRph_kTbB8,17341
|
|
27
27
|
vfbquery/cached_functions.py,sha256=P0YMkKxqWsB7ZNW2AZ8uCoPlD6dMNqh9foqiYiXv1QM,45067
|
|
28
28
|
vfbquery/neo4j_client.py,sha256=zyekidmosybvR5_Qcf18W4rLJt16d-kYMojbeOEkZWY,3904
|
|
@@ -32,9 +32,9 @@ vfbquery/solr_fetcher.py,sha256=_6Cb6W7JmMwZxytDPwB8ydUqZ7MNN7j2YmaF6gpBn0Y,5696
|
|
|
32
32
|
vfbquery/solr_result_cache.py,sha256=sR17d-0V7-TfVf9b0MFmJORXginfg3rDb0mFS-yy8iI,50441
|
|
33
33
|
vfbquery/term_info_queries.py,sha256=GHf1nFFJ32be7-h26EBgE8gRrfIN0XRR5qSlgDxUD9w,42010
|
|
34
34
|
vfbquery/test_utils.py,sha256=7wUA3xgaGu3eLnjC98msNYt1wL538nOimVJjkC0ZLjU,5791
|
|
35
|
-
vfbquery/vfb_queries.py,sha256=
|
|
36
|
-
vfbquery-0.5.
|
|
37
|
-
vfbquery-0.5.
|
|
38
|
-
vfbquery-0.5.
|
|
39
|
-
vfbquery-0.5.
|
|
40
|
-
vfbquery-0.5.
|
|
35
|
+
vfbquery/vfb_queries.py,sha256=zM7e1nwk0iXZ1kp68zjRXrkxha6j0Z5WBX_h6Divql8,199924
|
|
36
|
+
vfbquery-0.5.3.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
37
|
+
vfbquery-0.5.3.dist-info/METADATA,sha256=mn1jsDexJ0NPUSXhVWiC0zWwZWyD8UVQ_lLNXMacgUc,114719
|
|
38
|
+
vfbquery-0.5.3.dist-info/WHEEL,sha256=hPN0AlP2dZM_3ZJZWP4WooepkmU9wzjGgCLCeFjkHLA,92
|
|
39
|
+
vfbquery-0.5.3.dist-info/top_level.txt,sha256=UgaRTTOy4JBdKbkr_gkeknT4eaibm3ztF520G4NTQZs,14
|
|
40
|
+
vfbquery-0.5.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|