Skip to content
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

Enhance PSX with a way to calculate the peak threshold #1794

Closed
t-b opened this issue Jun 23, 2023 · 1 comment · Fixed by #1468
Closed

Enhance PSX with a way to calculate the peak threshold #1794

t-b opened this issue Jun 23, 2023 · 1 comment · Fixed by #1468
Assignees
Labels
enhancement New feature or request Miniature Analysis aka PSX PSP/PSC, part of SweepFormula

Comments

@t-b
Copy link
Collaborator

t-b commented Jun 23, 2023

epoch=[4000,6000]
sel=select(channels(AD9),[65,66],all)
sel65=select(channels(AD9),[65],all)
kernel=psxKernel($epoch,$sel, 0.6, 3, (-6))
peakThresh=0.04
lowFreq=550
highFreq=0

psxPrep(psx(duck, kernel, peakThresh, lowFreq, highFreq), sdThresh = 4.2)

The psxPrep operation will work on sweepDataFiltOffDeconv, create a histogram from it (all points histogram) and fit that. See https://www.cell.com/biophysj/fulltext/S0006-3495(12)00935-6 and the existing code like PSX_FitHistogram and PSX_CreateHistogramOfDeconvSweepData.

Needs graph B and C from page 1433 (all points hist and gaussian fit). Y-axis of all points hist and x-axis of fit should not be in SD but in deconvolved wave y units.

Show both the histogram and the gaussian fit.

Add marker to highlight the sdThresh value so that the user can then see the value for peakThresh to use for the psx operation.

@t-b t-b added enhancement New feature or request Miniature Analysis aka PSX PSP/PSC, part of SweepFormula labels Jun 23, 2023
@t-b t-b self-assigned this Jun 23, 2023
@t-b
Copy link
Collaborator Author

t-b commented Jul 21, 2023

  • Draft looks good
  • Use 3 significat digits for writing theta into the legend
  • Use marker with good trace name for store
  • Concatenate multiple waves as input and only create on hist/fit/marker line
  • Use 2.5 as sdThresh

@t-b t-b closed this as completed in #1468 Aug 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Miniature Analysis aka PSX PSP/PSC, part of SweepFormula
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant