GithubHelp home page GithubHelp logo

gabenespoli / phzlab Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 1.23 MB

Add some fizz to your neural and peripheral physiological analyses.

License: GNU General Public License v3.0

MATLAB 100.00%
matlab-toolbox physiological-signals signal-processing

phzlab's People

Contributors

gabenespoli avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

phzlab's Issues

Summary function not working properly when looking at combined files.

Note: 'summary' works with 'all', but not individual parameters e.g., 'participant'


FFTStry = phz_writetable(PHZ, 'feature', 'fft100', 'region', 'target', 'FFRsummary', 'efr', 'summary', {'participant', 'session'})
Calculating features...

Feature 1/1: fft100
Restricted to 'target [0.06 0.17]' region.
Summarized data by 'participant session'.
Extracted feature 'fft100'.
Index exceeds matrix dimensions.

Error in phz_discard (line 80)
PHZ.lib.tags.(field) = PHZ.lib.tags.(field)(keep);

Error in phz_summary (line 135)
TMP = phz_discard(TMP, false); % verbose = false

Error in phz_feature (line 352)
[PHZ, preSummaryData] = phz_summary(PHZ,keepVars,verbose);

Error in phz_writetable (line 173)
[s,featureTitle] =
phz_feature(PHZ,feature{i},'summary',keepVars,'region',region,'verbose',verbose);

phz_plot.m: remove dependency of calling summary through phz_feature

The reason for this in the comments says:

% (run phz_summary through phz_feature because fft feature needs to average
% over the summaryType by participant before doing the fft)

This needs to be removed to allow the user to insert processing in between feature and summary, or to do them in a different order.

don't do preprocessing at the same time as parsing varargin

By doing the preprocessing at the same time as parsing varargin, it is impossible to adjust the values of a preset on the fly. Instead, varargin should simply log the values of the preprocessing, as well as their order, and then apply them later. This means that we can overwrite a value from a preset.

However, one big issue with this is that you may want to use the preset value AS WELL as a new value, like using subset twice for example.

make 'preset' a parameter-value pair

If length(varargin) is odd then assume the first arg is preset. This is so that you could specify processing before the preset, and after the preset. Currently, with the requirement that the first arg is the preset, no processing can be dynamically inserted before the preset.

change phzABR to phzFFR in all relevant code

Since phzABR has been changed to phzFFR, this needs to be reflected in all code. noted in phz_combine, line 141: TMP = phzABR_equalizeTrials(TMP, equalGrpVar, verbose);

change to phzFFR_equalizeTrials -- I haven't checked to see whether there are any other similar issues.

phz_writetable presets

Use PHZ.lib.tables.(tablename) to store presets for tables, just like PHZ.lib.plots. Could also try and conflate this with PHZ.lib.plots.

phz_writetable

Hi Gabe,

When using phz_writetable, I am running into an issue when I define the parameter value pair 'region','target' and 'feature','snr'. It says that the region is invalid (which I don't think is true because if I type PHZ.region, target appears in the list), as well as the feature is an unknown feature. I tried debugging right before the error appears, and it doesn't seem that PHZ.region is being cleared out, so I'm not entirely sure what is happening.

Screenshot of the error attached. If you'd like to play with a data file you can find one under Emily's folder called combined.phz. PS this error happens with single and combined files.

Let me know what you think
screen shot 2018-05-07 at 11 34 41 am

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.