Skip to content

Commit

Permalink
Initial upload
Browse files Browse the repository at this point in the history
  • Loading branch information
atong01 committed Jun 1, 2020
1 parent e663c8a commit 7f6b115
Show file tree
Hide file tree
Showing 45 changed files with 5,962 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[flake8]
max-line-length = 88
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
*__pycache__*
*.pyc
results/*
*.png
*.jpg
.snakemake

.ipynb_checkpoints
44 changes: 43 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,43 @@
# TrajectoryNet
# Pytorch Implementation of TrajectoryNet

This library runs code associated with the TrajectoryNet paper


## Installation

Download code
```
git clone http://github.com/krishanswamylab/TrajectoryNet.git
```


## Example
<p align="center">
<img align="middle" src="./figures/eb_high_quality.png" alt="EB PHATE Scatterplot" height="300" />
<img align="middle" src="./figures/EB-Trajectory.gif" alt="Trajectory of density over time" height="300" />
</p>

## Basic Usage

Run with
```
python main.py --dataset EB
```

To use a custom dataset expose the coordinates and timepoint information according to the `SCData` class in `dataset.py`

### References
[1] Tong, A., Huang, J., Wolf, G., van Dijk, D., and Krishnaswamy, S. TrajectoryNet: A Dynamic Optimal Transport Network for Modeling Cellular Dynamics. In International Conference on Machine Learning, 2020. [[arxiv]](http://arxiv.org/abs/2002.04461)

---

If you found this library useful, please consider citing
```
@inproceedings{tong2020trajectorynet,
title = {{{TrajectoryNet}}: {{A Dynamic Optimal Transport Network}} for {{Modeling Cellular Dynamics}}},
shorttitle = {{{TrajectoryNet}}},
booktitle = {Proceedings of the 37th {{International Conference}} on {{Machine Learning}}},
author = {Tong, Alexander and Huang, Jessie and Wolf, Guy and {van Dijk}, David and Krishnaswamy, Smita},
year = {2020}
}
```
Empty file added TrajectoryNet/__init__.py
Empty file.
Loading

0 comments on commit 7f6b115

Please sign in to comment.