Questions tagged [peakutils]

Questions related to the python PeakUtils library

Full documentation: https://pythonhosted.org/PeakUtils/index.html

17 questions
3
votes
1 answer

Peak to Trough in time series data

Looking to find every instance in which a time series of a stock index declines by 10% or greater. I am struggling to program it so that it understands order matters (don't want appreciation by 10%). Ideally the code would: Pick value, check if…
user3053769
  • 31
  • 1
  • 2
2
votes
1 answer

How to get value of area under multiple peaks

I have some data from a bioanalyzer which gives me time (x-axis) and absorbance values (y-axis). The time is every .05 seconds and its from 32s to 138 so you can imagine how many data points I have. I've created a graph using plotly and matplotlib,…
Harbus
  • 311
  • 1
  • 2
  • 8
2
votes
1 answer

peakutils.indexes gives TypeError: only integer scalar arrays can be converted to a scalar index

I have a list of floats called self.data[_]['smooth_ISA'] I'm giving this list to peakutils.indexes() like this: indexes = peakutils.indexes(self.data[_]['smooth_ISA'], thres=0.1, min_dist=50) But I'm getting this error: TypeError: only integer…
Crawdad_Buckwheat
  • 313
  • 1
  • 4
  • 16
1
vote
1 answer

AttributeError: module 'peakutils' has no attribute 'indexes'

I am trying to use peakutils to find the peak. Here is my code: import pandas as pd import peakutils from peakutils import * import matplotlib.pyplot as plt estimated_data = pd.read_csv("file", header=None) col1 = estimated_data[:][0] # First…
Tracy Gao
  • 129
  • 2
  • 8
1
vote
2 answers

Python- Import error of peakutils

I am trying to use peakutils library and have installed that using pip install peakutils but when I attempt to import same in my jupyter notebook, it shows the import error Before this, I have never faced such an issue. I don't have a PYTHONPATH…
Urja Pawar
  • 1,087
  • 1
  • 15
  • 29
1
vote
0 answers

Simple peak detection in python: issues with both find_peaks_cwt and peakutils

This is an example similar to what my data looks like, there's a sharp peak, surrounded by some small noise, and mostly constant elsewhere with small noise. Both find_peaks_cwt and peakutils don't perform as I would have hoped on this…
David Parks
  • 30,789
  • 47
  • 185
  • 328
1
vote
0 answers

Cannot detect all peaks using PeakUtil in Python

I have two arrays MSFx and MSFy both of length 64, that plots out a graph with 7 clearly detectable peaks. However, only 4-5 get detected. What I have so far. MSFxr = np.array(MSFx[::-1]) MSFy = np.array(MSFy) print(MSFxr) print(MSFy) indexes =…
0
votes
1 answer

TypeError when using reticulate package to call a function from Python peakutils package

I want to use the Python package peakutils from within R. To do this, I use the reticulate package. Here's an example of what I'd like to do. # Load packages library(data.table) library(reticulate) # Set RNG set.seed(-1) # Synthetic data…
Dan
  • 11,370
  • 4
  • 43
  • 68
0
votes
1 answer

How to reduce error in peak detection problem?

I am trying to identify the R peak of an ECG. I have used the following line of code to do this: peaks=signal.find_peaks_cwt(signal_slice, widths=np.arange(1,80)) fig, ax = plt.subplots() ax.set_title('Detect R peak') ax.plot(signal_slice) for peak…
Niam45
  • 552
  • 2
  • 16
0
votes
0 answers

Unable to install peakutils from pycharm

I am using python 2.7 and want to install PeakUtils. I can't install the module from Pycharm. The Error message is Non-zero exit code (1). Proposed solution Try to run this command from the system terminal. Make sure that you use the correct version…
Ying Du
  • 11
  • 4
0
votes
2 answers

Why does peakutils.peak.indexes() seem to ignore the provided threshold value?

I'm retrieving the arrays holding the power levels and frequencies, respectively, of a signal from the plt.psd() method: Pxx, freqs = plt.psd(signals[0], NFFT=2048, Fs=sdr.sample_rate/1e6, Fc=sdr.center_freq/1e6, scale_by_freq=True,…
ci7i2en4
  • 834
  • 1
  • 13
  • 27
0
votes
4 answers

How to get coordinates of complex RTL-SDR signal peaks?

I'm able to capture signals from a RTL-SDR by using the following: from rtlsdr import * i = 0 signals = [] sdr = RtlSdr() sdr.sample_rate = 2.8e6 sdr.center_freq = 434.42e6 sdr.gain = 25 while True: samples = sdr.read_samples(1024*1024) …
ci7i2en4
  • 834
  • 1
  • 13
  • 27
0
votes
1 answer

Peakutils, detecting flat peaks

This is pretty much the same problem as this question, however, that question has been dead in the water and I don't have the reputation to revive it in the comments, yet still find myself needing to resolve the problem. The idea is that when using…
nghs
  • 129
  • 1
  • 15
0
votes
1 answer

Using peakutils - Detecting 'dull' peaks

I'm currently using peakutils to find peaks in some data. My data contains some "dull peaks", that is my peaks plateau somewhat. I can't set my code to find these peaks even after playing around with the threshold and minimum distance parameters.…
franuentes
  • 21
  • 3
0
votes
1 answer

conda installation of peakutils.peak in python

I want to use import peakutils.peak in python (ubuntu 16.04) I use anaconda packages in python. How could I download peakutils package using conda. I use conda install -c cbetters peakutils=1.0.3 But the error that I got: import…
Dhara
  • 282
  • 1
  • 4
  • 19
1
2