Skip to content

Commit 0fbe6a8

Browse files
authored
Update README.md
1 parent a62430d commit 0fbe6a8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,21 @@ The following arguments are needed to call the script:
3131
## 1. Building cost matrix
3232
Here, we want to calculate cost matrix between different ROIs in two atlases. Then, we have to specify the names of two atlases with `-s` and `-t` and the task we want to learn mappings with `-task` .
3333
```console
34-
python build_cost_matrix.py -s craddock -t shen
34+
python build_cost_matrix.py -s craddock.txt -t shen.txt
3535
```
3636
The output will be stored in `cost_source_target.csv` with `n` rows and`m` columns indicating number of ROIs in source and target respectively.
3737

3838
## 2. Finding mappings
3939
Now, we can specify two atlases and the cost matrix derived from previous step to obtain optimal transport mapping between these two.
4040
```console
41-
python build_mapping.py -s craddock -t shen -c cost_craddock_shen.csv
41+
python build_mapping.py -s craddock.txt -t shen.txt -c cost_craddock_shen.csv
4242
```
4343
The output will be stored in `T_source_target.csv` with `n` rows and`m` columns indicating number of ROIs in source and target respectively. Each row is a probability distribution exhibiting optimum assignment of values from the appropriate node to target nodes.
4444

4545
## 3. Carot: Transforming source(s) to a target atlas
4646
Given cost matrix `cost_source_target.csv` and mapping `T_source_target.csv` now we can transfer source parcellation into other:
4747
```console
48-
python carot.py -s craddock -t shen -m T_source_target.csv
48+
python carot.py -s craddock.txt -t shen.txt -m T_source_target.csv
4949
``````
5050
## Replicating results in the paper
5151
To run a simple script with source `brainnetome` and target `shen` using `rest1` with `euclidean` cost measure, and saving it:

0 commit comments

Comments
 (0)