-
Notifications
You must be signed in to change notification settings - Fork 95
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
[FIX] Fixes broken component figures in report when there are more than 99 components #824
Conversation
This is a better way to get proper 0-padding that also works with >99 components.
Codecov Report
@@ Coverage Diff @@
## main #824 +/- ##
=======================================
Coverage 93.27% 93.27%
=======================================
Files 27 27
Lines 2217 2217
=======================================
Hits 2068 2068
Misses 149 149
Continue to review full report at Codecov.
|
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.
LGTM! Thank you @manfredg !
I have a question though. How long is your acquisition? >100 sounds like too many components. I wonder if the PCA step was not good.
That's something I wanted to bring up in a separate issue. My first run on the dataset I am currently processing gave me 0 accepted components and only a handful rejected components. From my previous experience with Prantik's original ME-ICA code I would expect at least 20 accepted components for a dataset to pass QC. Also, since this is a resting state dataset which will be fed into a correlation based connectivity analysis, I need more than just a handful of DoFs in order to get a meaningful correlation matrix. It seems the current code is tuned towards minimizing the number of components, which is nice for the visualisation in the report, but is getting rid of too much information for my purposes. |
What FYI: you could also use Rica to manually classify your components. |
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.
This LGTM -- thank you, @manfredg !
@allcontributors add @manfredg for code |
I've put up a pull request to add @manfredg! 🎉 |
Closes # .
Changes proposed in this pull request:
This is a very minor bug fix that makes the 0-padding in the report Javascript code more robust. Specifically, the component figures didn't display correctly for any components > 99 since they were padded to 0100, 0101 etc instead of just 100.