Code Monkey home page Code Monkey logo

rshrf's Issues

Deconvolving HRF step takes a huge amount of time

The HRF estimation seems to be quite fast (particularly with microtime resolution 1 and AR off), but the "deconvolving HRF" step always takes very very long, even for just 300 volumes.

Is there a way to make this step faster?

Error use rsHRF_estimation_temporal_basis

I hope to get some help!
I've tried Job1 of the demo jobs, but failed. The error messages are shown below.
I just followed the rsHRF_manual_Matlab and don’t know how to solve the problem.
Thank you for any help !

Error use rsHRF_estimation_temporal_basis (line 34)
The source code for the parfor loop that attempted to execute the worker process could not be found (D:\MATLAB\toolbox\spm12\toolbox\rsHRF\rsHRF_estimation_temporal_basis.m)
In file "D:\MATLAB\toolbox\spm12\toolbox\rsHRF\rsHRF_estimation_temporal_basis.m" (v4473), function "rsHRF_estimation_temporal_basis" at line 34.
In file "D:\MATLAB\toolbox\spm12\toolbox\rsHRF\rsHRF_deconv_job.m" (???), function "rsHRF_deconv_job" at line 41.
In file "D:\MATLAB\toolbox\spm12\toolbox\rsHRF\rsHRF.m" (???), function "rsHRF" at line 113.
In file "D:\MATLAB\toolbox\spm12\toolbox\rsHRF\tbx_cfg_rsHRF.m" (???), function "wgr_vox_ROI_rsHRF_conn" at line 884.
The following modules did not run:
Failed: Voxel-wise HRF deconvolution

Create a testing environment

We would need to create an automatic testing environment. We have some services that can help us to do this (CircleCI, Travis...). Let's explore possibilities and decide.

It would be great to have a test case with the same data for Matlab and Python, so we can test if results are the same in both cases. Programming tests for Python won't be an issue, but for Matlab it is probable that we have to get an standalone executable for the rsHRF (other option is to execute the scripts in Octave).

Create a Python package (pypi)

It is important (although not mandatory) to create a standalone Python package, we would need the package to have some input parameters and checks. This process also can be automatized.

With this, it will be much easier to build the Docker.

tlb_cfg_rsHFR.m not loading

Hello

hope to get some help

I have Matlab R2015a, and try to install HRF, the install script works fine, no errors, however, loading SPM comes with this message and the toolbox does not appear in tools from the batch mode. Thank you for any help !

SPM12: v7771 20:45:33 - 05/03/2021

Initialising SPM : ..
Warning: Loading of older CAT12 segmentation versions was not successful and will be skipped.
Loading of toolbox /Applications/spm12/toolbox/rsHRF/tbx_cfg_rsHRF.m failed.
......done

SPM present working directory:
/Users/

About parametes

Hi
I need some help. I'm confused by these parameters. I have learned the manual. In the manual, different jobs have different parameters. I don't know how to changes these parameters to get a best result.
Can you tell me how to set them? Thanks a lot
360截图20210612130928834

Parameters editing

Dear experts,

I installed your toolbox and I've encountered some issues setting the parameters.
First, is there a way to choose the best HRF basis function based on my data?
Could be a correct approach to estimate both canonical and gamma functions and then compare them? If so, how should I do it operatively?

Then, in the case of gamma function, how can I estimate the number of basis functions?

In Threshold (SD) for event detection should I change the value (i.e 1)? (considering both the options: canonical and gamma function). I read here in the solved issues that your advice is to do not change if I don't know what parameter set.

Also, what is K (local peak)? How is it calculated?

Many thanks in advance

Beatrice

voxels that have no event

When I applied rsHRF for my data, the event number of some voxels is 0.
How are voxels without an event processed?

error wavedec() function

Hi Daniele,

I am trying to run the Voxel-wise HRF estimation. I get the following error:

#----------------------------------------------------------------
27-Apr-2021 18:31:43 - Failed 'Voxel-wise HRF deconvolution'
Undefined function 'wavedec' for input arguments of type 'double'.
In file "C:\Users\lloydb\surfdrive\ExperimentData\toolbox\spm12\spm12\toolbox\rsHRF\rsHRF_iterative_wiener_deconv.m" (???), function "rsHRF_iterative_wiener_deconv" at line 22.
In file "C:\Users\lloydb\surfdrive\ExperimentData\toolbox\spm12\spm12\toolbox\rsHRF\rsHRF_deconv_job.m" (???), function "rsHRF_deconv_job" at line 107.
In file "C:\Users\lloydb\surfdrive\ExperimentData\toolbox\spm12\spm12\toolbox\rsHRF\rsHRF.m" (???), function "rsHRF" at line 113.
In file "C:\Users\lloydb\surfdrive\ExperimentData\toolbox\spm12\spm12\toolbox\rsHRF\tbx_cfg_rsHRF.m" (???), function "wgr_vox_ROI_rsHRF_conn" at line 884.

The following modules did not run:
Failed: Voxel-wise HRF deconvolution
#----------------------------------------------------------------

I changed the flag_parfor to 0 in rsHRF_estimation_temporal_basis.m (line 20) just in case the issue was with parfor, but the error remains.
(by the way I am running it on Matlab version R2020a)

I had a look for the function 'wavedec' and it seems you have to buy it with the toolbox wavelet... Do you think that is the cause of the error? And do you suggest to purchase wavelet?

Thank you for your help!
Beth

Create a Python Package structure

We need a proper structure of folders. The python files should be inside a folder called rsHRF in different modular folders according to their functionality.

Take a look to this template example:

https://github.com/uwescience/shablona

this example is also useful to prepare the package's testing environment, continuous integration and documentation.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.