maartenmennes / ICA-AROMA

ICA-AROMA Software Package: a data-driven method to identify and remove head motion-related artefacts from functional MRI data.
Apache License 2.0
91 stars 53 forks source link

Problem running ICA-AROMA #74

Open kelaporter opened 7 months ago

kelaporter commented 7 months ago

Hello,

I ran the code and it stated that the distplot has been depricated and to change to histplot or displot. I changed it to histplot. I tried updating to the histplot terminology but keep running into errors. Currently my classification_plots code starting at line 165 where the error starts is the following:

# plot distributions
# RP
sns.histplot(df.loc[df['Motion'] == "True", "RP"],
             ax=ax1t,
             color=colortrue,
             kde_kws=dict(cut=3),
             alpha=.4)
sns.histplot(df.loc[df['Motion'] == "False", "RP"],
             ax=ax1t,
             color=colorfalse,
             kde_kws=dict(cut=3),
             alpha=.4)
ax1t.set_xlim([0, 1])

# Edge
sns.histplot(df.loc[df['Motion'] == "True", "Edge"],
             ax=ax1r,
             vertical=True,
             color=colortrue,
             kde_kws=dict(cut=3),
             alpha=.4)
sns.histplot(df.loc[df['Motion'] == "False", "Edge"],
             ax=ax1r,
             vertical=True,
             color=colorfalse,
             kde_kws=dict(cut=3),
             alpha=.4)
ax1r.set_ylim([0, 1])

The current error that I am getting is: ------------------------------- RUNNING ICA-AROMA ------------------------------- --------------- 'ICA-based Automatic Removal Of Motion Artifacts' ---------------

Step 1) MELODIC

Before changing it to histplot it ran fine, but since I have changed it I cannot get it to run without an error. I am not sure what else I need to change.