Giter Site home page Giter Site logo

sql-portfolio's Introduction

SQL-Portfolio

This repo contains examples of using SQL to query and aggregate data. The data used are from publicly available maize phenotypes (traits), and are downloaded from MaizeGDB. I used these data to construct a MySQL database for running the example SQL scripts.

NOTE: I run this database locally using MySQL Workbench. However, for convenience, I've also included an SQL script for creating the db without needing the raw data files.

data:

Contains the raw data files used to populate the MySQL db.

scripts:

1_create_maize_example_datadb.sql:
-Creates the db if it does not exist.
2_filter_populations_join.sql:
-Filters the data for populations 5-10 and performs a full outer join of the data.
3_categorize_top_bottom.sql:
-Filters for the top and bottom 10% of values from each table and returns the result in 'long' format with top and bottom categories labeled.
4_categorize_top_bottom_by_pop.sql:
-For each population in each table, filters for the top and bottom 10% of values and returns the result in 'long' format with top and bottom categories labeled.
5_summary_stats_by_pop.sql:
-Computes summary statistics (min/mean/max) of trait values for each population in each table.

results:

Contains output files (saved as .csv files) from the SQL scripts. The files are named based on the corresponding script used to generate the result.

sql-portfolio's People

Contributors

jrod55 avatar

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.