Hippocampome-Org / php

Hippocampome web portal
3 stars 2 forks source link

NS: [lengths]: Neurite length and somatic distance evidence pages count of articles disabled for v2.0 #746

Open drdiek opened 2 months ago

drdiek commented 2 months ago

I had to take this out because I created new code to hide entries that have missing data. The source data for synapse probabilities' dendritic and axonal lengths and somatic distances pages has database rows that contain multiple statistics per row (e.g.,columns: total_length, avg_path_length, convexhull). Some rows have certain statistics and not others. This appears as missing data on the evidence pages unless it is corrected for. I implemented new evidence page code to hide entries that have missing data. However, the count of articles and quotes at the bottom of the page was not able to be updated to reflect this. Therefore, instead of having it list the wrong counts, I commented out the code that displays the counts. It in the past has looked like "1 - 2 of 2 articles (3 Quotes)", etc. If wanted, future work could be done to restore this article count listing with a way to be compatible with the new code that hides entries that have missing data.

The method of hiding data was preferred instead of deleting the database rows because row that contain some data but not all possible data should not be deleted just because they are missing some of the data they could contain. While the rows with some statistics and not others exist in the database, the old way of presenting the evidence pages showed missing data, and it looks better to hide entries if the data is missing.

This does not affect the number of potential synapses, number of contacts, and synaptic probabilities evidence pages. Their pages still include the article count at the bottom of the page.