seismicrna.mask.tests package
Submodules
- class seismicrna.mask.tests.main_test.TestMask(*args, **kwargs)
Bases:
TestCase,ABC- dataset(*, count_del: bool = True, count_ins: bool = True, mask_polya: int = 0, probe: str = 'none', mask_a: bool | None = None, mask_c: bool | None = None, mask_g: bool | None = None, mask_u: bool | None = None, mask_discontig: bool = False, min_ncov_read: int = 1, min_fcov_read: float = 0.0, min_finfo_read: float = 0.0, max_fmut_read: float = 1.0, min_mut_gap: int = 0, min_ninfo_pos: int = 1, max_fmut_pos: float = 1.0, **kwargs)
- setUp()
Hook method for setting up the test fixture before exercising it.
- tearDown()
Hook method for deconstructing the test fixture after testing it.
- class seismicrna.mask.tests.main_test.TestMask1Batch(*args, **kwargs)
-
- classmethod reads_per_batch()
Number of reads per batch.
- class seismicrna.mask.tests.main_test.TestMask1Sample(*args, **kwargs)
-
- classmethod reads_per_sample()
Number of reads per sample.
- class seismicrna.mask.tests.main_test.TestMask2Samples(*args, **kwargs)
-
- classmethod reads_per_sample()
Number of reads per sample.
- class seismicrna.mask.tests.main_test.TestMaskBatches(*args, **kwargs)
-
- classmethod reads_per_batch()
Number of reads per batch.
- class seismicrna.mask.tests.main_test.TestMaskPaired(*args, **kwargs)
-
- classmethod end3s()
3’ end coordinates.
- classmethod end5s()
5’ end coordinates.
- class seismicrna.mask.tests.main_test.TestMaskSingle(*args, **kwargs)
-
- classmethod end3s()
3’ end coordinates.
- classmethod end5s()
5’ end coordinates.
- class seismicrna.mask.tests.main_test.TestMaskSingle1Sample1Batch(*args, **kwargs)
Bases:
TestMaskSingle,TestMask1Sample,TestMask1Batch- test_dms_min_ncov_read_5()
- test_dms_min_ncov_read_6()
- test_mask_a()
- test_mask_all_muts_min_ncov_read_7()
- test_mask_c()
- test_mask_discontig()
- test_mask_dms()
- test_mask_dms_mask_a()
- test_mask_dms_mask_c()
- test_mask_dms_nomask_g()
- test_mask_dms_nomask_u()
- test_mask_etc()
- test_mask_etc_mask_g()
- test_mask_etc_mask_u()
- test_mask_etc_nomask_a()
- test_mask_etc_nomask_c()
- test_mask_g()
- test_mask_polya_3()
- test_mask_polya_4()
- test_mask_pos()
- test_mask_pos_all()
- test_mask_pos_and_mask_pos_file()
- test_mask_pos_file()
- test_mask_pos_files()
- test_mask_pos_min_ncov_read_5()
- test_mask_pos_min_ncov_read_6()
- test_mask_pos_multiple()
- test_mask_read()
- test_mask_read_and_mask_read_file()
- test_mask_read_file()
- test_mask_read_files()
- test_mask_shape()
- test_mask_u()
- test_min_fcov_read_amplicons()
Two-PCR-amplicon scenario: filter reads that partially cover the useful region.
Positions 1 and 8 simulate 5’ and 3’ primers and are masked. Kept region after primer masking: positions 2-7 (6 nt, region.size=6).
Read5 (start=3, end=8) represents a read from an adjacent amplicon that begins inside amplicon A’s primer region. After masking position 8 (3’ primer), it covers positions 3-7 = 5/6 ≈ 0.83 → filtered.
All other reads start at position 1 or 2 and end at position 7 or 8, so after primer masking they each cover all 6 kept positions (positions 2-7) → fcov = 1.0 → kept.
- test_min_finfo_read_1()
- test_min_ncov_read_6()
- test_min_ncov_read_7()
- test_min_ncov_read_8()
- test_nomask()
- seismicrna.mask.tests.main_test.extract_positions(dataset: MaskMutsDataset)
- seismicrna.mask.tests.main_test.extract_read_nums(dataset: MaskMutsDataset)