Skip to content

Commit c579269

Browse files
Revise data formatting steps and execution commands
Updated steps for data formatting and execution instructions.
1 parent d2d889c commit c579269

1 file changed

Lines changed: 9 additions & 18 deletions

File tree

example.md

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -86,37 +86,28 @@ pip install uv'
8686
uv pip install -e .
8787
```
8888

89-
## STEP 5: Place your data folder anywhere with the following format (any number of reachsets)
89+
## STEP 5: Data Formatting
90+
The output file from deeplabcut will have more data than necessary, so delete everything except time, paw (x,y,z), wrist (x,y,z), shoulder (x,y,z), elbow (x,y,z). At the end, the csv file should look like the following:
91+
![Example input file](/images/image_2025-12-31_145620844.png)
92+
93+
After formatting, the data folder should be formatted like this:
94+
95+
## STEP 6: Place your data folder anywhere with the following format (any number of reachsets)
9096
```
9197
Data/
9298
├── reachset_1/
9399
│ └── kinematics_1.csv
94100
└── reachset_2/
95101
└── kinematics_1.csv
96102
```
97-
Then, in a separate anaconda terminal, cd into the parent directory of the Data folder.
103+
Then, right click the "Data" folder, and click "Copy as path." in a separate anaconda terminal, type `cd ` then right-click and paste the path in and hit enter. Then type `cd ..` and hit enter.
98104

99105
In a new python file in the same folder as the Data folder, enter:
100106
```
101107
from mousearm.simulate import run_simulation
102108
run_simulation("Data", nReachSets=2) # Adjust nReachSets accordingly
103109
```
104-
Then, run it using `python run ` from the parent directory of the Data folder.
105-
106-
# Data Formatting
107-
Process the motion capture data through [DeepLabCut](https://github.com/DeepLabCut/DeepLabCut). The output file will have more data than necessary, so delete everything except time, paw (x,y,z), wrist (x,y,z), shoulder (x,y,z), elbow (x,y,z). At the end, the csv file should look like the following:
108-
![Example input file](/images/image_2025-12-31_145620844.png)
109-
110-
After formatting, the data folder should be formatted like this:
111-
```
112-
RawData/
113-
└── reachsets/
114-
├── reachset_1/
115-
│ └── kinematics_1.csv
116-
├── reachset_2/
117-
│ └── kinematics_1.csv
118-
└── ...
119-
```
110+
Then, run it using `python run [name of file]` from the parent directory of the Data folder.
120111

121112
# Output File Processing
122113

0 commit comments

Comments
 (0)