Docker TutorialΒΆ

  1. Install Docker: Ensure you have Docker installed on your system. Get Docker

  2. Pull the Docker image:

    docker pull cmidair/wristpy:main
    
  3. Run the Docker image with your data:

    docker run -it --rm \
      -v "/local/path/to/data:/data" \
      -v "/local/path/to/output:/output" \
      cmidair/wristpy:main
    

    Replace /local/path/to/data with the path to your input data directory and /local/path/to/output with where you want results saved.

    To run a single file, we simply need to modify the mounting structure for the docker call slightly:

    docker run -it --rm \
     -v "/local/path/to/data/file.bin:/data/file.bin" \
     -v "/local/path/to/output:/output" \
     cmidair/wristpy:main
    
  4. Customizing the Pipeline:

The Docker image supports multiple input variables to customize processing. You can set these by simply chaining these inputs as you would for the CLI input:

docker run -it --rm \
  -v "/local/path/to/data/file.bin:/data/file.bin" \
  -v "/local/path/to/output:/output" \
  cmidair/wristpy:main /data --output /output --epoch-length 5 --nonwear-algorithm ggir --nonwear-algorithm detach --thresholds 0.1 0.2 0.4