8000 GitHub - Tejindersingh1/statassist
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Tejindersingh1/statassist

Repository files navigation

Stat-Assist Platform

Overview

Stat-Assist is designed to make clinical research design, analysis, and reporting friction-less for clinicians. The platform guides users through the process of designing studies, selecting appropriate statistical tests, calculating required sample sizes, and generating study protocols.

Key Features

  • Study Design Wizard: Step-by-step guidance for designing various study types (RCT, Diagnostic Accuracy, Cohort)
  • Statistical Test Recommender: Automated recommendations for appropriate statistical tests based on study design and variables
  • Power Calculator: Interactive sample size and power calculations with visualizations
  • Protocol Generator: Automated generation of study protocols based on design inputs
  • PICOT Refiner: Converts free-form questions into structured PICOT format using Gemini Flash

Technology Stack

  • Backend: FastAPI, SQLAlchemy, PostgreSQ
  • Frontend: React (Next.js), Tailwind CSS, shadcn/ui
  • aat engine
  • Deployment: Kubernetes-ready

Project Structure

stat-assist/
├── docs/                   # Documentation files
├── statassist-api/         # Backend API service
│   ├── app/
│   │   ├── core/           # Core business logic
│   │   ├── db/             # Database models and connection
│   │   ├── models/         # SQLAlchemy models
│   │   ├── routers/        # API endpoints
│   │   ├── schemas/        # Pydantic schemas
│   │   └── utils/          # Utility functions
│   └── requirements.txt    # Python dependencies
├── statassist-ui/          # Frontend UI service
│   ├── src/
│   │   ├── app/            # Next.js pages and components
│   │   ├── components/     # Reusable UI components
│   │   ├── lib/            # Utility functions
│   │   └── styles/         # CSS and styling
│   └── package.json        # Node.js dependencies
└── powersim-service/       # Statistical simulation service
    ├── app/
    │   ├── core/           # Statistical algorithms
    │   ├── schemas/        # Data models
    │   └── utils/          # Utility functions
    └── requirements.txt    # Python dependencies

Setup Instructions

Prerequisites

  • Python 3.9+
  • Node.js 18+
  • npm 9+

Installation

  1. Clone the repository:

    git clone https://github.com/your-org/stat-assist.git
    cd stat-assist
    
  2. Install dependencies for all services:

    npm run install:all
    

    This will install:

    • Python dependencies for the API service
    • Python dependencies for the PowerSim service
    • Node.js dependencies for the UI service
  3. Set the GEMINI_API_KEY environment variable with your Gemini Flash API key. This is required for the research question refinement features.

Running the Application

Start all services with a single command:

npm start

This will concurrently run:

Development

For development, you can run each service individually:

# Run only the backend API
npm run start:api

# Run only the frontend UI
npm run start:ui

# Run only the PowerSim service
npm run start:powersim

Demo Access

For demonstration purposes, you can use the "Demo Login" button on the login page. This will give you access to the platform without requiring registration.

Performance Requirements

  • Page load time: ≤2s p95
  • API response time: ≤500ms p95
  • Power calculations: ≤5s for complex simulations

Security and Compliance

  • PHI isolation with field-level encryption
  • Comprehensive audit trail
  • Zero-trust security model
  • HIPAA and GDPR compliant (under reviewal)

Accessibility

  • WCAG 2.2 AA compliant
  • Mobile-first responsive design
  • Support for screen readers and keyboard navigation

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  
0