Commit f8aeca2
Add coverage entry agg function (#790)
* create get_coverage_agg_func
* add dp_field arg to compute_coverage_stats and add periods to docstring
* move dp_field per copilot suggestion
* Update gnomad/utils/sparse_mt.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Add tests for get_coverage_agg_func
* Remove print statements for debugging in test_sparse_mt
* Switch to hail's NaN and remove hardocded expected value -- update tests to use transofrmed DP, not raw, as it will be used in prod
* Remove pytest import and sample_ht as it wasn't being accessed
* Remove unneeded tests and misleading test names
* Update tests/utils/test_sparse_mt.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update tests/utils/test_sparse_mt.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Remove unneeded sparse_mt test
* asked cursor to add periods to comments
* asked cursor to rename functions _ if they weren't being used
* asked cursor to remove irrelevant comment
* asked cursor to rename function and remove unncessary max_cov_bin=50 call
* unused transform_func > _
* asked cursor to remove redundant custom field name tests
* asked cursor to update test_transform_and_aggregation_integration
* improve median approx test documentation
* ask cursor to fix its comment 'accept actual behavior'
* ask cursor to fix vague > 0 assert
* add link to hail docs
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Mike Wilson <mwilson@broadinstitute.org>1 parent 5b0bdbe commit f8aeca2
2 files changed
+378
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1275 | 1275 | | |
1276 | 1276 | | |
1277 | 1277 | | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
| 1306 | + | |
| 1307 | + | |
1278 | 1308 | | |
1279 | 1309 | | |
1280 | 1310 | | |
| |||
1283 | 1313 | | |
1284 | 1314 | | |
1285 | 1315 | | |
| 1316 | + | |
1286 | 1317 | | |
1287 | 1318 | | |
1288 | 1319 | | |
| |||
1297 | 1328 | | |
1298 | 1329 | | |
1299 | 1330 | | |
1300 | | - | |
1301 | | - | |
1302 | | - | |
1303 | | - | |
| 1331 | + | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
1304 | 1335 | | |
1305 | | - | |
| 1336 | + | |
1306 | 1337 | | |
1307 | 1338 | | |
1308 | 1339 | | |
1309 | 1340 | | |
1310 | 1341 | | |
1311 | 1342 | | |
| 1343 | + | |
1312 | 1344 | | |
1313 | 1345 | | |
1314 | 1346 | | |
| |||
1331 | 1363 | | |
1332 | 1364 | | |
1333 | 1365 | | |
1334 | | - | |
1335 | | - | |
1336 | | - | |
1337 | | - | |
1338 | | - | |
1339 | | - | |
1340 | | - | |
1341 | | - | |
1342 | | - | |
1343 | | - | |
| 1366 | + | |
| 1367 | + | |
1344 | 1368 | | |
1345 | 1369 | | |
1346 | 1370 | | |
| |||
1350 | 1374 | | |
1351 | 1375 | | |
1352 | 1376 | | |
1353 | | - | |
| 1377 | + | |
1354 | 1378 | | |
1355 | 1379 | | |
1356 | 1380 | | |
| |||
0 commit comments