-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from TARGENE/treatment_values
For 0.9 release
- Loading branch information
Showing
37 changed files
with
1,006 additions
and
655 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,66 +1,8 @@ | ||
# TargetedEstimation | ||
# TMLECLI | ||
|
||
[](https://targene.github.io/TargetedEstimation.jl/stable/) | ||
 | ||
 | ||
 | ||
[](https://targene.github.io/TMLE-CLI.jl/stable/) | ||
 | ||
 | ||
 | ||
|
||
This package provides two command line interfaces used mainly in the context of TarGene: | ||
1. `scripts/tmle.jl`: To run Targeted Maximum Likelihood Estimation | ||
1. `scripts/sieve_variance.jl`: To run sieve variance correction to account for potential non iid data. | ||
|
||
## Usage | ||
|
||
The best way to use the command lines is to use the associated [docker image](https://hub.docker.com/r/olivierlabayle/targeted-estimation/tags). Command line arguments can be displayed by: | ||
|
||
### tmle.jl | ||
|
||
To display command line arguments: | ||
|
||
```bash | ||
julia --project=/TargetedEstimation.jl --startup-file=no scripts/tmle.jl --help | ||
``` | ||
|
||
### sieve_variance.jl | ||
|
||
This requires an HDF5 file output by `tmle.jl` and the Genetic Relationship Matrix output by the GCTA software. | ||
|
||
To display command line arguments: | ||
|
||
```bash | ||
julia --project=/TargetedEstimation.jl --startup-file=no scripts/sieve_variance.jl --help | ||
``` | ||
|
||
## Experiments | ||
|
||
The `experiments` contains various experiments related to genetic association studies: GWAS' and PheWAS'. | ||
|
||
### GWAS Runtime | ||
|
||
The goal of this experiment is to estimate the running time of TMLE in a GWAS setting. Because the propensity score estimation runtime varies for various SNPs, this is done by running TMLE over 100 SNPs. We estimate the runtime for both a continuous and a binary target and for 4 nuisance parameters specifications: GLM, GLMNet, CrossValidatedXGBoost, Super Learning(GLMNet+CrossValidatedXGBoost). Cross validations selections are performed over 3-folds. | ||
|
||
- Associated data: Restricted access. On the University of Edinburgh datastore, `/exports/igmm/datastore/ponting-lab/olivier/misc_datasets/gwas_sample_data.csv` | ||
|
||
- Associated script: [experiments/gwas_runtime.jl](experiments/gwas_runtime.jl). | ||
|
||
- Julia script usage: `julia --project --startup-file=no experiments/gwas_runtime.jl --help` | ||
|
||
- Bash script (to submit jobs on the Eddie cluster): | ||
- `qsub experiments/gwas_unit_binary.sh` | ||
- `qsub experiments/gwas_unit_continuous.sh` | ||
|
||
### PheWAS Runtime | ||
|
||
The goal of this experiment is to estimate the running time of TMLE in a PheWAS setting. Since the propensity score is estimated only once, it is not driving runtime. The PheWAS is perfomed over more than 760 traits and for 4 nuisance parameters specifications: GLM, GLMNet, CrossValidatedXGBoost, Super Learning(GLMNet+CrossValidatedXGBoost). Cross validations selections are performed over 3-folds. | ||
|
||
- Associated data: Restricted access. On the University of Edinburgh datastore, `/exports/igmm/datastore/ponting-lab/olivier/misc_datasets/sample_ukb_data.csv` | ||
|
||
- Associated script: [experiments/phewas_runtime.jl](experiments/phewas_runtime.jl). | ||
|
||
- Julia script usage: `julia --project --startup-file=no experiments/phewas_runtime.jl --help` | ||
|
||
- Bash scripts (to submit jobs on the Eddie cluster): | ||
- `qsub experiments/phewas_glm.sh` | ||
- `qsub experiments/phewas_glmnet.sh` | ||
- `qsub experiments/phewas_xgboost.sh` | ||
- `qsub experiments/phewas_sl.sh` | ||
Command Line Interface for Targeted Minimum-Loss Estimation of causal effects on Tabular datasets. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
using TargetedEstimation | ||
using TMLECLI | ||
|
||
@info "Running precompilation script." | ||
# Run workload | ||
TEST_DIR = joinpath(pkgdir(TargetedEstimation), "test") | ||
TEST_DIR = joinpath(pkgdir(TMLECLI), "test") | ||
push!(LOAD_PATH, TEST_DIR) | ||
include(joinpath(TEST_DIR, "runtests.jl")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
0161a34
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register
0161a34
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Registration pull request created: JuliaRegistries/General/113582
Tip: Release Notes
Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.
To add them here just re-invoke and the PR will be updated.
Tagging
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:
Also, note the warning: This looks like a new registration that registers version 0.9.0.
Ideally, you should register an initial release with 0.0.1, 0.1.0 or 1.0.0 version numbers
This can be safely ignored. However, if you want to fix this you can do so. Call register() again after making the fix. This will update the Pull request.