+ Reply to Thread
Results 1 to 10 of 10

peak picking help

Hybrid View

  1. #1
    douglas
    Guest

    peak picking help

    Hi All,

    I'm wondering if the following is possible.

    I have a set of data, lots of numbers against a time and the resulting x y scatter plot resembles a comb, with lots of peaks or teeth separated by lesser values. Each peak is made of about 100 points and there are say 120 peaks on the comb.

    What I want to do is reduce the data set to 120 values, each one is the maximum height of each comb. This would involve breaking the data into 120 chunks and searching each chunk for the highest number, then recording it.

    Is anyone able to help on how to do this?

    Thanks alot.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: peak picking help

    Welcome to the forum.

    How noisy is the data? Post it.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    douglas
    Guest

    Re: peak picking help

    Thanks shg. Not noisy at all. Here's a rough simulation. I'm looking for some advice on how to approach the problem.
    Attached Files Attached Files

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,481

    Re: peak picking help

    You could use a formula in column C with which to filter the peak values
    Filter on Not Equal #N/A

    C2: =IF(AND(B2>B3,B2>B1),B2,IF(AND(B2<B3,B2<B1),B2,NA()))
    Attached Files Attached Files
    Cheers
    Andy
    www.andypope.info

  5. #5
    douglas
    Guest

    Re: peak picking help

    Quote Originally Posted by Andy Pope View Post
    You could use a formula in column C with which to filter the peak values
    Filter on Not Equal #N/A

    C2: =IF(AND(B2>B3,B2>B1),B2,IF(AND(B2<B3,B2<B1),B2,NA()))
    Thanks Andy that's brilliant. I've removed the valley finding part at the end because I don't need that. Is it possible now to extract only the real values so that I have in eg. D2:D7 the peak heights?

    Thanks
    Attached Files Attached Files

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,481

    Re: peak picking help

    In D2:D7 you can use this array formula, use CTRL+SHIFT+ENTER to commit formula.

    =LARGE(IF(ISNA(C2:C1000),0,C2:C1000),ROW()-1)

    In E2:E7 use

    =INDEX($A$2:$A$1000,MATCH(D2,$C$2:$C$1000,0))

  7. #7
    Registered User
    Join Date
    11-21-2009
    Location
    Victoria
    MS-Off Ver
    Excel 2008
    Posts
    4

    Re: peak picking help

    After reading this thread, and in advance, thank you for everyone's assistance...
    I noticed Shg asked how noisy the data was: So, are there any excel tools that could facilitate peak picking in far noisier data? (Excel 2008 - OS X: Snow Leopard)
    I ran an experiment to collect the oscilloscope data of a heart contracting as it was retrieved by an isotonic transducer. A baseline run of the data is attached. You'll see that It has peaks and troughs like any other wave, but since it's physiological data, it's not very clean.
    There's also peaks roughly halfway between the larger peaks which correspond to the atrial systole (the highest peaks are the ventricle systole). In other words, there are peaks for both the Lub and the Dub in the Lub-Dub of the heartbeat (fyi, this is Rana catesbeiana ~ animal physiology lab). I need to locate both.
    Cheers

    edit: the two red highlighted rows represent an atrial peak and a ventricle peak, demonstrating just how undistinguished the atrial peak indeed is.
    Attached Files Attached Files
    Last edited by theoneness; 11-21-2009 at 06:33 PM.

  8. #8
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: peak picking help

    Hi theoneness,

    could you please take a moment to read the forum rules and then start your own thread? Feel welcome to link to this one if it helps provide background to your question.

    cheers

  9. #9
    Registered User
    Join Date
    12-20-2008
    Location
    US
    MS-Off Ver
    Excel 2007, Student Version
    Posts
    33

    Re: peak picking help

    Excel 2010 Tables
    Find peaks in noisy periodic signals.
    http://c3017412.r12.cf0.rackcdn.com/04_08_11a.xlsx
    If you get *.zip, don't unzip, just rename *.xlsx

  10. #10
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: peak picking help

    herbds7, please use the forum tools to upload files, rather than untrusted external sites.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1