https://github.com/cheminfo/xy-parser
Science Score: 36.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
Links to: zenodo.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (10.0%) to scientific vocabulary
Keywords
Repository
Basic Info
- Host: GitHub
- Owner: cheminfo
- License: mit
- Language: TypeScript
- Default Branch: main
- Homepage: http://cheminfo.github.io/xy-parser/
- Size: 1.99 MB
Statistics
- Stars: 0
- Watchers: 8
- Forks: 3
- Open Issues: 0
- Releases: 24
Topics
Metadata Files
README.md
xy-parser
Parse a text-file and convert it to an array of XY points.
Maintained by Zakodium
[![NPM version][npm-image]][npm-url] [![Test coverage][codecov-image]][codecov-url] [![npm download][download-image]][download-url] [](https://www.zenodo.org/badge/latestdoi/35540080)Installation
$ npm install --save xy-parser
Usage
``js
import { parseXY } from 'xy-parser';
const data =My file
1 2
3 4
5 6
7 8`;
const result = parseXY(data);
/* result ->
{
x: [1, 3, 5, 7],
y: [2, 4, 6, 8]
}
}
*/
const result2 = parseXYAndKeppInfo(data); /* result2 -> data: { x: [1, 3, 5, 7], y: [2, 4, 6, 8] }, info: [ 'My file' ] } */ ```
The bestGuess option will try to determine which columns should be used.
If there are 3 columns and the first column is a sequential number starting at '1' it looks like this is a line number, we will ignore it.
If there are many columns maybe we have a format like X1, Y1, X2, Y2, ... in this cases if one column on two is a monotone series we will parse it correctly.
API Documentation
License
Owner
- Name: Cheminfo
- Login: cheminfo
- Kind: organization
- Website: https://www.cheminfo.org/
- Repositories: 242
- Profile: https://github.com/cheminfo
GitHub Events
Total
Last Year
Issues and Pull Requests
Last synced: 10 months ago
All Time
- Total issues: 4
- Total pull requests: 18
- Average time to close issues: 3 months
- Average time to close pull requests: 13 days
- Total issue authors: 2
- Total pull request authors: 5
- Average comments per issue: 2.0
- Average comments per pull request: 1.17
- Merged pull requests: 16
- 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
- lpatiny (3)
- maasencioh (1)
Pull Request Authors
- cheminfo-bot (12)
- lpatiny (3)
- maasencioh (2)
- wadjih-bencheikh18 (1)
- Sebastien-Ahkrin (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- npm 2,151 last-month
- Total dependent packages: 16
- Total dependent repositories: 18
- Total versions: 19
- Total maintainers: 4
npmjs.org: xy-parser
Parse a text-file and convert it to an array of XY points
- Homepage: https://github.com/cheminfo/xy-parser#readme
- License: MIT
-
Latest release: 5.0.5
published over 2 years ago
Rankings
Maintainers (4)
Dependencies
- @types/jest ^27.4.1 development
- babel-plugin-transform-es2015-modules-commonjs ^6.26.2 development
- cheminfo-tools ^1.23.3 development
- codecov ^3.8.3 development
- eslint ^8.11.0 development
- eslint-config-cheminfo-typescript ^10.4.0 development
- jest ^27.5.1 development
- prettier ^2.5.1 development
- rimraf ^3.0.2 development
- ts-jest ^27.1.3 development
- typescript ^4.6.2 development
- cheminfo-types ^1.1.0
- ensure-string ^1.1.0
- ml-array-max ^1.2.4
- ml-arrayxy-uniquex 1.0.2
- ml-spectra-processing ^11.0.0
- JamesIves/github-pages-deploy-action releases/v4 composite
- actions/checkout v2 composite
- actions/setup-node v2 composite
- zakodium/typedoc-action v2 composite
- actions/checkout v2 composite
- actions/setup-node v2 composite
- zakodium/lactame-action v1 composite