https://github.com/cheminfo/xy-parser

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

hacktoberfest
Last synced: 9 months ago · JSON representation

Repository

Basic Info
Statistics
  • Stars: 0
  • Watchers: 8
  • Forks: 3
  • Open Issues: 0
  • Releases: 24
Topics
hacktoberfest
Created about 11 years ago · Last pushed almost 2 years ago
Metadata Files
Readme Changelog License

README.md

xy-parser

Parse a text-file and convert it to an array of XY points.

Zakodium logo

Maintained by Zakodium

[![NPM version][npm-image]][npm-url] [![Test coverage][codecov-image]][codecov-url] [![npm download][download-image]][download-url] [![DOI](https://www.zenodo.org/badge/35540080.svg)](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

MIT

Owner

  • Name: Cheminfo
  • Login: cheminfo
  • Kind: organization

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
autorelease: tagged (10) autorelease: pending (2) hacktoberfest-accepted (1)

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

  • Versions: 19
  • Dependent Packages: 16
  • Dependent Repositories: 18
  • Downloads: 2,151 Last month
Rankings
Dependent packages count: 1.4%
Downloads: 2.8%
Dependent repos count: 2.9%
Average: 7.4%
Forks count: 8.9%
Stargazers count: 20.9%
Last synced: 10 months ago

Dependencies

package.json npm
  • @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
.github/workflows/typedoc.yml actions
  • JamesIves/github-pages-deploy-action releases/v4 composite
  • actions/checkout v2 composite
  • actions/setup-node v2 composite
  • zakodium/typedoc-action v2 composite
.github/workflows/lactame.yml actions
  • actions/checkout v2 composite
  • actions/setup-node v2 composite
  • zakodium/lactame-action v1 composite
.github/workflows/nodejs.yml actions
.github/workflows/release.yml actions