Skip to content

Commit

Permalink
Merge pull request #7 from makto-toruk/09_27_2019_update
Browse files Browse the repository at this point in the history
update readme
  • Loading branch information
makto-toruk authored Sep 27, 2019
2 parents 6fbb207 + 7260a46 commit 3762981
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,19 @@ pip3 install -r requirements.txt
```

The main code to compute the geodesic distance measure is [here](https://github.com/makto-toruk/FC_geodesic/blob/master/utils/distance_FC/distance_FC.py).
To compute the geodesic distance between two FC matrices FC1 and FC2,
```
import sys
# add distance folder to path
UTILS_DIR = 'utils/distance_FC'
sys.path.insert(0, UTILS_DIR)
from distance_FC import distance_FC
dist = distance_FC(FC1, FC2)
# geodesic distance
d_geodesic = dist.geodesic()
# pearson dissimilarity
d_pearson = dist.pearson()
```

To run analysis on the toy data, run the following commands:
* Compute distance matrices based on Pearson dissimilarity and Geodesic distance,
Expand Down

0 comments on commit 3762981

Please sign in to comment.