Git Product home page Git Product logo

cancer-parser's Introduction

cancer-parser

Parses the all-cancers-combined-acim.xsls data file into usable data broken down by year.

This library will form part of a larger system to analyse this data and is a work in progress.

Useful links

Usage

First download the data file and put them in the folder data/

See index.js for example of use.

const { parseCancerData, parseSolarFlareData } = require('./src')

parseCancerData('./data/all-cancers-combined-acim.xlsx')
  .then(({ incidents, populations }) => {
    console.log('Incidents', incidents)
    console.log('Populations', populations)
  })
  .catch(err => {
    console.error(err)
  })

parseSolarFlareData('./data/cfi_daily_1966-2008.xlsx')
  .then(({ flares }) => {
    console.log('Flares', flares)
  })
  .catch(err => {
    console.error(err)
  })

Development

Greenkeeper badge

branch status coverage notes
develop CircleCI codecov Work in progress
master CircleCI codecov Latest stable release

Prerequisites

  • NodeJS, version 12.13.0 (LTS) or better (I use nvm to manage Node versions — brew install nvm.)

Test it

  • npm test — runs the unit tests
  • npm run test:unit:cov — runs the unit tests with code coverage
  • npm run test:mutants — runs the mutation tests

Lint it

npm run lint

Contributing

Please see the contributing notes.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.