https://github.com/cheminfo/peaks-similarity
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (9.2%) to scientific vocabulary
Keywords from Contributors
Repository
Basic Info
- Host: GitHub
- Owner: cheminfo
- License: mit
- Language: JavaScript
- Default Branch: main
- Size: 1.59 MB
Statistics
- Stars: 3
- Watchers: 5
- Forks: 1
- Open Issues: 0
- Releases: 21
Metadata Files
README.md
peaks-similarity
[![build status][travis-image]][travis-url]
[![David deps][david-image]][david-url]
Peaks similarity - calculate a similarity between 0 and 1 of 2 arrays of [x,y] points.
Description
The idea is to calculate a similarity value between 0 and 1 between two arrays of peaks ([x,y] points).
```javascript const peaks1 = [ [1, 1], [2, 2], ]; const peaks2 = [ [1, 2], [2, 1], ];
import Comparator from 'peaks-similarity'; const comparator = new Comparator({ widthBottom: 4, widthTop: 2 }); const result = comparator.getSimilarity(peaks1, peaks2);
console.log(result); ```
options
- widthBottom : bottom width of the trapezoid (default: 2)
- widthTop : top width of the trapezoid (default: 1)
- trapezoid : Should we use overlapping of trapezoids surface (default: false). If trapezoid is false it is based only on peaks and not surface.
- common: Only take the common part of the array based on the widthBottom of the trapezoid (default: false)
- true: take the common part between the 2 array
- first: keep first array and take the common part of the second one
- second: keep second array and take the common part of the first one
Methods
- setOptions(newOptions)
- setPeaks1(anArray)
- setPeaks2(anArray)
- getExtract1()
- getExtract2()
- getExtractInfo1()
- getExtractInfo2()
- setTrapezoid(newWidthBottom, newWidthTop)
- setFromTo(newFrom, newTo)
- getOverlap(x1, y1, x2, y2)
- getOverlapTrapezoid(x1, y1, x2, y2)
- calculateDiff()
- checkArray(points)
- getSimilarity(newPeaks1, newPeaks2)
- fastSimilarity(newPeaks2, from, to)
- newPeaks2 has to be normalized (sum to 1)
- fastSimilarity will use the common parameter. This parameter may be 'second' and will take the peaks1 that are at a distance less than widthBottom of any peak of peaks2
License
Owner
- Name: Cheminfo
- Login: cheminfo
- Kind: organization
- Website: https://www.cheminfo.org/
- Repositories: 242
- Profile: https://github.com/cheminfo
GitHub Events
Total
- Push event: 1
Last Year
- Push event: 1
Committers
Last synced: about 2 years ago
Top Committers
| Name | Commits | |
|---|---|---|
| Luc Patiny | l****c@p****m | 45 |
| cheminfo bot | a****n@c****g | 16 |
| Michaël Zasso | m****e@g****m | 6 |
| Luc Patiny | l****y | 5 |
| Michaël Zasso | t****s@p****m | 3 |
| cheminfo-bot | 1****t | 3 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 11 months ago
All Time
- Total issues: 0
- Total pull requests: 4
- Average time to close issues: N/A
- Average time to close pull requests: 12 minutes
- Total issue authors: 0
- Total pull request authors: 2
- Average comments per issue: 0
- Average comments per pull request: 1.25
- Merged pull requests: 4
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
- cheminfo-bot (3)
- lpatiny (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- npm 684 last-month
- Total dependent packages: 6
- Total dependent repositories: 8
- Total versions: 18
- Total maintainers: 3
npmjs.org: peaks-similarity
Peaks similarity - calculate the similarity between 2 ordered arrays of peaks
- Homepage: https://github.com/cheminfo/peaks-similarity
- License: MIT
-
Latest release: 3.1.1
published over 3 years ago
Rankings
Maintainers (3)
Dependencies
- cheminfo-tools ^1.22.4 development
- eslint ^5.10.0 development
- eslint-config-cheminfo ^1.19.1 development
- eslint-plugin-import ^2.14.0 development
- eslint-plugin-jest ^22.1.2 development
- jest ^23.6.0 development
- ml-stat ^1.2.0
- JamesIves/github-pages-deploy-action releases/v4 composite
- actions/checkout v3 composite
- zakodium/documentationjs-action v1 composite