TestResults¶
questvar._api.TestResults ¶
Container for equivalence test results.
Attributes:
| Name | Type | Description |
|---|---|---|
data |
DataFrame
|
Per-feature results with columns: feature_id, n1, n2, log2fc, average, df_p, df_adjp, eq_p, eq_adjp, comb_p, comb_adjp, log10_pval, log10_adj_pval, status. Only features that passed the CV filter are included. |
config |
TestConfig
|
Configuration used for the analysis. |
cond_1, cond_2 |
list of str
|
Condition column names. |
info |
DataFrame
|
Per-feature CV filter status and overall status for all input features, including those excluded by the CV filter. |
Source code in src/questvar/_api.py
442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 | |
Functions¶
plot ¶
Generate the 8-panel summary figure. Delegates to plot_summary().
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
**kwargs
|
Any
|
Passed to questvar.plot.summary.plot_summary. |
{}
|
Returns:
| Type | Description |
|---|---|
Figure
|
|
Source code in src/questvar/_api.py
save ¶
Save power analysis results to a file.
.json output saves the full payload (design_grid, run_metrics, search_results, diagnostics). .parquet/.csv/.tsv saves only the design_grid with a metadata sidecar.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str
|
Output path with .parquet, .csv, .tsv, or .json extension. |
required |
Raises:
| Type | Description |
|---|---|
ValueError
|
If the file extension is not supported. |
Source code in src/questvar/_api.py
load
classmethod
¶
Load saved results from a file with its sidecar files.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str
|
Path to the saved data file (.parquet, .csv, .tsv). Sidecar files must exist alongside. |
required |
Returns:
| Type | Description |
|---|---|
TestResults
|
|
Raises:
| Type | Description |
|---|---|
FileNotFoundError
|
If the sidecar info or metadata file is missing. |
ValueError
|
If the metadata JSON is invalid, or columns are missing. |
Source code in src/questvar/_api.py
summary ¶
Return a text summary of the power analysis results.
Reports design point count, Monte Carlo runs, convergence diagnostics, grouped parameter ranges with power/SEI ranges, and recommended designs from the search results.
Returns:
| Type | Description |
|---|---|
str
|
|