Giter Site home page Giter Site logo

diy-namic-data-analysis's Introduction

DIY-NAMIC Data Analysis

This is the third repository, in a three-part series, which contains scripts for analysis of data collected in DIY-NAMIC boxes using behavioral paradigms from second repository.


General Notes on Code Organization

  • Code is organized sequentially (Steps 0 through x)
  • Actual scripts to run are labelled with the suffix "Function_Calls"
  • Scripts with sub-alphabets (ex. 1a) contain functions that are used by the Function_Calls scripts
  • All GUI-related functions are contained within Tkinter_Selection.py script.

How to Run

IMPORTANT NOTE! Use pandas=0.25 to run the data analysis codes!! - There are some changes between 0.25 and 1.0 that crash the codebase if using pandas>=1.0

Step0: Concatenate_all_txt_files (Raw_Processing_Files)

  • Input: Selected Folder (raw processing files)
  • Output: CSV file with aggregated box data
    • title format: 0228 P5_concat.csv

Step1: Parsing csv files into different timeframes

  • Input: aggregated csv file ex) 0228 P5_concat.csv
  • Output: ALL metric parameters for SELECTED day
    • title format: M0228_0229_18-06_P5.csv
      (M-startdate_enddate_starttime-endtime_paradigm) 'M' stands for metric

After getting the metrics for each day, move the files into a single folder for the next step.

Step2: Make a summary excel sheet (different parameters saved into different sheets)

  • Input: Selected Folder (metrics for each day)
  • Output: Summary Excel Sheet
    • title format: Group5_dark_Summary.xlsx

Plotting

Before Plotting:

  • Make sure to update xBasic_Group_Info.py file with appropriate information on control group / experimental group / paradigm cutoff date list etc.

Different Plottings

  • 1.Weight Plotting:

    • Input: Weight File (csv)
    • Output:
    • Notes: Make sure to add appropriate xlabels / ylabels / title etc.
  • 2.Parameter Plotting

    • Input: Summary excel file (contains all parameters in separate sheets)
    • Output:
    • Notes: Make sure to add appropriate xlabels / ylabels / title etc.
  • 3.Latency Plotting

    • Input:
    • Output:
    • Notes: Make sure to add appropriate xlabels / ylabels / title etc.

Development


What to Contribute
  • Bugs or Errors in Code
  • Typos or grammar mistakes

Feel free to open an issue or submit a pull request or to email me with your contributions to [email protected].

Contributions and Thanks


A big thank you to the various members of the stackoverflow community and the Python core developers for providing the foundation!

Contact

For any questions or issues, contact Jun Ho Lee at [email protected] or Katherine Nautiyal at [email protected].

diy-namic-data-analysis's People

Contributors

jhl0204 avatar flagship20030 avatar labtech6207 avatar

Watchers

James Cloos 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.