Skip to content

Commit

Permalink
Calculating score difference of SPGQ for each pair
Browse files Browse the repository at this point in the history
- Adopt code from Scoring_questionnaire_pair_nmsp (hyper-exp3) to calculate average score of subscale
- Adopt code from corr_eeg_nmsp_score (hyper-exp3-questionnaire) to calculate correlation between EEG connections and score of SPGQ
- The above two points are ToDO
  • Loading branch information
ihgumilar committed Dec 28, 2023
1 parent d6cdbba commit 386ef04
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions phd_codes/additional_analysis/diff_connections_pre_post_gaze.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@

# %%
from phd_codes.EEG import stats
from phd_codes.questionnaire.questionnaire import Questionnaire

# %%
connections = stats.Connections()
questionnaire = Questionnaire()

# %% [markdown]
# # Sig connections
Expand Down Expand Up @@ -227,4 +229,45 @@ def run_anova(file_path):
plt.show()


# %% [markdown]
# # Correlations

# %% [markdown]
# # Path to questionnnaire

# %%
questionnaire_path = "/hpc/igum002/codes/Hyperscanning2-redesign/data/Questionnaire/"

# %% [markdown]
# ## Scoring questionnaire

# %%
all_questionnaires_scoring = questionnaire.scoring_questionnaire(questionnaire_path)

# %% [markdown]
# ## Difference of SPGQ scoring for each pair
#

# %%
all_questionnaires_scoring_diff_empathy = questionnaire.diff_score_questionnaire_pre_post(all_questionnaires_scoring[0], all_questionnaires_scoring[1],
all_questionnaires_scoring[2], all_questionnaires_scoring[3],
all_questionnaires_scoring[4], all_questionnaires_scoring[5],
"Empathy SPGQ")

all_questionnaires_scoring_diff_neg_feeling = questionnaire.diff_score_questionnaire_pre_post(all_questionnaires_scoring[0], all_questionnaires_scoring[1],
all_questionnaires_scoring[2], all_questionnaires_scoring[3],
all_questionnaires_scoring[4], all_questionnaires_scoring[5],
"NegativeFeelings SPGQ")

all_questionnaires_scoring_diff_behav = questionnaire.diff_score_questionnaire_pre_post(all_questionnaires_scoring[0], all_questionnaires_scoring[1],
all_questionnaires_scoring[2], all_questionnaires_scoring[3],
all_questionnaires_scoring[4], all_questionnaires_scoring[5],
"Behavioural SPGQ")

all_questionnaires_scoring_diff_spg_total = questionnaire.diff_score_questionnaire_pre_post(all_questionnaires_scoring[0], all_questionnaires_scoring[1],
all_questionnaires_scoring[2], all_questionnaires_scoring[3],
all_questionnaires_scoring[4], all_questionnaires_scoring[5],
"SPGQ Total")



0 comments on commit 386ef04

Please sign in to comment.