Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add case study notebooks #20

Merged
merged 85 commits into from
Jan 26, 2024
Merged
Show file tree
Hide file tree
Changes from 69 commits
Commits
Show all changes
85 commits
Select commit Hold shift + click to select a range
3e0d659
build skeleton of case studies in paper
srtaheri Oct 27, 2023
1cc39e4
build initial skeleton of large sars case study data generation
srtaheri Oct 30, 2023
1856bf3
data generation for large sars cov example
srtaheri Nov 1, 2023
597933f
build initial skeleton for the case studies in the paper
srtaheri Nov 1, 2023
390eb09
added discriptioon to the example
srtaheri Nov 1, 2023
f75de6e
worked on the skeleton of case studies
srtaheri Nov 6, 2023
0eff5a7
added necessary function names to init
srtaheri Nov 6, 2023
b8c5c7e
changed data to discretized data
srtaheri Nov 6, 2023
8bfc260
filled out steps of the workflow for case studies
srtaheri Nov 7, 2023
a8c739f
added steps of the workflow to sars cov example
srtaheri Nov 7, 2023
afca781
added steps of the workflow to covid case study
srtaheri Nov 7, 2023
9004581
worked on CI tests for case studies
srtaheri Nov 8, 2023
824cf61
added sars discrete data generator
srtaheri Nov 8, 2023
c2bbd8f
worked on case studies notebook
srtaheri Nov 8, 2023
ede7eb6
create discrete data for Sars case study
srtaheri Nov 8, 2023
f26ef5d
ran and got results from all case studies, all steps of workflow
srtaheri Nov 10, 2023
bbc186c
added relevant data and images
srtaheri Nov 13, 2023
019460f
convert single long line into multiple shorter ones for Tsignaling ca…
srtaheri Nov 14, 2023
09ef7cf
small changes
srtaheri Nov 22, 2023
2e94f60
Adding sars_cov2 data
pnavada Dec 5, 2023
76f1899
small changes
srtaheri Dec 6, 2023
bf169d0
Merge branch 'notebooks' of https://github.com/y0-causal-inference/el…
srtaheri Dec 6, 2023
791a9ea
Modified notebooks to import functions from eliater
pnavada Jan 11, 2024
558b053
modified notebooks
srtaheri Jan 13, 2024
fa1526d
Resolving conflict from origin
pnavada Jan 14, 2024
8b59e9e
notebook changes
pnavada Jan 14, 2024
ecf6e9c
add evaluation criterion to SARS case study
srtaheri Jan 16, 2024
18ac602
verfied the results in EColi case study
srtaheri Jan 16, 2024
b06ea65
added evaluation criterion
srtaheri Jan 17, 2024
cf4d8f0
added evaluation to the motivating example
srtaheri Jan 17, 2024
8d4a6da
Reorganize
cthoyt Jan 18, 2024
f7278b1
Merge branch 'main' into notebooks
cthoyt Jan 18, 2024
3f9878b
Reuse graph
cthoyt Jan 18, 2024
0091ea9
Lint
cthoyt Jan 18, 2024
aed34a8
Merge branch 'main' into notebooks
cthoyt Jan 18, 2024
45ee7ef
Clean up T signaling notebook
cthoyt Jan 18, 2024
6d9c6cf
Update motivating_example.ipynb
cthoyt Jan 18, 2024
f7a33a2
Update motivating_example.ipynb
cthoyt Jan 18, 2024
b58b867
Update motivating example notebook
cthoyt Jan 18, 2024
f0e6aeb
Adding boxplot for ecoli and refactoring
pnavada Jan 18, 2024
2f5587f
Merge branch 'main' into notebooks
cthoyt Jan 19, 2024
6ad2288
Reorg data
cthoyt Jan 19, 2024
554fd19
Improve output in motiviating example and t cell signalling
cthoyt Jan 19, 2024
2148b5f
Update printing and reorganize notebooks
cthoyt Jan 19, 2024
2b325b2
Pass flake8 and add progress bar option for long ecoli notebook
cthoyt Jan 19, 2024
5f9455f
Update Case_study3_The_EColi.ipynb
cthoyt Jan 19, 2024
2a88e00
Finish rerunning ecoli case study
cthoyt Jan 19, 2024
8871106
Update network_validation.py
cthoyt Jan 19, 2024
9b2684c
Adding images of networks
pnavada Jan 20, 2024
3020e06
Adding network images to notebooks
pnavada Jan 20, 2024
34ec54c
modified case studies
srtaheri Jan 20, 2024
59f397d
Revert "Adding network images to notebooks"
pnavada Jan 20, 2024
e8e7efd
merged
srtaheri Jan 20, 2024
f8584fd
added sars continuous
srtaheri Jan 20, 2024
9fe41b3
testing continuous data for sars
pnavada Jan 20, 2024
adf5fab
tetsing case studies
srtaheri Jan 21, 2024
6c9ed78
discretized sars data
srtaheri Jan 21, 2024
75376df
changed SARS data from binary to continuous
srtaheri Jan 23, 2024
0794fdb
finalized sars case study
srtaheri Jan 23, 2024
f2340ee
Adding images to notebooks
pnavada Jan 24, 2024
d0c9f15
executed all the cells
pnavada Jan 24, 2024
92dd55d
changed a parameter in data generation process to avoid creating many…
srtaheri Jan 24, 2024
7fc01db
added motivating example data generation
srtaheri Jan 24, 2024
ae0e8e1
added motivating example to init
srtaheri Jan 24, 2024
582e1e3
add motivating example
srtaheri Jan 24, 2024
723a355
added distribution of ATEs
srtaheri Jan 24, 2024
c911ec3
modified case studies
srtaheri Jan 24, 2024
b3c424e
added sars ATE boxplot
srtaheri Jan 24, 2024
efecb32
added datasets given by Karen
srtaheri Jan 24, 2024
6cb0879
reading sachs test data and random sampling evaluation
pnavada Jan 24, 2024
4bb9d7e
added quantile ranges
srtaheri Jan 24, 2024
3793e5c
try to solve conflict
srtaheri Jan 24, 2024
68875ef
motivating example was checked against text in paper
srtaheri Jan 25, 2024
0ff6486
made sure results in the notebook align with text in paper
srtaheri Jan 25, 2024
b235e4c
Resizing image
pnavada Jan 25, 2024
5cbc012
Resizing images to 500X500
pnavada Jan 25, 2024
8df0f4a
added sachs continuous data
srtaheri Jan 26, 2024
b7588e7
Adding method for loading sachs continuous data and regression plot f…
pnavada Jan 26, 2024
261a89c
loading sachs data fix
pnavada Jan 26, 2024
1b45312
Reran notebooks and cleaned up imports
cthoyt Jan 26, 2024
3cbf67a
Run lint
cthoyt Jan 26, 2024
c6ce8a8
Update MANIFEST.in
cthoyt Jan 26, 2024
89f4859
Update __init__.py
cthoyt Jan 26, 2024
0ae6a6d
Update
cthoyt Jan 26, 2024
35d0226
Merge branch 'main' into notebooks
cthoyt Jan 26, 2024
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
Binary file added docs/source/img/EColi_original.pdf
Binary file not shown.
Binary file added docs/source/img/EColi_simplified.pdf
Binary file not shown.
Binary file added img/SARS_COV.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/Sars_ATE_boxplot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/Tsignaling.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/ecoli.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
848 changes: 848 additions & 0 deletions notebooks/Case_study1_The_Sars_cov2_model.ipynb

Large diffs are not rendered by default.

685 changes: 685 additions & 0 deletions notebooks/Case_study2_The_Tsignaling_pathway.ipynb

Large diffs are not rendered by default.

1,054 changes: 1,054 additions & 0 deletions notebooks/Case_study3_The_EColi.ipynb

Large diffs are not rendered by default.

905 changes: 905 additions & 0 deletions notebooks/motivating_example.ipynb

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions src/eliater/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,26 @@
from .api import workflow
from .discover_latent_nodes import remove_nuisance_variables
from .network_validation import add_ci_undirected_edges, plot_ci_size_dependence
from .version import get_version

__all__ = [
"workflow",
"remove_nuisance_variables",
"add_ci_undirected_edges",
"plot_ci_size_dependence",
]


def version_df():
import datetime

Check warning on line 19 in src/eliater/__init__.py

View check run for this annotation

Codecov / codecov/patch

src/eliater/__init__.py#L19

Added line #L19 was not covered by tests

import pandas

Check warning on line 21 in src/eliater/__init__.py

View check run for this annotation

Codecov / codecov/patch

src/eliater/__init__.py#L21

Added line #L21 was not covered by tests

import y0.version

Check warning on line 23 in src/eliater/__init__.py

View check run for this annotation

Codecov / codecov/patch

src/eliater/__init__.py#L23

Added line #L23 was not covered by tests

rows = [

Check warning on line 25 in src/eliater/__init__.py

View check run for this annotation

Codecov / codecov/patch

src/eliater/__init__.py#L25

Added line #L25 was not covered by tests
("eliater", get_version(with_git_hash=True)),
("y0", y0.version.get_version(with_git_hash=True)),
("Run at", datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")),
]
return pandas.DataFrame(rows, columns=["key", "value"])

Check warning on line 30 in src/eliater/__init__.py

View check run for this annotation

Codecov / codecov/patch

src/eliater/__init__.py#L30

Added line #L30 was not covered by tests
259 changes: 259 additions & 0 deletions src/eliater/data/EColi_obs_data.csv

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions src/eliater/data/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
from pathlib import Path

Check warning on line 1 in src/eliater/data/__init__.py

View check run for this annotation

Codecov / codecov/patch

src/eliater/data/__init__.py#L1

Added line #L1 was not covered by tests

import pandas as pd

Check warning on line 3 in src/eliater/data/__init__.py

View check run for this annotation

Codecov / codecov/patch

src/eliater/data/__init__.py#L3

Added line #L3 was not covered by tests

__all__ = [

Check warning on line 5 in src/eliater/data/__init__.py

View check run for this annotation

Codecov / codecov/patch

src/eliater/data/__init__.py#L5

Added line #L5 was not covered by tests
"load_sachs_df",
"load_ecoli_obs",
]

HERE = Path(__file__).parent.resolve()
SACHS_PATH = HERE.joinpath("sachs_discretized_2bin.csv")
ECOLI_OBS_PATH = HERE.joinpath("EColi_obs_data.csv")

Check warning on line 12 in src/eliater/data/__init__.py

View check run for this annotation

Codecov / codecov/patch

src/eliater/data/__init__.py#L10-L12

Added lines #L10 - L12 were not covered by tests


def load_sachs_df() -> pd.DataFrame:
return pd.read_csv(SACHS_PATH, index_col=0)

Check warning on line 16 in src/eliater/data/__init__.py

View check run for this annotation

Codecov / codecov/patch

src/eliater/data/__init__.py#L15-L16

Added lines #L15 - L16 were not covered by tests


def load_ecoli_obs() -> pd.DataFrame:
return pd.read_csv(ECOLI_OBS_PATH)

Check warning on line 20 in src/eliater/data/__init__.py

View check run for this annotation

Codecov / codecov/patch

src/eliater/data/__init__.py#L19-L20

Added lines #L19 - L20 were not covered by tests


Binary file added src/eliater/data/cd3cd28+g0076.xls
Binary file not shown.
Binary file added src/eliater/data/cd3cd28.xls
Binary file not shown.
Loading
Loading