Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix install and test #71

Merged
merged 1 commit into from
Nov 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions fgpyo/fasta/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def samtools_dict(*args: Any) -> None:
def samtools_faidx(*args: Any) -> None:
pass


else:
from pysam import dict as samtools_dict
from pysam import faidx as samtools_faidx
Expand Down
13 changes: 7 additions & 6 deletions fgpyo/util/tests/test_metric.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,12 +321,13 @@ def test_metric_list_parse_with_none() -> None:
)


def test_metrics_fast_concat(tmpdir: TmpDir) -> None:
path_input = []
path_input.append(Path(tmpdir) / "metrics_1.txt")
path_input.append(Path(tmpdir) / "metrics_2.txt")
path_input.append(Path(tmpdir) / "metrics_3.txt")
path_output: Path = Path(tmpdir) / "metrics_concat.txt"
def test_metrics_fast_concat(tmp_path: Path) -> None:
path_input = [
tmp_path / "metrics_1.txt",
tmp_path / "metrics_2.txt",
tmp_path / "metrics_3.txt",
]
path_output: Path = tmp_path / "metrics_concat.txt"

DummyMetric.write(path_input[0], DUMMY_METRICS[0])
DummyMetric.write(path_input[1], DUMMY_METRICS[1])
Expand Down
56 changes: 31 additions & 25 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ attrs = ">=19.3.0"
typing_extensions = { version = ">=3.7.4", python = "<3.8" } # Literal support
typing_inspect = { version = ">=0.3.1", python = "<3.8" } # inspecting types
sphinx = {version = "4.3.1", optional = true}
pysam = ">=0.20.0"
sphinx_rtd_theme = {version = "^1.3.0", optional = true}
pysam = ">=0.22.0"

[tool.poetry.extras]
docs = ["sphinx", "sphinx_rtd_theme"]
Expand Down
Loading