Skip to content

Commit 85f60ce

Browse files
Up_tmle_dep (#180)
* working state from_param_files * working tmle inputs tests * update from actors mode * remove old param files * rename batchsize parameter * up manifest * update option name * up TMLE to 0.11
1 parent 9744111 commit 85f60ce

21 files changed

+889
-987
lines changed

Manifest.toml

Lines changed: 74 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,12 @@ git-tree-sha1 = "c700cce799b51c9045473de751e9319bdd1c6e94"
108108
uuid = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b"
109109
version = "0.10.9"
110110

111+
[[deps.Calculus]]
112+
deps = ["LinearAlgebra"]
113+
git-tree-sha1 = "f641eb0a4f00c343bbc32346e1217b86f3ce9dad"
114+
uuid = "49dc2e85-a5d0-5ad3-a950-438e2897f1b9"
115+
version = "0.5.1"
116+
111117
[[deps.CategoricalArrays]]
112118
deps = ["DataAPI", "Future", "Missings", "Printf", "Requires", "Statistics", "Unicode"]
113119
git-tree-sha1 = "5084cc1a28976dd1642c9f337b28a3cb03e0f7d2"
@@ -122,9 +128,9 @@ version = "0.1.10"
122128

123129
[[deps.ChainRules]]
124130
deps = ["Adapt", "ChainRulesCore", "Compat", "Distributed", "GPUArraysCore", "IrrationalConstants", "LinearAlgebra", "Random", "RealDot", "SparseArrays", "Statistics", "StructArrays"]
125-
git-tree-sha1 = "7d20c2fb8ab838e41069398685e7b6b5f89ed85b"
131+
git-tree-sha1 = "8bae903893aeeb429cf732cf1888490b93ecf265"
126132
uuid = "082447d4-558c-5d27-93f4-14fc19e9eca2"
127-
version = "1.48.0"
133+
version = "1.49.0"
128134

129135
[[deps.ChainRulesCore]]
130136
deps = ["Compat", "LinearAlgebra", "SparseArrays"]
@@ -169,10 +175,10 @@ uuid = "6b39b394-51ab-5f42-8807-6242bab2b4c2"
169175
version = "0.7.2"
170176

171177
[[deps.ColorSchemes]]
172-
deps = ["ColorTypes", "ColorVectorSpace", "Colors", "FixedPointNumbers", "Random", "SnoopPrecompile"]
173-
git-tree-sha1 = "aa3edc8f8dea6cbfa176ee12f7c2fc82f0608ed3"
178+
deps = ["ColorTypes", "ColorVectorSpace", "Colors", "FixedPointNumbers", "PrecompileTools", "Random"]
179+
git-tree-sha1 = "be6ab11021cd29f0344d5c4357b163af05a48cba"
174180
uuid = "35d6a980-a343-548e-a6ea-1d62b119f2f4"
175-
version = "3.20.0"
181+
version = "3.21.0"
176182

177183
[[deps.ColorTypes]]
178184
deps = ["FixedPointNumbers", "Random"]
@@ -224,6 +230,12 @@ git-tree-sha1 = "52cb3ec90e8a8bea0e62e275ba577ad0f74821f7"
224230
uuid = "ed09eef8-17a6-5b46-8889-db040fac31e3"
225231
version = "0.3.2"
226232

233+
[[deps.Configurations]]
234+
deps = ["ExproniconLite", "OrderedCollections", "TOML"]
235+
git-tree-sha1 = "62a7c76dbad02fdfdaa53608104edf760938c4ca"
236+
uuid = "5218b696-f38b-4ac9-8b61-a12ec717816d"
237+
version = "0.17.4"
238+
227239
[[deps.ConstructionBase]]
228240
deps = ["LinearAlgebra"]
229241
git-tree-sha1 = "89a9db8d28102b094992472d333674bd1a83ce2a"
@@ -326,11 +338,23 @@ deps = ["ArgTools", "FileWatching", "LibCURL", "NetworkOptions"]
326338
uuid = "f43a241f-c20a-4ad4-852c-f6b1247861c6"
327339
version = "1.6.0"
328340

341+
[[deps.DualNumbers]]
342+
deps = ["Calculus", "NaNMath", "SpecialFunctions"]
343+
git-tree-sha1 = "5837a837389fccf076445fce071c8ddaea35a566"
344+
uuid = "fa6b7ba4-c1ee-5f82-b5fc-ecf0adba8f74"
345+
version = "0.6.8"
346+
329347
[[deps.ExprTools]]
330348
git-tree-sha1 = "c1d06d129da9f55715c6c212866f5b1bddc5fa00"
331349
uuid = "e2ba6199-217a-4e67-a87a-7c52f15ade04"
332350
version = "0.1.9"
333351

352+
[[deps.ExproniconLite]]
353+
deps = ["Pkg", "TOML"]
354+
git-tree-sha1 = "c2eb763acf6e13e75595e0737a07a0bec0ce2147"
355+
uuid = "55351af7-c7e9-48d6-89ff-24e801d99491"
356+
version = "0.7.11"
357+
334358
[[deps.FilePathsBase]]
335359
deps = ["Compat", "Dates", "Mmap", "Printf", "Test", "UUIDs"]
336360
git-tree-sha1 = "e27c4ebe80e8699540f2d6c805cc12203b614f12"
@@ -369,10 +393,10 @@ deps = ["Random"]
369393
uuid = "9fa8497b-333b-5362-9e8d-4d0656e87820"
370394

371395
[[deps.GLM]]
372-
deps = ["Distributions", "LinearAlgebra", "Printf", "Reexport", "SparseArrays", "SpecialFunctions", "Statistics", "StatsBase", "StatsFuns", "StatsModels"]
373-
git-tree-sha1 = "92b8d38886445d6d06e5f13201e57d018c4ff880"
396+
deps = ["Distributions", "LinearAlgebra", "Printf", "Reexport", "SparseArrays", "SpecialFunctions", "Statistics", "StatsAPI", "StatsBase", "StatsFuns", "StatsModels"]
397+
git-tree-sha1 = "cd3e314957dc11c4c905d54d1f5a65c979e4748a"
374398
uuid = "38e38edf-8417-5370-95a0-9cbb8c7f171a"
375-
version = "1.7.0"
399+
version = "1.8.2"
376400

377401
[[deps.GPUArrays]]
378402
deps = ["Adapt", "GPUArraysCore", "LLVM", "LinearAlgebra", "Printf", "Random", "Reexport", "Serialization", "Statistics"]
@@ -397,6 +421,12 @@ git-tree-sha1 = "734fd90dd2f920a2f1921d5388dcebe805b262dc"
397421
uuid = "3e5b6fbb-0976-4d2c-9146-d79de83f2fb0"
398422
version = "0.1.14"
399423

424+
[[deps.HypergeometricFunctions]]
425+
deps = ["DualNumbers", "LinearAlgebra", "OpenLibm_jll", "SpecialFunctions"]
426+
git-tree-sha1 = "432b5b03176f8182bd6841fbfc42c718506a2d5f"
427+
uuid = "34004b35-14d8-5ef3-9330-4cdb6864b03a"
428+
version = "0.3.15"
429+
400430
[[deps.HypothesisTests]]
401431
deps = ["Combinatorics", "Distributions", "LinearAlgebra", "Random", "Rmath", "Roots", "Statistics", "StatsBase"]
402432
git-tree-sha1 = "ae3b6964d58df11984d22644ce5546eaf20fe95d"
@@ -436,9 +466,9 @@ uuid = "41ab1584-1d38-5bbf-9106-f11c6c58b48f"
436466
version = "1.3.0"
437467

438468
[[deps.IrrationalConstants]]
439-
git-tree-sha1 = "7fd44fd4ff43fc60815f8e764c0f352b83c49151"
469+
git-tree-sha1 = "630b497eafcc20001bba38a4651b327dcfc491d2"
440470
uuid = "92d709cd-6900-40b7-9082-c6be49f344b6"
441-
version = "0.1.1"
471+
version = "0.2.2"
442472

443473
[[deps.IteratorInterfaceExtensions]]
444474
git-tree-sha1 = "a3f24677c21f5bbe9d2a714f95dcd58337fb2856"
@@ -526,22 +556,22 @@ uuid = "bdcacae8-1622-11e9-2a5c-532679323890"
526556
version = "0.12.157"
527557

528558
[[deps.LossFunctions]]
529-
deps = ["InteractiveUtils", "Markdown", "RecipesBase"]
530-
git-tree-sha1 = "f27330f931944ecee340f004302db724c1985955"
559+
deps = ["CategoricalArrays", "Markdown"]
560+
git-tree-sha1 = "d4c7ff8c7281943371e1725000fd538a699024d0"
531561
uuid = "30fc2ffe-d236-52d8-8643-a9d8f7c094a7"
532-
version = "0.8.1"
562+
version = "0.9.0"
533563

534564
[[deps.MLJBase]]
535565
deps = ["CategoricalArrays", "CategoricalDistributions", "ComputationalResources", "Dates", "DelimitedFiles", "Distributed", "Distributions", "InteractiveUtils", "InvertedIndices", "LinearAlgebra", "LossFunctions", "MLJModelInterface", "Missings", "OrderedCollections", "Parameters", "PrettyTables", "ProgressMeter", "Random", "ScientificTypes", "Serialization", "StatisticalTraits", "Statistics", "StatsBase", "Tables"]
536-
git-tree-sha1 = "37a311b0cd581764fc460f6632e6219dc32f9427"
566+
git-tree-sha1 = "e99e84c7ca1696b38e2a8823f53ac9cc775599dd"
537567
uuid = "a7f614a8-145f-11e9-1d2a-a57a1082229d"
538-
version = "0.21.8"
568+
version = "0.21.9"
539569

540570
[[deps.MLJGLMInterface]]
541-
deps = ["Distributions", "GLM", "MLJModelInterface", "Tables"]
542-
git-tree-sha1 = "87b665f79b082e15acb8def31ede049386dcb0c6"
571+
deps = ["Distributions", "GLM", "MLJModelInterface", "StatsModels", "Tables"]
572+
git-tree-sha1 = "06aba1c96b19f31744f7e97d96fcf66b79739e05"
543573
uuid = "caf8df21-4939-456d-ac9c-5fefbfb04c0c"
544-
version = "0.3.4"
574+
version = "0.3.5"
545575

546576
[[deps.MLJModelInterface]]
547577
deps = ["Random", "ScientificTypesBase", "StatisticalTraits"]
@@ -567,10 +597,10 @@ uuid = "d125e4d3-2237-4719-b19c-fa641b8a4667"
567597
version = "0.1.8"
568598

569599
[[deps.MarchingCubes]]
570-
deps = ["SnoopPrecompile", "StaticArrays"]
571-
git-tree-sha1 = "b198463d1a631e8771709bc8e011ba329da9ad38"
600+
deps = ["PrecompileTools", "StaticArrays"]
601+
git-tree-sha1 = "c8e29e2bacb98c9b6f10445227a8b0402f2f173a"
572602
uuid = "299715c1-40a9-479a-aaf9-4a633d36f717"
573-
version = "0.1.7"
603+
version = "0.1.8"
574604

575605
[[deps.Markdown]]
576606
deps = ["Base64"]
@@ -666,6 +696,12 @@ git-tree-sha1 = "a6062fe4063cdafe78f4a0a81cfffb89721b30e7"
666696
uuid = "2dfb63ee-cc39-5dd5-95bd-886bf059d720"
667697
version = "1.4.2"
668698

699+
[[deps.PrecompileTools]]
700+
deps = ["Preferences"]
701+
git-tree-sha1 = "2e47054ffe7d0a8872e977c0d09eb4b3d162ebde"
702+
uuid = "aea7be01-6a6a-4083-8856-8a6e6704d82a"
703+
version = "1.0.2"
704+
669705
[[deps.Preferences]]
670706
deps = ["TOML"]
671707
git-tree-sha1 = "47e5f437cc0e7ef2ce8406ce1e7e24d44915f88d"
@@ -713,12 +749,6 @@ git-tree-sha1 = "9f0a1b71baaf7650f4fa8a1d168c7fb6ee41f0c9"
713749
uuid = "c1ae055f-0cd5-4b69-90a6-9a35b1a98df9"
714750
version = "0.1.0"
715751

716-
[[deps.RecipesBase]]
717-
deps = ["SnoopPrecompile"]
718-
git-tree-sha1 = "261dddd3b862bd2c940cf6ca4d1c8fe593e457c8"
719-
uuid = "3cdcf5f2-1ef4-517c-9805-6587b60abb01"
720-
version = "1.3.3"
721-
722752
[[deps.Reexport]]
723753
git-tree-sha1 = "45e428421666073eab6f2da5c9d310d99bb12f9b"
724754
uuid = "189a3867-3050-52da-a836-e630ba90ab69"
@@ -750,9 +780,9 @@ version = "0.4.0+0"
750780

751781
[[deps.Roots]]
752782
deps = ["ChainRulesCore", "CommonSolve", "Printf", "Setfield"]
753-
git-tree-sha1 = "b45deea4566988994ebb8fb80aa438a295995a6e"
783+
git-tree-sha1 = "82362f2a4f756951f21ebb3ac2aed094c46a5109"
754784
uuid = "f2b01f46-fcfa-551c-844a-d8ac1e96c665"
755-
version = "2.0.10"
785+
version = "2.0.12"
756786

757787
[[deps.SHA]]
758788
uuid = "ea8e919c-243c-51af-8825-aaa63cd721ce"
@@ -869,15 +899,15 @@ version = "0.8.6"
869899

870900
[[deps.StaticArrayInterface]]
871901
deps = ["ArrayInterface", "Compat", "IfElse", "LinearAlgebra", "Requires", "SnoopPrecompile", "SparseArrays", "Static", "SuiteSparse"]
872-
git-tree-sha1 = "fd5f417fd7e103c121b0a0b4a6902f03991111f4"
902+
git-tree-sha1 = "33040351d2403b84afce74dae2e22d3f5b18edcb"
873903
uuid = "0d7ed370-da01-4f52-bd93-41d350b8b718"
874-
version = "1.3.0"
904+
version = "1.4.0"
875905

876906
[[deps.StaticArrays]]
877907
deps = ["LinearAlgebra", "Random", "StaticArraysCore", "Statistics"]
878-
git-tree-sha1 = "b8d897fe7fa688e93aef573711cb207c08c9e11e"
908+
git-tree-sha1 = "fd9a77cfd87116a27b2121c1988045f428b35a36"
879909
uuid = "90137ffa-7385-5640-81b9-e52037218182"
880-
version = "1.5.19"
910+
version = "1.5.22"
881911

882912
[[deps.StaticArraysCore]]
883913
git-tree-sha1 = "6b7ba252635a5eff6a0b0664a41ee140a1c9e72a"
@@ -907,16 +937,16 @@ uuid = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
907937
version = "0.33.21"
908938

909939
[[deps.StatsFuns]]
910-
deps = ["ChainRulesCore", "InverseFunctions", "IrrationalConstants", "LogExpFunctions", "Reexport", "Rmath", "SpecialFunctions"]
911-
git-tree-sha1 = "5950925ff997ed6fb3e985dcce8eb1ba42a0bbe7"
940+
deps = ["ChainRulesCore", "HypergeometricFunctions", "InverseFunctions", "IrrationalConstants", "LogExpFunctions", "Reexport", "Rmath", "SpecialFunctions"]
941+
git-tree-sha1 = "f625d686d5a88bcd2b15cd81f18f98186fdc0c9a"
912942
uuid = "4c63d2b9-4356-54db-8cca-17b64c39e42c"
913-
version = "0.9.18"
943+
version = "1.3.0"
914944

915945
[[deps.StatsModels]]
916946
deps = ["DataAPI", "DataStructures", "LinearAlgebra", "Printf", "REPL", "ShiftedArrays", "SparseArrays", "StatsBase", "StatsFuns", "Tables"]
917-
git-tree-sha1 = "a5e15f27abd2692ccb61a99e0854dfb7d48017db"
947+
git-tree-sha1 = "51cdf1afd9d78552e7a08536930d7abc3b288a5c"
918948
uuid = "3eaba693-59b7-5ba5-a881-562e759f1c8d"
919-
version = "0.6.33"
949+
version = "0.7.1"
920950

921951
[[deps.StringEncodings]]
922952
deps = ["Libiconv_jll"]
@@ -940,12 +970,10 @@ deps = ["Libdl", "LinearAlgebra", "Serialization", "SparseArrays"]
940970
uuid = "4607b0f0-06f3-5cda-b6b1-a6196a1729e9"
941971

942972
[[deps.TMLE]]
943-
deps = ["AbstractDifferentiation", "CategoricalArrays", "Distributions", "GLM", "HypothesisTests", "LogExpFunctions", "MLJBase", "MLJGLMInterface", "MLJModels", "Missings", "PrettyTables", "Statistics", "TableOperations", "Tables", "YAML", "Zygote"]
944-
git-tree-sha1 = "ea4ed14ea78402bcc29ff201644467a854315daa"
945-
repo-rev = "73fc566cbad8c4e0e8c96d73b3ed602ba3699e48"
946-
repo-url = "https://github.com/olivierlabayle/TMLE.jl.git"
973+
deps = ["AbstractDifferentiation", "CategoricalArrays", "Configurations", "Distributions", "GLM", "HypothesisTests", "LogExpFunctions", "MLJBase", "MLJGLMInterface", "MLJModels", "Missings", "PrettyTables", "Statistics", "TableOperations", "Tables", "YAML", "Zygote"]
974+
git-tree-sha1 = "cd8e0284a7d805d8a1ea749a9290d6799dfc19fe"
947975
uuid = "8afdd2fb-6e73-43df-8b62-b1650cd9c8cf"
948-
version = "0.10.0"
976+
version = "0.11.0"
949977

950978
[[deps.TOML]]
951979
deps = ["Dates"]
@@ -1015,10 +1043,10 @@ version = "1.0.2"
10151043
uuid = "4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5"
10161044

10171045
[[deps.UnicodePlots]]
1018-
deps = ["ColorSchemes", "ColorTypes", "Contour", "Crayons", "Dates", "LinearAlgebra", "MarchingCubes", "NaNMath", "Printf", "Requires", "SnoopPrecompile", "SparseArrays", "StaticArrays", "StatsBase"]
1019-
git-tree-sha1 = "2825e58f6ec3cab889dfa2c824f8d89b9f7ee731"
1046+
deps = ["ColorSchemes", "ColorTypes", "Contour", "Crayons", "Dates", "LinearAlgebra", "MarchingCubes", "NaNMath", "PrecompileTools", "Printf", "Requires", "SparseArrays", "StaticArrays", "StatsBase"]
1047+
git-tree-sha1 = "9fbe3fb6c4bbe4cafb5ce4d15bbec82f0077e1d5"
10201048
uuid = "b8865327-cd53-5732-bb35-84acbb429228"
1021-
version = "3.5.1"
1049+
version = "3.5.2"
10221050

10231051
[[deps.VariantCallFormat]]
10241052
deps = ["Automa", "BGZFStreams", "BioCore", "BufferedStreams"]

Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ Combinatorics = "1.0"
2424
DataFrames = "1.2"
2525
SnpArrays = "0.3"
2626
YAML = "0.4"
27+
TMLE = "0.11"

bin/tmle_inputs.jl

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function parse_commandline()
1111
"baal-nf pipeline (https://git.ecdf.ed.ac.uk/oalmelid/baal-nf), trans-actors "*
1212
" and potential additional exposures from an external trait dataset."
1313

14-
"from-param-files"
14+
"from-param-file"
1515
action = :command
1616
help = "Will assume Parameter files (see README.md) to be given."
1717

@@ -41,12 +41,10 @@ function parse_commandline()
4141
required = true
4242
help = "Path to a genetic confounders file"
4343

44-
"--phenotype-batch-size"
44+
"--batch-size"
4545
arg_type = Int
4646
required = false
47-
help = "Further performance may be obtained by batching phenotypes in a"*
48-
" single Targeted Estimation run. If not specified, all phenotypes "*
49-
"constitute a batch."
47+
help = "To split parameters in multiple files of size batch-size"
5048

5149
"--positivity-constraint"
5250
arg_type = Float64
@@ -90,10 +88,10 @@ function parse_commandline()
9088
help = "If true, genotypes are encoded as the number of minor alleles."
9189
end
9290

93-
@add_arg_table s["from-param-files"] begin
94-
"param-prefix"
91+
@add_arg_table s["from-param-file"] begin
92+
"paramfile"
9593
arg_type = String
96-
help = "Prefix to parameter files"
94+
help = "Parameter file"
9795
end
9896

9997
return parse_args(s)

0 commit comments

Comments
 (0)