-
Notifications
You must be signed in to change notification settings - Fork 6
/
fixtures.py
52 lines (34 loc) · 1001 Bytes
/
fixtures.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
from pathlib import Path
from types import SimpleNamespace
from pyfixtures import fixture
@fixture
def intermediate():
"""A namespace for storing intermediate values."""
return SimpleNamespace(
isolate_high_scores={},
to_otus=set(),
)
@fixture
def isolate_path(work_path: Path):
path = work_path / "isolates"
path.mkdir()
return path
@fixture
def isolate_fasta_path(isolate_path: Path):
return isolate_path / "isolate_index.fa"
@fixture
def isolate_fastq_path(isolate_path: Path):
return isolate_path / "isolate_mapped.fq"
@fixture
def isolate_index_path(isolate_path: Path):
return isolate_path / "isolates"
@fixture
def isolate_sam_path(isolate_path: Path):
return isolate_path / "to_isolates.sam"
@fixture
def p_score_cutoff():
return 0.01
@fixture
def subtracted_sam_path(work_path: Path) -> Path:
"""The path to the SAM file after subtraction reads have been eliminated."""
return work_path / "subtracted.sam"