{"id":21768317,"url":"https://github.com/ymtoo/findpeaks1d.jl","last_synced_at":"2025-03-21T05:44:18.496Z","repository":{"id":50845695,"uuid":"262017395","full_name":"ymtoo/FindPeaks1D.jl","owner":"ymtoo","description":"Finding peaks in 1-D data","archived":false,"fork":false,"pushed_at":"2023-01-09T03:35:19.000Z","size":603,"stargazers_count":9,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-26T07:48:29.896Z","etag":null,"topics":["find-peaks","one-dimensional"],"latest_commit_sha":null,"homepage":"","language":"Julia","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ymtoo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-07T10:15:28.000Z","updated_at":"2024-12-07T04:29:32.000Z","dependencies_parsed_at":"2023-02-08T08:30:42.590Z","dependency_job_id":null,"html_url":"https://github.com/ymtoo/FindPeaks1D.jl","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ymtoo%2FFindPeaks1D.jl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ymtoo%2FFindPeaks1D.jl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ymtoo%2FFindPeaks1D.jl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ymtoo%2FFindPeaks1D.jl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ymtoo","download_url":"https://codeload.github.com/ymtoo/FindPeaks1D.jl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244745720,"owners_count":20503048,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["find-peaks","one-dimensional"],"created_at":"2024-11-26T13:35:30.399Z","updated_at":"2025-03-21T05:44:18.477Z","avatar_url":"https://github.com/ymtoo.png","language":"Julia","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FindPeaks1D\n![CI](https://github.com/ymtoo/FindPeaks1D.jl/workflows/CI/badge.svg)\n[![codecov](https://codecov.io/gh/ymtoo/FindPeaks1D.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/ymtoo/FindPeaks1D.jl)\n[![](https://img.shields.io/badge/docs-stable-blue.svg)](https://ymtoo.github.io/FindPeaks1D.jl/stable)\n[![](https://img.shields.io/badge/docs-dev-blue.svg)](https://ymtoo.github.io/FindPeaks1D.jl/dev)\n\nFinding peaks in a 1-D signal in Julia. The implementation is based on [`find_peaks`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.find_peaks.html) in `SciPy`.\n\n## Installation\n```julia-repl\njulia\u003e]\npkg\u003e add FindPeaks1D\n```\n\n## Usage\n```julia\nusing FindPeaks1D, ImageFiltering, Plots\n\nn = 48001\ns1 = ImageFiltering.Kernel.gaussian((1000,), (n,))\ns2 = ImageFiltering.Kernel.gaussian((500,), (n,))\ns = s1.parent/maximum(s1.parent) + 0.5 * circshift(\n    s2.parent/maximum(s2.parent), (10000,))\n```\n```julia\npkindices, properties = findpeaks1d(s; \n                                    height=0.1, \n                                    prominence=0.2, \n                                    width=1000.0, \n                                    relheight=0.9)\n\nplot(s; color=\"black\", label=false)\nscatter!(pkindices, s[pkindices]; color=\"red\", markersize=5, label=\"peaks\")\nvline!(properties[\"leftips\"]; color=\"blue\", width=2, label=\"peak edges\")\nvline!(properties[\"rightips\"]; color=\"blue\", width=2, label=false)\nxlabel!(\"Sample\")\n```\n![window](peaks-1.svg)\n```julia\npkindices, properties = findpeaks1d(s; \n                                    height=0.1, \n                                    distance=12000, \n                                    prominence=0.2, \n                                    width=1000.0, \n                                    relheight=0.9)\n\nplot(s; color=\"black\", label=false)\nscatter!(pkindices, s[pkindices]; color=\"red\", markersize=5, label=\"peaks\")\nvline!(properties[\"leftips\"]; color=\"blue\", width=2, label=\"peak edges\")\nvline!(properties[\"rightips\"]; color=\"blue\", width=2, label=false)\nxlabel!(\"Sample\")\n```\n![window](peaks-2.svg)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fymtoo%2Ffindpeaks1d.jl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fymtoo%2Ffindpeaks1d.jl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fymtoo%2Ffindpeaks1d.jl/lists"}