-
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.
- Loading branch information
Olivier Labayle
committed
Jul 18, 2024
1 parent
58a31e1
commit fb95ee4
Showing
12 changed files
with
862 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,4 +21,4 @@ nextflow run TARGENE/targene-pipeline -profile myprofile -resume | |
```julia | ||
using LiveServer | ||
servedocs() | ||
``` | ||
``` |
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
resampling = JointStratifiedCV(patterns=[r"^rs[0-9]+"], resampling=StratifiedCV(nfolds=3)) | ||
|
||
default_models = TMLE.default_models( | ||
# For the estimation of E[Y|W, T]: continuous outcome | ||
Q_continuous = LinearRegressor(), | ||
# For the estimation of E[Y|W, T]: binary target | ||
Q_binary = LogisticClassifier(lambda=0.), | ||
# For the estimation of p(T| W) | ||
G = LogisticClassifier(lambda=0.) | ||
) | ||
|
||
ESTIMATORS = ( | ||
CV_wTMLE_GLMNET = TMLEE(models=default_models, weighted=true, resampling=resampling), | ||
CV_TMLE_GLMNET = TMLEE(models=default_models, weighted=false, resampling=resampling), | ||
CV_OSE_GLMNET = OSE(models=default_models, resampling=resampling) | ||
) |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
default_models = TMLE.default_models( | ||
# For the estimation of E[Y|W, T]: continuous outcome | ||
Q_continuous = LinearRegressor(), | ||
# For the estimation of E[Y|W, T]: binary target | ||
Q_binary = LogisticClassifier(lambda=0.), | ||
# For the estimation of p(T| W) | ||
G = LogisticClassifier(lambda=0.) | ||
) | ||
|
||
ESTIMATORS = ( | ||
wTMLE_GLMNET = TMLEE(models=default_models, weighted=true), | ||
TMLE_GLMNET = TMLEE(models=default_models, weighted=false), | ||
OSE_GLMNET = OSE(models=default_models) | ||
) |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
includeConfig 'ukb.config' | ||
|
||
params { | ||
ESTIMANDS_FILE = "test/assets/parameters/parameters.yaml" | ||
SAMPLE_GA_HITS = false // To complicated to test otherwise | ||
|
||
// Grid | ||
N_REPEATS = 3 | ||
RNGS = [0, 1, 3] | ||
SAMPLE_SIZES = [1000] | ||
ESTIMATORS = "test/assets/estimators-configs/*" | ||
|
||
// Misc | ||
POSITIVITY_CONSTRAINT = 0 | ||
BATCH_SIZE = 3 | ||
CALL_THRESHOLD = null // This is essential not to have too many missings | ||
} |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
module TestNullSimulation | ||
|
||
args = length(ARGS) > 0 ? ARGS : ["-profile", "local", "-resume"] | ||
|
||
@testset "Test Null Simulation Workflow" begin | ||
cmd = `nextflow run main.nf -entry NULL_SIMULATION -c test/configs/simulation.config $args` | ||
@info string("The following command will be run:\n", cmd) | ||
|
||
r = run(cmd) | ||
@test r.exitcode == 0 | ||
end | ||
|
||
end |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
module TestRealisticSimulation | ||
|
||
args = length(ARGS) > 0 ? ARGS : ["-profile", "local", "-resume"] | ||
|
||
@testset "Test Realistic Simulation Workflow" begin | ||
cmd = `nextflow run main.nf -entry REALISTIC_SIMULATION -c test/configs/simulation.config $args` | ||
@info string("The following command will be run:\n", cmd) | ||
|
||
r = run(cmd) | ||
@test r.exitcode == 0 | ||
end | ||
|
||
end |
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