Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ If you'd like to reproduce this analysis on our data, check out the following do
- [Preprocessing documentation](./docs/PREPROCESSING.md) for generating pointclouds and SDFs from from our input movies (step 2).
- [Development documentation](./docs/DEVELOPMENT.md) for guidance working on the code in this repository.

# Using the models

Coming soon

# Quickstart

Use the cytodl api to run any given experiment. For e.g., train a rotation invariant point cloud autoencoder on the PCNA dataset
Expand Down
10 changes: 9 additions & 1 deletion configs/results/npm1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,12 @@ data_paths:
"/data/npm1/pc.yaml",
]
classification_label: ["STR_connectivity_cc_thresh"]
regression_label: ["mean_surface_area", "mean_volume", "avg_dists", "std_dists"]
regression_label:
[
"mean_surface_area",
"std_surface_area",
"mean_volume",
"std_volume",
"avg_dists",
"std_dists",
]
25 changes: 9 additions & 16 deletions configs/results/npm1_64_res.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@ image_path: ./morphology_appropriate_representation_learning/preprocessed_data/n
pc_path: ./morphology_appropriate_representation_learning/preprocessed_data/npm1_64_res/manifest.csv
model_checkpoints:
[
"./morphology_appropriate_representation_learning/model_checkpoints/npm1/Classical_image_seg.ckpt",
"./morphology_appropriate_representation_learning/model_checkpoints/npm1/Rotation_invariant_image_seg.ckpt",
"./morphology_appropriate_representation_learning/model_checkpoints/npm1/Classical_image_SDF.ckpt",
"./morphology_appropriate_representation_learning/model_checkpoints/npm1/Rotation_invariant_image_SDF.ckpt",
"./morphology_appropriate_representation_learning/model_checkpoints/npm1/Rotation_invariant_pointcloud_SDF.ckpt",
"./morphology_appropriate_representation_learning/model_checkpoints/npm1_64_res/Classical_image_seg.ckpt",
"./morphology_appropriate_representation_learning/model_checkpoints/npm1_64_res/Rotation_invariant_image_seg.ckpt",
"./morphology_appropriate_representation_learning/model_checkpoints/npm1_64_res/Classical_image_SDF.ckpt",
Expand All @@ -21,24 +16,22 @@ names:
"Classical_image_SDF",
"Rotation_invariant_image_SDF",
"Rotation_invariant_pointcloud_SDF",
"Classical_image_seg_64",
"Rotation_invariant_image_seg_64",
"Classical_image_SDF_64",
"Rotation_invariant_image_SDF_64",
"Rotation_invariant_pointcloud_SDF_64",
]
data_paths:
[
"/data/npm1/classical_image_seg.yaml",
"/data/npm1/so3_image_seg.yaml",
"/data/npm1/classical_image_sdf.yaml",
"/data/npm1/so3_image_sdf.yaml",
"/data/npm1/pc.yaml",
"/data/npm1_64_res/classical_image_seg.yaml",
"/data/npm1_64_res/so3_image_seg.yaml",
"/data/npm1_64_res/classical_image_sdf.yaml",
"/data/npm1_64_res/so3_image_sdf.yaml",
"/data/npm1_64_res/pc.yaml",
]
classification_label: ["STR_connectivity_cc_thresh"]
regression_label: ["mean_surface_area", "mean_volume", "avg_dists", "std_dists"]
regression_label:
[
"mean_surface_area",
"std_surface_area",
"mean_volume",
"std_volume",
"avg_dists",
"std_dists",
]
18 changes: 9 additions & 9 deletions configs/results/other_polymorphic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,27 @@ image_path: ./morphology_appropriate_representation_learning/preprocessed_data/o
pc_path: ./morphology_appropriate_representation_learning/preprocessed_data/other_polymorphic/manifest.csv
model_checkpoints:
[
"./morphology_appropriate_representation_learning/model_checkpoints/other_polymorphic/Rotation_invariant_pointcloud_SDF.ckpt",
"./morphology_appropriate_representation_learning/model_checkpoints/other_polymorphic/Rotation_invariant_image_SDF.ckpt",
"./morphology_appropriate_representation_learning/model_checkpoints/other_polymorphic/Classical_image_seg.ckpt",
"./morphology_appropriate_representation_learning/model_checkpoints/other_polymorphic/Rotation_invariant_image_seg.ckpt",
"./morphology_appropriate_representation_learning/model_checkpoints/other_polymorphic/Classical_image_SDF.ckpt",
"./morphology_appropriate_representation_learning/model_checkpoints/other_polymorphic/Classical_image_seg.ckpt",
"./morphology_appropriate_representation_learning/model_checkpoints/other_polymorphic/Rotation_invariant_image_SDF.ckpt",
"./morphology_appropriate_representation_learning/model_checkpoints/other_polymorphic/Rotation_invariant_pointcloud_SDF.ckpt",
]
names:
[
"Rotation_invariant_pointcloud_SDF",
"Rotation_invariant_image_SDF",
"Classical_image_seg",
"Rotation_invariant_image_seg",
"Classical_image_SDF",
"Classical_image_seg",
"Rotation_invariant_image_SDF",
"Rotation_invariant_pointcloud_SDF",
]
data_paths:
[
"/data/other_polymorphic/pc.yaml",
"/data/other_polymorphic/so3_image_sdf.yaml",
"/data/other_polymorphic/classical_image_seg.yaml",
"/data/other_polymorphic/so3_image_seg.yaml",
"/data/other_polymorphic/classical_image_sdf.yaml",
"/data/other_polymorphic/classical_image_seg.yaml",
"/data/other_polymorphic/so3_image_sdf.yaml",
"/data/other_polymorphic/pc.yaml",
]
classification_label: ["structure_name"]
regression_label:
Expand Down
6 changes: 4 additions & 2 deletions docs/DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,16 @@ benchmarking_representations
│ │ ├── cellpack
│ │ ├── chandrasekaran_et_al
│ │ ├── data
│   │   │   ├── cellpack <- Config files associated with cellpack simulations
│   │   │   ├── get_datamodules.py <- Get final list of datamodules per dataset
│ │ │ └── preprocessing <- Preprocessing scripts to generate point clouds and SDFs
│ │ ├── features
│ │   ├── features <- Metrics for benchmarking each model
│ │   │   ├── archetype.py <- Archetype analysis functions
│ │   │   ├── classification.py <- Test set classification accuracies using logistic regression classifiers
│ │   │   ├── outlier_compactness.py <- Intrinsic dimensionality calculation and outlier classification
│ │   │   ├── reconstruction.py <- Functions for reconstruction viz across models
│ │   │   ├── regression.py <- Linear regression test set r^2
│ │   │   ├── evolve.py <- Evolution energy and interpolation distance metrics
│ │   │   ├── rotation_invariance.py <- Sensitivity to four 90 degree rotations in embedding space
│ │   │   └── plot.py <- Polar plot viz across metrics
│   │   ├── models <- Training and inference scripts
Expand All @@ -36,8 +37,9 @@ benchmarking_representations
│   │   │   ├── save_embeddings.py <- Save embeddings using inference functions
│   │   │   ├── load_models.py <- Load trained models based on checkpoint paths
│   │   │   └── compute_features.py <- Compute multi-metric features for each model based on saved embeddings
│ │ ├── notebooks <- Jupyter notebooks
│ │ └── visualization
│   │   │   ├── mitsuba_render_image.py <- Mitsuba rendering for image segmentations
│   │   │   ├── mitsuba_render_pc.py <- Mitsuba rendering for pointclouds
│ └── pointcloudutils
│      ├── datamodules <- Custom datamodules
│      │   └── cellpack.py <- CellPACK data specific datamodule
Expand Down
3 changes: 2 additions & 1 deletion docs/PREPROCESSING.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ src

# Polymorphic structures: Generate SDFs

Use the segmentation data for polymorphic structures as input to the SDF generation step.
Use the segmentation data for polymorphic structures as input to the SDF generation step.

```
src
└── br
Expand Down
Loading
Loading