Git Product home page Git Product logo

pacmeg's People

Contributors

neurofractal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

pacmeg's Issues

frequency lower than 6 Hz in the Calc_MI function

Dear sir
Thank your for your great PAC codes for analyzing phase amplitude coupling.
I have a question:
we observe the following error when we consider the frequency lower than 6 Hz in the Calc_MI function.
Could you please help us?

Error using filter_with_correction (line 51)
Calculated filter coefficients have poles on or outside the unit circle and will not be stable. Try a higher cutoff
frequency or a different type/order of filter.

Error in filter_with_correction (line 51)
error('Calculated filter coefficients have poles on or outside the unit circle and will not be stable. Try a higher
cutoff frequency or a different type/order of filter.');

Error in ft_preproc_bandpassfilter (line 286)
filt = filter_with_correction(B,A,dat,dir,usefftfilt);

Error in preproc (line 324)
if strcmp(cfg.bpfilter, 'yes'), dat = ft_preproc_bandpassfilter(dat, fsample, cfg.bpfreq, cfg.bpfiltord,
cfg.bpfilttype, cfg.bpfiltdir, cfg.bpinstabilityfix, cfg.bpfiltdf, cfg.bpfiltwintype, cfg.bpfiltdev, cfg.plotfiltresp,
cfg.usefftfilt); end

Error in ft_preprocessing (line 358)
[dataout.trial{i}, dataout.label, dataout.time{i}, cfg] = preproc(data.trial{i}, data.label, data.time{i}, cfg,
begpadding, endpadding);

Error in calc_MI (line 70)
[virtsens_phase] = ft_preprocessing(cfg, virtsens);

Error in simulated_PAC_analysis1 (line 90)
tort_PAC = calc_MI(VE_PAC,[0.001 10],[5 20],[30 70],'no','no','tort');

All the best
Reza

Question about calc_MI function

  1. According to the calc_MI function (virtsens = MEG data (1 channel)), can I use continuous EEG data as input? and would you please explain this input (toi = times of interest in seconds)?

Implement Masking

For trial data, the function should be able to accept the indices of time-points between which PAC should be estimated

Create new repo?

I want to extend these scripts, perhaps with Fieldtrip integration... However this will require lots of fundamental changes to the code. To keep this repo "future-proof" for the Frontiers article, should I create a new repo.. or integrate with the current repo?

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.