Git Product home page Git Product logo

bigdata2022's Introduction

ASI322 - Analysis of species

Dependencies

This project requires MySQL and python with pip, as well as graphviz for graph drawing. Python dependencies can be installed through make install

Data

The data is from the catalog of life, specifically from this export.

It has been converted to SQL using this tool. The SQL file should then be saved as data/species.sql.

The data has then been slightly altered to make accesses and computations more efficient by adding a column using make get_parents. It is then saved to json as data/animals.json

Setup

You need to create a MySQL user and a database that it can access. Configuration is then done through environment variables :

  • MYSQL_DB (defaults to ASI322)
  • MYSQL_USER (defaults to ASI322)
  • MYSQL_PASS (defaults to empty)
  • MYSQL_HOST (defaults to localhost)
  • DB_FILE (defaults to data/species.sql)

Initialization

Simply run make load. This will load the file specified by DB_FILE.

Then, make get_ancestors will build the json file needed by the shell.

Usage

Simply run ./shell.py to access the interactive shell. An help is available by running help.

Two main commands are then available :

  • load <file> will load a json file from the data directory
  • distance <name1> <name2> will compute the distance between the two species and draw the corresponding subtree. It is currently set to search species from their name in french. This behavior might be changed by changing the default parameter in utils.tree.search or passing en as second argument.

bigdata2022's People

Watchers

 avatar

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.