https://github.com/wesleych3n/gaitool-rs
Command line tools to analyze human's gait data from Noraxon MR3
https://github.com/wesleych3n/gaitool-rs
command-line-tool gait-analysis
Last synced: 3 months ago
JSON representation
Command line tools to analyze human's gait data from Noraxon MR3
- Host: GitHub
- URL: https://github.com/wesleych3n/gaitool-rs
- Owner: WesleyCh3n
- License: mit
- Created: 2022-04-25T08:23:24.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-30T10:06:52.000Z (over 2 years ago)
- Last Synced: 2025-01-28T16:41:50.567Z (5 months ago)
- Topics: command-line-tool, gait-analysis
- Language: Rust
- Homepage:
- Size: 4.85 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Analyze Gait
[](https://github.com/WesleyCh3n/analyze.rs/actions/workflows/ci.yml)
[](https://github.com/WesleyCh3n/analyze.rs/actions/workflows/cd.yml)This is a command line tools to analyze human's gait raw data from
[Noraxon myoRESEARCH](https://www.noraxon.com/our-products/myoresearch/),
including preprocessing, calculating gait cycle, remapping columns etc.## Getting Started
### Usage
```
USAGE:
analyze-rsOPTIONS:
-h, --help Print help informationSUBCOMMANDS:
concat
export
filter
help Print this message or the help of the given subcommand(s)
swrite
```#### filter
Specify `-f` input data and `-s` save directory. To filter raw/remapped data
(including info header), then output valid data.Example input:
```shell
analyze-rs filter -f ./file/raw/sample.csv -s file/csv
```Example output:
```shell
{
"FltrFile":{
"cyDb":"db.csv",
"cyGt":"gait.csv",
"cyLt":"ls.csv",
"cyRt":"rs.csv",
"rslt":"sample.csv"
},
"Range":[{"End":15.965,"Start":4.37},{"End":35.755,"Start":25.375}]
}
```#### export
Specify `-f` input data, `-s` save directory and `-r` follow by string with two
number with a space separated to select valid range in gait cycle (able to
select multiple ranges). To export each node max/min mean in valid gait cycle.Example input:
```shell
analyze-rs export -f file/csv/sample.csv -s file/export -r "1 12" -r "25 33"
```Example output:
```shell
{"ExportFile": "sample-result.csv"}
```#### swrite
Specify `-f` input data, `-s` save directory and `-v` follow by a string which
is valid time range, a space separate each range and `-` in each range.
To write the valid selection time to new columns selected file.Example input:
```shell
analyze-rs swrite -f file/raw/sample.csv -s file/export -v "4.37-15.965 18.06-22.00"
```Example output:
```shell
{"CleanFile":"sample.csv"}
```#### concat
Specify `-f` input data (multiple), `-s` save directory. To concatenate
multiple export result in one file.Example input:
```shell
analyze-rs concat -f file/export/sample-result-1.csv -f file/export/sample-result-2.csv -s file/export
```Example output:
```shell
{"ConcatFile":"concat.csv"}
```#### split
Specify `-f` input data directory, `-s` save directory, `-p` percentage from
middle of the gait.Example input:
```shell
analyze-rs split -f files_dir/ -s save_dir/ -p 75
```Example output:
```shell
█████████████████████████████████████████████████████████████████████████ 30/30
```