-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add longitudinal trends for subset of subjects #64
Conversation
70e9863
to
bf3656a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs some fixes to work. Also the plt.plot()
function that is supposed to draw the lines between the observed values of the same subject does not produce anything.
ef8ed24
to
f16e905
Compare
f16e905
to
707bcd4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@melhemr Thanks for the updates. I recommend not to compute DXsimple in the toolbox as this is too specific. Instead, pick a column and plot that one. Could also simply be Diagnosis_nearest_2.0
for now. Make sure to remove unused categories.
707bcd4
to
36e704c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. There should be no conversion of diagnoses in the toolbox plot function.
BrainChart/plotcanvas.py
Outdated
palette = dict(MCI="orangered", AD="crimson",CN="indigo",none="slategrey",other="gold") | ||
ax = sns.scatterplot(x='Age',y=currentROI,hue=currentHue,ax=self.axes,edgecolor=data_sample["DX_simple"].map(palette),linewidth=1.5,s=50,data=data_sample) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
palette = dict(MCI="orangered", AD="crimson",CN="indigo",none="slategrey",other="gold") | |
ax = sns.scatterplot(x='Age',y=currentROI,hue=currentHue,ax=self.axes,edgecolor=data_sample["DX_simple"].map(palette),linewidth=1.5,s=50,data=data_sample) | |
ax = sns.scatterplot(x='Age',y=currentROI,hue=currentHue,ax=self.axes, linewidth=1.5,s=50,data=data_sample) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How would I show diagnosis on the plot if these are not included?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The line with the scatterplot will still be included, but the edge color is not fixed.
README.md
Outdated
@@ -3,7 +3,7 @@ | |||
After proper installation, the tools can be used as follows | |||
|
|||
```shell | |||
python -m BrainChart.main --data_file istaging.pkl.gz --harmonization_model_file MUSE_harmonization_model.pkl | |||
python -m BrainChart.main --data_file reduced_istaging.pkl.gz --harmonization_model_file MUSE_harmonization_model_sprint_in.pkl |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please undo this change to keep the default at the full data set and the default harmonization model.
BrainChart/plotcanvas.py
Outdated
markers = [plt.Line2D([0,0],[0,0],color=color, marker='o', linestyle='') for color in palette.values()] | ||
dx_legend = ax.legend(markers, palette.keys(), numpoints=1,loc='lower right') | ||
ax.add_artist(dx_legend) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These lines can be removed.
36e704c
to
d9866a3
Compare
d9866a3
to
f44d93d
Compare
No description provided.