seismicrna.tests package

Submodules

class seismicrna.tests.main_test.TestStartupImports(methodName='runTest')

Bases: TestCase

test_no_heavy_deps_at_startup()

Importing seismicrna.main must not load any heavy dependencies.

class seismicrna.tests.wf_test.TestWorkflow(*args, **kwargs)

Bases: TestCase

property out_dir
setUp()

Hook method for setting up the test fixture before exercising it.

property sim_dir
tearDown()

Hook method for deconstructing the test fixture after testing it.

test_wf_sim_2samples_2refs_20000reads_2clusts()
test_wf_sim_2samples_2refs_20000reads_2clusts_cli()
class seismicrna.tests.wf_test.TestWorkflowTwoOutDirs(*args, **kwargs)

Bases: TestCase

CJOINED = 'cjoined_region'
MJOINED = 'mjoined_region'
NUMBERS = [1, 2]
POOLED = 'pooled_sample'
REF = 'test_ref'
REFS = 'test_refs'
SAMPLE = 'test_sample'
check_no_identical(files: Iterable[str | Path], binary: bool)

Confirm no two files have identical contents.

property out_dir
property out_dirs
setUp()

Hook method for setting up the test fixture before exercising it.

property sim_dir
property sim_dirs
tearDown()

Hook method for deconstructing the test fixture after testing it.

test_self_contained_filter_and_cluster()

Filter and cluster batches written with self_contained=True carry full mutation data and load correctly from the self-contained path.

test_wf_two_out_dirs()
seismicrna.tests.wf_test.action_branch_steps(action: str)

Steps whose branches apply to the table underlying a graph action.

seismicrna.tests.wf_test.cmp_cmd_dir(step: str, steps1, steps2)

Name of a comparison command directory, mirroring the branch logic of TwoTableGraph.branches for two operands branched by steps1/steps2.

seismicrna.tests.wf_test.fold_branch_steps(profile_or_action: str)

Steps whose branches apply to a folded profile / ROC graph, given the profile (“average”/”cluster-…”) or action (“filtered”/”clustered-…”).

seismicrna.tests.wf_test.list_actions(num_structs: int)
seismicrna.tests.wf_test.list_profiles(num_structs: int)
seismicrna.tests.wf_test.list_step_dir_contents(parent_dir: Path, step: str, num_batches: int, write_read_names: bool = True)
seismicrna.tests.wf_test.wf_cmd_dir(step: str, *branch_steps: str)

Name of a command directory (e.g. “filter_ba_bi_bf”) for step, branched by the given ordered steps (using WF_BRANCHES).