Skip to content

Commit

Permalink
Transposed table
Browse files Browse the repository at this point in the history
  • Loading branch information
pgleeson committed Jun 26, 2024
1 parent 3808f30 commit 09c8c40
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 14 deletions.
9 changes: 7 additions & 2 deletions cect/Comparison.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
"N->M neurotrans."]


readers = {"SSData": "cect.SpreadsheetDataReader",
"UpdSSData": "cect.UpdatedSpreadsheetDataReader",
"UpdSSData2": "cect.UpdatedSpreadsheetDataReader2",
}
readers = {"SSData": "cect.SpreadsheetDataReader",
"UpdSSData": "cect.UpdatedSpreadsheetDataReader",
"UpdSSData2": "cect.UpdatedSpreadsheetDataReader2",
Expand All @@ -28,6 +32,7 @@
"Cook2019Herm": "cect.Cook2019HermReader",
}


def shorten_neurotransmitter(nt):
return nt.replace('Acetylcholine', 'ACh').replace('Serotonin', '5HT').replace('Glutamate', 'Glu')\
.replace('Tyramine', 'Tyr').replace('FMRFamide','FMRFam').replace('Generic_', 'Gen_')
Expand Down Expand Up @@ -90,8 +95,8 @@ def shorten_neurotransmitter(nt):
import numpy as np
from IPython.display import HTML

df_all = pd.DataFrame(all_data)
df_all.set_index("Values")
df_all = pd.DataFrame(all_data).transpose()
#df_all.set_index("Values")

#h = HTML(df_all.to_html(escape=False, index=False))

Expand Down
25 changes: 14 additions & 11 deletions docs/Comparison.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
| | Values | SSData | UpdSSData | UpdSSData2 | White_A | White_L4 | White_whole | Varshney | Witvliet1 | Witvliet2 | WormNeuroAtlas | Cook2019Herm |
|---:|:-----------------|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:------------------------------------------------|:------------------------------------------------|:---------------------------------|:---------------------------------|:-----------------------------------------------|:-------------------------------------|:------------------------------------|:------------------------------------|:---------------------------------------------------------------------------------|:------------------------------------------------|
| 0 | Num neurons | 302 | 302 | 302 | 182 | 180 | 301 | 279 | 181 | 180 | 300 | 302 |
| 1 | Missing neurons | 0 | 0 | 0 | 120 | 122 | 1 | 23 | 121 | 122 | 2 | 0 |
| 2 | Non neurons | 0 | 0 | 0 | 9 | 5 | 8 | 0 | 9 | 7 | 0 | 96 |
| 3 | Num muscles | 97 | 95 | 95 | 32 | 32 | 1 | 1 | 32 | 32 | 0 | 0 |
| 4 | Num N->N conns | 3363 | 5806 | 5821 | 1694 | 1593 | 2847 | 6264 | 2251 | 2274 | 5701 | 6577 |
| 5 | Num N with ->M | 127 | 254 | 254 | 38 | 38 | 114 | 115 | 58 | 47 | 0 | 0 |
| 6 | Num N->M conns | 564 | 1118 | 1118 | 205 | 176 | 114 | 153 | 230 | 216 | 0 | 0 |
| 7 | N->N neurotrans. | ACh (394)<br/>ACh_Tyr (29)<br/>Dopamine (120)<br/>FMRFam (247)<br/>GABA (200)<br/>Gen_GJ (1084)<br/>Glu (962)<br/>Octapamine (20)<br/>5HT (178)<br/>5HT_ACh (104)<br/>5HT_Glu (25)<br/> | ACh (3581)<br/>GABA (57)<br/>Gen_GJ (2168)<br/> | ACh (3596)<br/>GABA (57)<br/>Gen_GJ (2168)<br/> | ACh (1424)<br/>Gen_GJ (270)<br/> | ACh (1304)<br/>Gen_GJ (289)<br/> | ACh (2237)<br/>GABA (35)<br/>Gen_GJ (575)<br/> | Gen_CS (5233)<br/>Gen_GJ (1031)<br/> | Gen_CS (1979)<br/>Gen_GJ (272)<br/> | Gen_CS (1970)<br/>Gen_GJ (304)<br/> | ACh (1802)<br/>GABA (322)<br/>Gen_CS (667)<br/>Gen_GJ (1650)<br/>Glu (1260)<br/> | ACh (3859)<br/>GABA (64)<br/>Gen_GJ (2654)<br/> |
| 8 | N->M neurotrans. | **MISSING** (2)<br/>ACh (377)<br/>AChplus_Tyr (6)<br/>Dopamine (1)<br/>FMRFam (3)<br/>FRMFemide (5)<br/>GABA (126)<br/>Glu (35)<br/>5HT (1)<br/>5HTplus_ACh (8)<br/> | ACh (808)<br/>GABA (116)<br/>Gen_GJ (194)<br/> | ACh (808)<br/>GABA (116)<br/>Gen_GJ (194)<br/> | ACh (205)<br/> | ACh (176)<br/> | ACh (96)<br/>GABA (18)<br/> | Gen_CS (153)<br/> | Gen_CS (230)<br/> | Gen_CS (216)<br/> | | |
| | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
|:---------------|:------------|:----------------|:------------|:------------|:---------------|:---------------|:---------------|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Values | Num neurons | Missing neurons | Non neurons | Num muscles | Num N->N conns | Num N with ->M | Num N->M conns | N->N neurotrans. | N->M neurotrans. |
| SSData | 302 | 0 | 0 | 97 | 3363 | 127 | 564 | ACh (394)<br/>ACh_Tyr (29)<br/>Dopamine (120)<br/>FMRFam (247)<br/>GABA (200)<br/>Gen_GJ (1084)<br/>Glu (962)<br/>Octapamine (20)<br/>5HT (178)<br/>5HT_ACh (104)<br/>5HT_Glu (25)<br/> | **MISSING** (2)<br/>ACh (377)<br/>AChplus_Tyr (6)<br/>Dopamine (1)<br/>FMRFam (3)<br/>FRMFemide (5)<br/>GABA (126)<br/>Glu (35)<br/>5HT (1)<br/>5HTplus_ACh (8)<br/> |
| UpdSSData | 302 | 0 | 0 | 95 | 5806 | 254 | 1118 | ACh (3581)<br/>GABA (57)<br/>Gen_GJ (2168)<br/> | ACh (808)<br/>GABA (116)<br/>Gen_GJ (194)<br/> |
| UpdSSData2 | 302 | 0 | 0 | 95 | 5821 | 254 | 1118 | ACh (3596)<br/>GABA (57)<br/>Gen_GJ (2168)<br/> | ACh (808)<br/>GABA (116)<br/>Gen_GJ (194)<br/> |
| White_A | 182 | 120 | 9 | 32 | 1694 | 38 | 205 | ACh (1424)<br/>Gen_GJ (270)<br/> | ACh (205)<br/> |
| White_L4 | 180 | 122 | 5 | 32 | 1593 | 38 | 176 | ACh (1304)<br/>Gen_GJ (289)<br/> | ACh (176)<br/> |
| White_whole | 301 | 1 | 8 | 1 | 2847 | 114 | 114 | ACh (2237)<br/>GABA (35)<br/>Gen_GJ (575)<br/> | ACh (96)<br/>GABA (18)<br/> |
| Varshney | 279 | 23 | 0 | 1 | 6264 | 115 | 153 | Gen_CS (5233)<br/>Gen_GJ (1031)<br/> | Gen_CS (153)<br/> |
| Witvliet1 | 181 | 121 | 9 | 32 | 2251 | 58 | 230 | Gen_CS (1979)<br/>Gen_GJ (272)<br/> | Gen_CS (230)<br/> |
| Witvliet2 | 180 | 122 | 7 | 32 | 2274 | 47 | 216 | Gen_CS (1970)<br/>Gen_GJ (304)<br/> | Gen_CS (216)<br/> |
| WormNeuroAtlas | 300 | 2 | 0 | 0 | 5701 | 0 | 0 | ACh (1802)<br/>GABA (322)<br/>Gen_CS (667)<br/>Gen_GJ (1650)<br/>Glu (1260)<br/> | |
| Cook2019Herm | 302 | 0 | 96 | 0 | 6577 | 0 | 0 | ACh (3859)<br/>GABA (64)<br/>Gen_GJ (2654)<br/> | |
2 changes: 1 addition & 1 deletion docs/stylesheets/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ th, td {
}

.md-typeset__table table:not([class]) {
font-size: .74rem;
font-size: .64rem;
border-right: none;
}

Expand Down

0 comments on commit 09c8c40

Please sign in to comment.