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

Lateralising but no localising value #167

Closed thenineteen closed 4 years ago

thenineteen commented 4 years ago

if a semiology returns a row of data from a paper that has lateralising value (CL, IL, DomH or NonDomH) but no localising value, the current SVT v 1.0.0 ignores this data which is not useful.

This branch intends to fix this by projecting all the right and/or left hemisphere GIF parcellations so that this can be used and integrated with all_combine_gifs from QUERY_LATERALISATION

thenineteen commented 4 years ago

What's left to do before merging:

thenineteen commented 4 years ago
thenineteen commented 4 years ago
thenineteen commented 4 years ago
all_combined_gifs = pd.concat([all_combined_gifs, lat_only_df],
                                          join='outer', sort=False)

and

all_combined_gifs.append(lat_only_df)

are equivalent in this part of Q_L:

if (lat_only_Right != 0) | (lat_only_Left != 0):
        # means both lateralising+loc and gifs_not_lat were none. occurs usually in dummy_data only.
        if all_combined_gifs is None:
            lat_only_df = lateralising_but_not_localising_GIF(all_combined_gifs,
                                                              lat_only_Right, lat_only_Left,
                                                              gifs_right, gifs_left,
                                                              exclusively_lateralising=True)
            all_combined_gifs = lat_only_df
        else:
            lat_only_df = lateralising_but_not_localising_GIF(all_combined_gifs,
                                                              lat_only_Right, lat_only_Left,
                                                              gifs_right, gifs_left,
                                                              exclusively_lateralising=False)
            all_combined_gifs = pd.concat([all_combined_gifs, lat_only_df],
                                          join='outer', sort=False)