External Email - Use Caution
Many thanks and apologies, Henry - I figured it out... I stupidly replaced your improved segmentation script in both the scripts and the bin directory instead of only replacing the former.
many thanks for your time, much appreciated
g
External Email - Use Caution
No problem Georgios,
It’s easily done. I’ll check if we can streamline the patching process.
I’ve written a bit of an explanation below in case you or anyone else on the freesurfer list comes across a problem like this again.
Best wishes, Henry
===========================
Explanation: Many of the network-based tools in freesurfer are distributed as python scripts which build a tensorflow or pytorch network, load the model weights from $FREESURFER_HOME/models and push the data through. As changing the combination of python package versions can have unexpected effects, freesurfer comes with its own python environment “fspython”. For these python-based tools the files in $FREESURFER_HOME/bin are shell scripts that run some checks then pass the python scripts in $FREESURFER_HOME/python/scritps and any arguments to the fspython environment.
In this case replacing the file in the bin directory with the python code likely meant it was running in your local python environment using different package versions. A clue to this is the deprecation warning mentioning numpy version 1.25 as the version in fspython is 1.24.3
From: Georgios Argyropoulos gargyropoulos@gmail.com Date: Thursday, 11 April 2024 at 17:24 To: freesurfer@nmr.mgh.harvard.edu freesurfer@nmr.mgh.harvard.edu, Tregidgo, Henry h.tregidgo@ucl.ac.uk Subject: Re: [Freesurfer] Question on using thalseg_1.1.h5
⚠ Caution: External sender
Many thanks and apologies, Henry - I figured it out... I stupidly replaced your improved segmentation script in both the scripts and the bin directory instead of only replacing the former.
many thanks for your time, much appreciated
g
External Email - Use Caution
many thanks, Henry, that's super helpful. Btw, I came across the segmentThalamicNuclei_DTI.sh here ( https://secure-web.cisco.com/1E9W0mtw7h6DQWHzDJCtjIVC4xULq9MtdNdnPuNoniqHdja...). am I right in thinking that your Bayesian module is now integrated into the Python framework? No worries if not, obvs, can't wait to run it, I guess ! :)
many thanks again
g
On Fri, Apr 12, 2024 at 10:59 AM Tregidgo, Henry h.tregidgo@ucl.ac.uk wrote:
No problem Georgios,
It’s easily done. I’ll check if we can streamline the patching process.
I’ve written a bit of an explanation below in case you or anyone else on the freesurfer list comes across a problem like this again.
Best wishes,
Henry
===========================
Explanation:
Many of the network-based tools in freesurfer are distributed as python scripts which build a tensorflow or pytorch network, load the model weights from $FREESURFER_HOME/models and push the data through. As changing the combination of python package versions can have unexpected effects, freesurfer comes with its own python environment “fspython”. For these python-based tools the files in $FREESURFER_HOME/bin are shell scripts that run some checks then pass the python scripts in $FREESURFER_HOME/python/scritps and any arguments to the fspython environment.
In this case replacing the file in the bin directory with the python code likely meant it was running in your local python environment using different package versions. A clue to this is the deprecation warning mentioning numpy version 1.25 as the version in fspython is 1.24.3
*From: *Georgios Argyropoulos gargyropoulos@gmail.com *Date: *Thursday, 11 April 2024 at 17:24 *To: *freesurfer@nmr.mgh.harvard.edu freesurfer@nmr.mgh.harvard.edu, Tregidgo, Henry h.tregidgo@ucl.ac.uk *Subject: *Re: [Freesurfer] Question on using thalseg_1.1.h5
⚠ Caution: External sender
Many thanks and apologies, Henry - I figured it out... I stupidly replaced your improved segmentation script in both the scripts and the bin directory instead of only replacing the former.
many thanks for your time, much appreciated
g
External Email - Use Caution
The Bayesian code is in the development version of Freesurfer yes.
At the moment this is the original compiled Matlab code used in development of the algorithm. Running this requires a matlab runtime similar to the original segmentThalamicNuclei.sh script from Freesurfer 7.0. We have someone working to integrate it into the same python framework as SAMSEG and segment_subfields but we are limited by available developer time.
BW, Henry
From: Georgios Argyropoulos gargyropoulos@gmail.com Date: Friday, 12 April 2024 at 11:04 To: Tregidgo, Henry h.tregidgo@ucl.ac.uk Cc: freesurfer@nmr.mgh.harvard.edu freesurfer@nmr.mgh.harvard.edu Subject: Re: [Freesurfer] Question on using thalseg_1.1.h5 many thanks, Henry, that's super helpful. Btw, I came across the segmentThalamicNuclei_DTI.sh here (https://secure-web.cisco.com/1imEA77_gWGH_vmbViOV2zKiOxa8Jt9Y2hTX6Sc75F_PIbr...). am I right in thinking that your Bayesian module is now integrated into the Python framework? No worries if not, obvs, can't wait to run it, I guess ! :)
many thanks again
g
On Fri, Apr 12, 2024 at 10:59 AM Tregidgo, Henry <h.tregidgo@ucl.ac.ukmailto:h.tregidgo@ucl.ac.uk> wrote: No problem Georgios,
It’s easily done. I’ll check if we can streamline the patching process.
I’ve written a bit of an explanation below in case you or anyone else on the freesurfer list comes across a problem like this again.
Best wishes, Henry
===========================
Explanation: Many of the network-based tools in freesurfer are distributed as python scripts which build a tensorflow or pytorch network, load the model weights from $FREESURFER_HOME/models and push the data through. As changing the combination of python package versions can have unexpected effects, freesurfer comes with its own python environment “fspython”. For these python-based tools the files in $FREESURFER_HOME/bin are shell scripts that run some checks then pass the python scripts in $FREESURFER_HOME/python/scritps and any arguments to the fspython environment.
In this case replacing the file in the bin directory with the python code likely meant it was running in your local python environment using different package versions. A clue to this is the deprecation warning mentioning numpy version 1.25 as the version in fspython is 1.24.3
From: Georgios Argyropoulos <gargyropoulos@gmail.commailto:gargyropoulos@gmail.com> Date: Thursday, 11 April 2024 at 17:24 To: freesurfer@nmr.mgh.harvard.edumailto:freesurfer@nmr.mgh.harvard.edu <freesurfer@nmr.mgh.harvard.edumailto:freesurfer@nmr.mgh.harvard.edu>, Tregidgo, Henry <h.tregidgo@ucl.ac.ukmailto:h.tregidgo@ucl.ac.uk> Subject: Re: [Freesurfer] Question on using thalseg_1.1.h5
⚠ Caution: External sender
Many thanks and apologies, Henry - I figured it out... I stupidly replaced your improved segmentation script in both the scripts and the bin directory instead of only replacing the former.
many thanks for your time, much appreciated
g
-- Georgios P. D. Argyropoulos PhD, CPsychol, FHEA Division of Psychology, Faculty of Natural Sciences; University of Stirling; FK9 4LA Scotland UK Personal Websitehttps://secure-web.cisco.com/1FftlbTs4ryHCcWy9QXUjuEO1F_pXPE-EErxT_l8a8n1_iB3hSkjwinKuJa4mFKJYzx1OKZVGkeqjw9qemz4A4Lvf6m7v9vOWgwo1gxR44Rov1r62aedczBm1CBIY8QSc3QmVIxXeZjcARVJ5fmqf-2SB6TrfzjxpYpsftXqQ-hOl3FT_VrmM_GS8axfAGEpL8SpGI8nmOUM2nJUom86vJKbltVbdH0H0-7OiTcOtBD_qP7hr1jUFYn6d1x-wzETaKbj9_S3HfS9EchzQC8ZjMy9_he-b2r0iaE_zKNOhA8KdI8XCm___61u3uQntB-5r-Zpo24NnHK74JVIR9dudvQ/https%3A%2F%2Fsites.google.com%2Fview%2Fg-p-d-argyropoulos
External Email - Use Caution
ah, gotcha - many thanks, Henry, much appreciated g
On Fri, Apr 12, 2024 at 11:19 AM Tregidgo, Henry h.tregidgo@ucl.ac.uk wrote:
The Bayesian code is in the development version of Freesurfer yes.
At the moment this is the original compiled Matlab code used in development of the algorithm. Running this requires a matlab runtime similar to the original segmentThalamicNuclei.sh script from Freesurfer 7.0. We have someone working to integrate it into the same python framework as SAMSEG and segment_subfields but we are limited by available developer time.
BW,
Henry
*From: *Georgios Argyropoulos gargyropoulos@gmail.com *Date: *Friday, 12 April 2024 at 11:04 *To: *Tregidgo, Henry h.tregidgo@ucl.ac.uk *Cc: *freesurfer@nmr.mgh.harvard.edu freesurfer@nmr.mgh.harvard.edu *Subject: *Re: [Freesurfer] Question on using thalseg_1.1.h5
many thanks, Henry, that's super helpful. Btw, I came across the segmentThalamicNuclei_DTI.sh here ( https://secure-web.cisco.com/10fYYXOWWjqutAb_GMihL-D_9qeFb384gjm8TyyMhafr_1S...). am I right in thinking that your Bayesian module is now integrated into the Python framework? No worries if not, obvs, can't wait to run it, I guess ! :)
many thanks again
g
On Fri, Apr 12, 2024 at 10:59 AM Tregidgo, Henry h.tregidgo@ucl.ac.uk wrote:
No problem Georgios,
It’s easily done. I’ll check if we can streamline the patching process.
I’ve written a bit of an explanation below in case you or anyone else on the freesurfer list comes across a problem like this again.
Best wishes,
Henry
===========================
Explanation:
Many of the network-based tools in freesurfer are distributed as python scripts which build a tensorflow or pytorch network, load the model weights from $FREESURFER_HOME/models and push the data through. As changing the combination of python package versions can have unexpected effects, freesurfer comes with its own python environment “fspython”. For these python-based tools the files in $FREESURFER_HOME/bin are shell scripts that run some checks then pass the python scripts in $FREESURFER_HOME/python/scritps and any arguments to the fspython environment.
In this case replacing the file in the bin directory with the python code likely meant it was running in your local python environment using different package versions. A clue to this is the deprecation warning mentioning numpy version 1.25 as the version in fspython is 1.24.3
*From: *Georgios Argyropoulos gargyropoulos@gmail.com *Date: *Thursday, 11 April 2024 at 17:24 *To: *freesurfer@nmr.mgh.harvard.edu freesurfer@nmr.mgh.harvard.edu, Tregidgo, Henry h.tregidgo@ucl.ac.uk *Subject: *Re: [Freesurfer] Question on using thalseg_1.1.h5
⚠ Caution: External sender
Many thanks and apologies, Henry - I figured it out... I stupidly replaced your improved segmentation script in both the scripts and the bin directory instead of only replacing the former.
many thanks for your time, much appreciated
g
--
Georgios P. D. Argyropoulos
PhD, CPsychol, FHEA
Division of Psychology, Faculty of Natural Sciences; University of Stirling; FK9 4LA Scotland UK
External Email - Use Caution
Hi Henry,
hope you're well.
Here's the preprint we've prepared, acknowledging your helpful advice. https://secure-web.cisco.com/14kZPt7OhtlrZeaQh7Ew8aG5CEUsAlZfjqzmCWTY-C8ekRN... Don't hesitate to let me know if you'd rather I didn't, or if you come across anything that's just utterly wrong!
many thanks again
georgios
On Fri, Apr 12, 2024 at 11:49 AM Georgios Argyropoulos < gargyropoulos@gmail.com> wrote:
ah, gotcha - many thanks, Henry, much appreciated g
On Fri, Apr 12, 2024 at 11:19 AM Tregidgo, Henry h.tregidgo@ucl.ac.uk wrote:
The Bayesian code is in the development version of Freesurfer yes.
At the moment this is the original compiled Matlab code used in development of the algorithm. Running this requires a matlab runtime similar to the original segmentThalamicNuclei.sh script from Freesurfer 7.0. We have someone working to integrate it into the same python framework as SAMSEG and segment_subfields but we are limited by available developer time.
BW,
Henry
*From: *Georgios Argyropoulos gargyropoulos@gmail.com *Date: *Friday, 12 April 2024 at 11:04 *To: *Tregidgo, Henry h.tregidgo@ucl.ac.uk *Cc: *freesurfer@nmr.mgh.harvard.edu freesurfer@nmr.mgh.harvard.edu *Subject: *Re: [Freesurfer] Question on using thalseg_1.1.h5
many thanks, Henry, that's super helpful. Btw, I came across the segmentThalamicNuclei_DTI.sh here ( https://secure-web.cisco.com/11fx38DfaOfTS3qRt2fPblgzLzQSaJ7x10NPQ2KQYHFPTTi...). am I right in thinking that your Bayesian module is now integrated into the Python framework? No worries if not, obvs, can't wait to run it, I guess ! :)
many thanks again
g
On Fri, Apr 12, 2024 at 10:59 AM Tregidgo, Henry h.tregidgo@ucl.ac.uk wrote:
No problem Georgios,
It’s easily done. I’ll check if we can streamline the patching process.
I’ve written a bit of an explanation below in case you or anyone else on the freesurfer list comes across a problem like this again.
Best wishes,
Henry
===========================
Explanation:
Many of the network-based tools in freesurfer are distributed as python scripts which build a tensorflow or pytorch network, load the model weights from $FREESURFER_HOME/models and push the data through. As changing the combination of python package versions can have unexpected effects, freesurfer comes with its own python environment “fspython”. For these python-based tools the files in $FREESURFER_HOME/bin are shell scripts that run some checks then pass the python scripts in $FREESURFER_HOME/python/scritps and any arguments to the fspython environment.
In this case replacing the file in the bin directory with the python code likely meant it was running in your local python environment using different package versions. A clue to this is the deprecation warning mentioning numpy version 1.25 as the version in fspython is 1.24.3
*From: *Georgios Argyropoulos gargyropoulos@gmail.com *Date: *Thursday, 11 April 2024 at 17:24 *To: *freesurfer@nmr.mgh.harvard.edu freesurfer@nmr.mgh.harvard.edu, Tregidgo, Henry h.tregidgo@ucl.ac.uk *Subject: *Re: [Freesurfer] Question on using thalseg_1.1.h5
⚠ Caution: External sender
Many thanks and apologies, Henry - I figured it out... I stupidly replaced your improved segmentation script in both the scripts and the bin directory instead of only replacing the former.
many thanks for your time, much appreciated
g
--
Georgios P. D. Argyropoulos
PhD, CPsychol, FHEA
Division of Psychology, Faculty of Natural Sciences; University of Stirling; FK9 4LA Scotland UK
-- Georgios P. D. Argyropoulos PhD, CPsychol, FHEA Division of Psychology, Faculty of Natural Sciences; University of Stirling; FK9 4LA Scotland UK *Personal Website https://secure-web.cisco.com/1HTezobC3shGWnJ4DLwpfJNcyOcLPLN2FJDWGKovU_N9AYjffM8xqEnrfiABcdpj3Gf_uH6tZ6AwV9VPkKDRNwrzAAlSLRWkgc5BUr3XvpMuJrcRpRYfxWWiyTcEdoZlpjodopJ53B4vVXAXY_6f0FBAVz3disX_TbF4yAHhbP20JvA62xuH3mVr1v8YcQK2RhF7QeW9Ud87XSQfeAZOQ0gA5KCvi3PSiiKE4FpZ2h6O1pD6cZqc24CBacittT8k3yjIPL1rMwU68sT72MMvEnRbKAkBixkuS173mxFWSav2N3GlbSEu59oEFTZtskzzJ/https%3A%2F%2Fsites.google.com%2Fview%2Fg-p-d-argyropoulos*
freesurfer@nmr.mgh.harvard.edu