|
a |
|
b/deeptrio/BUILD |
|
|
1 |
# Placeholder: load py_binary |
|
|
2 |
# Placeholder: load py_library |
|
|
3 |
# Placeholder: load py_test |
|
|
4 |
|
|
|
5 |
package( |
|
|
6 |
default_visibility = [ |
|
|
7 |
"//visibility:public", |
|
|
8 |
], |
|
|
9 |
) |
|
|
10 |
|
|
|
11 |
filegroup( |
|
|
12 |
name = "binaries", |
|
|
13 |
srcs = [ |
|
|
14 |
"make_examples", |
|
|
15 |
"//deepvariant:call_variants", |
|
|
16 |
"//deepvariant:postprocess_variants", |
|
|
17 |
"//deepvariant:vcf_stats_report", |
|
|
18 |
], |
|
|
19 |
) |
|
|
20 |
|
|
|
21 |
py_library( |
|
|
22 |
name = "dt_constants", |
|
|
23 |
srcs = ["dt_constants.py"], |
|
|
24 |
srcs_version = "PY2AND3", |
|
|
25 |
) |
|
|
26 |
|
|
|
27 |
py_library( |
|
|
28 |
name = "py_testdata", |
|
|
29 |
testonly = True, |
|
|
30 |
srcs = ["testdata.py"], |
|
|
31 |
srcs_version = "PY2AND3", |
|
|
32 |
deps = [ |
|
|
33 |
"//third_party/nucleus/testing:py_test_utils", |
|
|
34 |
], |
|
|
35 |
) |
|
|
36 |
|
|
|
37 |
py_library( |
|
|
38 |
name = "make_examples_lib", |
|
|
39 |
srcs = ["make_examples.py"], |
|
|
40 |
srcs_version = "PY2AND3", |
|
|
41 |
deps = [ |
|
|
42 |
":dt_constants", |
|
|
43 |
"//deepvariant:logging_level", |
|
|
44 |
"//deepvariant:make_examples_core", |
|
|
45 |
"//deepvariant:make_examples_options", |
|
|
46 |
"//deepvariant/protos:deepvariant_py_pb2", |
|
|
47 |
"//deepvariant/python:allelecounter", |
|
|
48 |
"//third_party/nucleus/io/python:hts_verbose", |
|
|
49 |
"//third_party/nucleus/protos:reads_py_pb2", |
|
|
50 |
"//third_party/nucleus/protos:variants_py_pb2", |
|
|
51 |
"//third_party/nucleus/util:errors", |
|
|
52 |
"//third_party/nucleus/util:proto_utils", |
|
|
53 |
"@absl_py//absl:app", |
|
|
54 |
"@absl_py//absl/flags", |
|
|
55 |
], |
|
|
56 |
) |
|
|
57 |
|
|
|
58 |
py_binary( |
|
|
59 |
name = "make_examples", |
|
|
60 |
srcs = [ |
|
|
61 |
"make_examples.py", |
|
|
62 |
], |
|
|
63 |
main = "make_examples.py", |
|
|
64 |
python_version = "PY3", |
|
|
65 |
deps = [ |
|
|
66 |
":dt_constants", |
|
|
67 |
"//deepvariant/protos:deepvariant_py_pb2", |
|
|
68 |
"//deepvariant:logging_level", |
|
|
69 |
"//deepvariant:make_examples_core", |
|
|
70 |
"//deepvariant:make_examples_options", |
|
|
71 |
"//third_party/nucleus/io/python:hts_verbose", |
|
|
72 |
"//third_party/nucleus/util:errors", |
|
|
73 |
"//third_party/nucleus/util:proto_utils", |
|
|
74 |
"@absl_py//absl/flags", |
|
|
75 |
# TODO: Figure out why we need this dep. |
|
|
76 |
"@absl_py//absl/testing:parameterized", # buildcleaner: keep |
|
|
77 |
"@absl_py//absl:app", |
|
|
78 |
], |
|
|
79 |
) |
|
|
80 |
|
|
|
81 |
py_test( |
|
|
82 |
name = "make_examples_test", |
|
|
83 |
size = "large", |
|
|
84 |
srcs = ["make_examples_test.py"], |
|
|
85 |
data = [":testdata"], |
|
|
86 |
python_version = "PY3", |
|
|
87 |
shard_count = 2, |
|
|
88 |
srcs_version = "PY2AND3", |
|
|
89 |
deps = [ |
|
|
90 |
":make_examples_lib", |
|
|
91 |
":py_testdata", |
|
|
92 |
"//deepvariant:dv_constants", |
|
|
93 |
"//deepvariant:dv_utils", |
|
|
94 |
"//deepvariant:make_examples_core", |
|
|
95 |
"//deepvariant/labeler:variant_labeler", |
|
|
96 |
"//deepvariant/protos:deepvariant_py_pb2", |
|
|
97 |
# BEGIN_INTERNAL |
|
|
98 |
"//net/proto2/contrib/pyutil:compare", |
|
|
99 |
"//third_party/nucleus/io:fasta", |
|
|
100 |
"//third_party/nucleus/io:sharded_file_utils", |
|
|
101 |
"//third_party/nucleus/io:tfrecord", |
|
|
102 |
"//third_party/nucleus/io:vcf", |
|
|
103 |
"//third_party/nucleus/protos:reads_py_pb2", |
|
|
104 |
"//third_party/nucleus/protos:reference_py_pb2", |
|
|
105 |
"//third_party/nucleus/protos:variants_py_pb2", |
|
|
106 |
"//third_party/nucleus/testing:py_test_utils", |
|
|
107 |
"//third_party/nucleus/util:ranges", |
|
|
108 |
"//third_party/nucleus/util:variant_utils", |
|
|
109 |
"//third_party/nucleus/util:variantcall_utils", |
|
|
110 |
"//third_party/nucleus/util:vcf_constants", |
|
|
111 |
"@absl_py//absl/flags", |
|
|
112 |
"@absl_py//absl/logging", |
|
|
113 |
"@absl_py//absl/testing:absltest", |
|
|
114 |
"@absl_py//absl/testing:flagsaver", |
|
|
115 |
"@absl_py//absl/testing:parameterized", |
|
|
116 |
], |
|
|
117 |
) |