Skip to content

Commit 04c0481

Browse files
authored
Update README.md
1 parent edb4933 commit 04c0481

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
@@ -34,21 +34,21 @@ The following arguments are needed to call the script:
3434
## 1. Building cost matrix
3535
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` .
3636
```console
37-
python build_cost_matrix.py -s craddock.txt -t shen.txt
37+
python build_cost_matrix.py -s craddock -t shen
3838
```
3939
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.
4040

4141
## 2. Finding mappings
4242
Now, we can specify two atlases and the cost matrix derived from previous step to obtain optimal transport mapping between these two.
4343
```console
44-
python build_mapping.py -s craddock.txt -t shen.txt -c cost_craddock_shen.csv
44+
python build_mapping.py -s craddock -t shen -c cost_craddock_shen.csv
4545
```
4646
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.
4747

4848
## 3. Carot: Transforming source(s) to a target atlas
4949
Given cost matrix `cost_source_target.csv` and mapping `T_source_target.csv` now we can transfer source parcellation into other:
5050
```console
51-
python carot.py -s craddock.txt -t shen.txt -m T_source_target.csv
51+
python carot.py -s craddock -t shen -m T_source_target.csv
5252
``````
5353
## Replicating results in the paper
5454
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)