thenineteen / Semiology-Visualisation-Tool

Data driven 3D brain visualisation of semiology. Semiology to anatomy translator based on over 4600 patients from 309 peer-reviewed articles.
MIT License
9 stars 6 forks source link

Query lateralisation returns different keys for different semiologies #54

Closed fepegar closed 4 years ago

fepegar commented 4 years ago
In [6]: aphasia
Out[6]:
    Semiology Term  Gif Parcellations  pt #s
0              NaN               32.0    0.0
1              NaN               33.0    2.0
2              NaN               48.0    0.0
3              NaN               49.0    2.0
4              NaN              117.0    0.0
5              NaN              118.0    2.0
6              NaN              123.0    0.0
7              NaN              124.0    2.0
8              NaN              133.0    0.0
9              NaN              134.0    2.0
10             NaN              155.0    0.0
11             NaN              156.0    2.0
12             NaN              171.0    0.0
13             NaN              172.0    2.0
14             NaN              181.0    0.0
15             NaN              182.0    2.0
16             NaN              185.0    0.0
17             NaN              186.0    2.0
18             NaN              201.0    0.0
19             NaN              202.0    2.0
20             NaN              203.0    0.0
21             NaN              204.0    2.0
22             NaN              207.0    0.0
23             NaN              208.0    2.0

In [7]: aphemia
Out[7]:
    Semiology Term  Gif Parcellations  pt #s
0              NaN              105.0    1.0
1              NaN              106.0    0.0
2              NaN              119.0    1.0
3              NaN              120.0    0.0
4              NaN              121.0    1.0
5              NaN              122.0    0.0
6              NaN              125.0    1.0
7              NaN              126.0    0.0
8              NaN              137.0    1.0
9              NaN              138.0    0.0
10             NaN              141.0    1.0
11             NaN              142.0    0.0
12             NaN              143.0    2.0
13             NaN              144.0    0.0
14             NaN              147.0    1.0
15             NaN              148.0    0.0
16             NaN              151.0    1.0
17             NaN              152.0    0.0
18             NaN              153.0    1.0
19             NaN              154.0    0.0
20             NaN              163.0    3.0
21             NaN              164.0    0.0
22             NaN              165.0    2.0
23             NaN              166.0    0.0
24             NaN              179.0    1.0
25             NaN              180.0    0.0
26             NaN              183.0    1.0
27             NaN              184.0    0.0
28             NaN              187.0    1.0
29             NaN              188.0    0.0
30             NaN              191.0    1.0
31             NaN              192.0    0.0
32             NaN              193.0    4.0
33             NaN              194.0    0.0
34             NaN              205.0    2.0
35             NaN              206.0    0.0

Why are the lists of GIF structures different?

fepegar commented 4 years ago

I'll assume this is the default behaviour.

thenineteen commented 4 years ago

Yes, as you'll have no doubt figured out by now, it only returns notnull gif parcellations from the original inspect_result. (Then when QUERY_LATERALISATION and/or other functions run, it will may change some of these gif structures to zeros )