vfbquery 0.5.2__tar.gz → 0.5.4__tar.gz
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-0.5.2/src/vfbquery.egg-info → vfbquery-0.5.4}/PKG-INFO +1 -1
- {vfbquery-0.5.2 → vfbquery-0.5.4}/setup.py +1 -1
- {vfbquery-0.5.2 → vfbquery-0.5.4}/src/vfbquery/__init__.py +1 -1
- {vfbquery-0.5.2 → vfbquery-0.5.4}/src/vfbquery/solr_result_cache.py +3 -1
- {vfbquery-0.5.2 → vfbquery-0.5.4}/src/vfbquery/vfb_queries.py +16 -2
- {vfbquery-0.5.2 → vfbquery-0.5.4/src/vfbquery.egg-info}/PKG-INFO +1 -1
- {vfbquery-0.5.2 → vfbquery-0.5.4}/LICENSE +0 -0
- {vfbquery-0.5.2 → vfbquery-0.5.4}/README.md +0 -0
- {vfbquery-0.5.2 → vfbquery-0.5.4}/pyproject.toml +0 -0
- {vfbquery-0.5.2 → vfbquery-0.5.4}/setup.cfg +0 -0
- {vfbquery-0.5.2 → vfbquery-0.5.4}/src/test/__init__.py +0 -0
- {vfbquery-0.5.2 → vfbquery-0.5.4}/src/test/readme_parser.py +0 -0
- {vfbquery-0.5.2 → vfbquery-0.5.4}/src/test/term_info_queries_test.py +0 -0
- {vfbquery-0.5.2 → vfbquery-0.5.4}/src/test/test_dataset_template_queries.py +0 -0
- {vfbquery-0.5.2 → vfbquery-0.5.4}/src/test/test_default_caching.py +0 -0
- {vfbquery-0.5.2 → vfbquery-0.5.4}/src/test/test_examples_code.py +0 -0
- {vfbquery-0.5.2 → vfbquery-0.5.4}/src/test/test_examples_diff.py +0 -0
- {vfbquery-0.5.2 → vfbquery-0.5.4}/src/test/test_expression_overlaps.py +0 -0
- {vfbquery-0.5.2 → vfbquery-0.5.4}/src/test/test_expression_pattern_fragments.py +0 -0
- {vfbquery-0.5.2 → vfbquery-0.5.4}/src/test/test_images_neurons.py +0 -0
- {vfbquery-0.5.2 → vfbquery-0.5.4}/src/test/test_images_that_develop_from.py +0 -0
- {vfbquery-0.5.2 → vfbquery-0.5.4}/src/test/test_lineage_clones_in.py +0 -0
- {vfbquery-0.5.2 → vfbquery-0.5.4}/src/test/test_nblast_queries.py +0 -0
- {vfbquery-0.5.2 → vfbquery-0.5.4}/src/test/test_neuron_classes_fasciculating.py +0 -0
- {vfbquery-0.5.2 → vfbquery-0.5.4}/src/test/test_neuron_inputs.py +0 -0
- {vfbquery-0.5.2 → vfbquery-0.5.4}/src/test/test_neuron_neuron_connectivity.py +0 -0
- {vfbquery-0.5.2 → vfbquery-0.5.4}/src/test/test_neuron_region_connectivity.py +0 -0
- {vfbquery-0.5.2 → vfbquery-0.5.4}/src/test/test_neurons_part_here.py +0 -0
- {vfbquery-0.5.2 → vfbquery-0.5.4}/src/test/test_new_owlery_queries.py +0 -0
- {vfbquery-0.5.2 → vfbquery-0.5.4}/src/test/test_publication_transgene_queries.py +0 -0
- {vfbquery-0.5.2 → vfbquery-0.5.4}/src/test/test_query_performance.py +0 -0
- {vfbquery-0.5.2 → vfbquery-0.5.4}/src/test/test_similar_morphology.py +0 -0
- {vfbquery-0.5.2 → vfbquery-0.5.4}/src/test/test_tracts_nerves_innervating.py +0 -0
- {vfbquery-0.5.2 → vfbquery-0.5.4}/src/test/test_transcriptomics.py +0 -0
- {vfbquery-0.5.2 → vfbquery-0.5.4}/src/vfbquery/cache_enhancements.py +0 -0
- {vfbquery-0.5.2 → vfbquery-0.5.4}/src/vfbquery/cached_functions.py +0 -0
- {vfbquery-0.5.2 → vfbquery-0.5.4}/src/vfbquery/neo4j_client.py +0 -0
- {vfbquery-0.5.2 → vfbquery-0.5.4}/src/vfbquery/owlery_client.py +0 -0
- {vfbquery-0.5.2 → vfbquery-0.5.4}/src/vfbquery/solr_cache_integration.py +0 -0
- {vfbquery-0.5.2 → vfbquery-0.5.4}/src/vfbquery/solr_fetcher.py +0 -0
- {vfbquery-0.5.2 → vfbquery-0.5.4}/src/vfbquery/term_info_queries.py +0 -0
- {vfbquery-0.5.2 → vfbquery-0.5.4}/src/vfbquery/test_utils.py +0 -0
- {vfbquery-0.5.2 → vfbquery-0.5.4}/src/vfbquery.egg-info/SOURCES.txt +0 -0
- {vfbquery-0.5.2 → vfbquery-0.5.4}/src/vfbquery.egg-info/dependency_links.txt +0 -0
- {vfbquery-0.5.2 → vfbquery-0.5.4}/src/vfbquery.egg-info/requires.txt +0 -0
- {vfbquery-0.5.2 → vfbquery-0.5.4}/src/vfbquery.egg-info/top_level.txt +0 -0
|
@@ -660,7 +660,9 @@ def with_solr_cache(query_type: str):
|
|
|
660
660
|
'similar_morphology_part_of', 'similar_morphology_part_of_exp',
|
|
661
661
|
'similar_morphology_nb', 'similar_morphology_nb_exp',
|
|
662
662
|
'similar_morphology_userdata', 'neurons_part_here', 'neurons_synaptic',
|
|
663
|
-
'neurons_presynaptic', 'neurons_postsynaptic'
|
|
663
|
+
'neurons_presynaptic', 'neurons_postsynaptic', 'neuron_neuron_connectivity_query',
|
|
664
|
+
'neuron_region_connectivity_query', 'instances', 'templates', 'images_neurons',
|
|
665
|
+
'images_that_develop_from', 'expression_pattern_fragments']
|
|
664
666
|
if query_type in dataframe_query_types:
|
|
665
667
|
return_dataframe = kwargs.get('return_dataframe', True) # Default is True
|
|
666
668
|
cache_term_id = f"{cache_term_id}_dataframe_{return_dataframe}"
|
|
@@ -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']}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|