Skip to content

Stanford Appel Lab - Study Power Project: Data modeling calculator designed with Python and PyQt5 to generate mock data models for power calculations. Designed to aid experimental design. Standalone power and GLM (pairwise t-test and F-test) analysis.

License

peytoncchen/Data-Modeler-Py

Repository files navigation

Data Modeler for Power Calculations

This application is designed to aid scientists in the early-stages of designing an experiment with animal models or other subjects. Utilizing the program, one can fine-tune how many measurements they will want to use based on expected blocking factors, standard deviations, and treatments. The application takes these user inputs and calculates dependent variable values on various Gaussian distributions. Additionally, advanced features include rapid pre-experiment power calculations through in-house complete general linear model F-test and pairwise t-test analysis. Please refer to the wiki for specifics on app implementation and mathematical theory behind the application's algorithms. App Screenshot

Installation

This application can be downloaded in multiple ways.

Running via frozen macOS Application

  • Download and save the .app file from the most current release
  • Run the app by double-clicking (if "unknown developer" warning, go to System Preferences > Security & Privacy > Open Anyway)
  • Note: this is only for macOS, however Windows users can utilize the pyinstaller version that has been uploaded

Running via (semi) frozen Windows Application

  • Download and save the folder named "Data Modeler Windows" from the most current release and unzip the folder
  • Open the folder and look for the executable application named "Data Modeler"
  • Double-click on it. If a command line window pops up, you do not have to worry about it, just ignore it.

Running via source code with Python 3

  • Requirements
    • Download and install Python 3.5+
    • Clone the project:
    git clone https://github.com/peytoncchen/Data-Modeler-Py.git
    
    • Or: download the source code into a zip file from the green button labelled 'Code'
    • (Optional but highly recommended): Make sure you are in the source code directory and set up a python virtual environment with
    python3 -m venv NameOfVenv
    
    • To activate the virtual environment:
    source venv/bin/activate
    
    • Make sure you are in the source code directory and install all necessary dependencies:
    pip install -r requirements.txt
    
    • Run!
    python3 datamodeler.py
    

Running via alias-mode macOS Application

  • Follow all steps from "Running via source code with Python 3"
  • Run py2app
python3 freezingfiles/setup.py py2app -A
  • Note, without the -A, py2app will freeze the app into stand-alone form.
  • With this, you will need to re-run the command if any new files are added but not if changes are made to existing files.
  • In my opinion, this is the best method, as you can run the application without the command line, it is more flexible than the completely frozen application, and you get the cute mouse icon.

Quick-start documentation

Please refer to this document for basic, quick-start documentation.

Built With

  • Python 3
  • Various packages: scipy, numpy, pandas, PyQt5, xlsxwriter, statsmodels, py2app and pyinstaller

Feedback/Development

The code for this application is open source and can be downloaded and modified as you wish.

Please report any bugs or feedback to peytonc@stanford.edu

Releases

For the various versions and releases available, see the releases page.

Licensing

This application is licensed under the GNU GPL (General Public License) v3.0. See LICENSE.txt for more details.

Developers

  • Peyton Chen

Acknowledgments

  • Caitlin Maikawa, Stanford Bioengineering Ph.D.
    • for all the help with complex statistics and components of UI design
  • Eric Appel, Assistant Professor of Material Science and Engineering at Stanford University
  • Appel Lab (hence the little apple in the icon!)
  • Stanford Department of Bioengineering Research Experience for Undergraduates (REU) Program, Summer 2020

About

Stanford Appel Lab - Study Power Project: Data modeling calculator designed with Python and PyQt5 to generate mock data models for power calculations. Designed to aid experimental design. Standalone power and GLM (pairwise t-test and F-test) analysis.

Topics

Resources

License

Stars

Watchers

Forks

Languages