From 1d4185fbc0ed9c7c35a13906ab0328ae56c73497 Mon Sep 17 00:00:00 2001 From: LaraFuhrmann <55209716+LaraFuhrmann@users.noreply.github.com> Date: Thu, 23 Nov 2023 14:51:03 +0100 Subject: [PATCH] [unit tests] update commands --- tests/data_1/shotgun_test.sh | 2 +- tests/data_5/shotgun_prepare.sh | 2 +- tests/test_b2w.py | 2 +- tests/test_b2w_mapping.py | 2 +- tests/test_envp_post.py | 2 +- tests/test_pooled_post.py | 4 ++-- tests/test_pooled_pre.py | 4 ++-- tests/test_shorah_snv.py | 4 ++-- tests/test_tiling.py | 2 +- 9 files changed, 12 insertions(+), 12 deletions(-) diff --git a/tests/data_1/shotgun_test.sh b/tests/data_1/shotgun_test.sh index 0ac3749..77925d3 100755 --- a/tests/data_1/shotgun_test.sh +++ b/tests/data_1/shotgun_test.sh @@ -1,4 +1,4 @@ #!/bin/bash -shorah shotgun -a 0.1 -w 201 -x 100000 -p 0.9 -c 0 \ +viloca run -a 0.1 -w 201 -x 100000 -p 0.9 -c 0 \ -r HXB2:2469-3713 -R 42 -f test_ref.fasta -b test_aln.cram --out_format csv "$@" diff --git a/tests/data_5/shotgun_prepare.sh b/tests/data_5/shotgun_prepare.sh index 81564db..0ce7749 100755 --- a/tests/data_5/shotgun_prepare.sh +++ b/tests/data_5/shotgun_prepare.sh @@ -1,3 +1,3 @@ #!/bin/bash -shorah shotgun -a 0.1 -w 42 -x 100000 -p 0.9 -c 0 -r REF:43-273 -R 42 -b test_aln.cram -f ref.fasta +viloca run -a 0.1 -w 42 -x 100000 -p 0.9 -c 0 -r REF:43-273 -R 42 -b test_aln.cram -f ref.fasta diff --git a/tests/test_b2w.py b/tests/test_b2w.py index c41609a..7a3dd8e 100644 --- a/tests/test_b2w.py +++ b/tests/test_b2w.py @@ -2,7 +2,7 @@ import filecmp import os import glob -from shorah import b2w, tiling +from viloca import b2w, tiling import math import libshorah diff --git a/tests/test_b2w_mapping.py b/tests/test_b2w_mapping.py index ad5767c..6a0fb84 100644 --- a/tests/test_b2w_mapping.py +++ b/tests/test_b2w_mapping.py @@ -1,7 +1,7 @@ from array import array import pytest from cigar import Cigar -from shorah import b2w +from viloca import b2w import hashlib class MockAlignedSegment: diff --git a/tests/test_envp_post.py b/tests/test_envp_post.py index 205ed05..d4b4fb3 100644 --- a/tests/test_envp_post.py +++ b/tests/test_envp_post.py @@ -1,5 +1,5 @@ from unittest.mock import patch, mock_open -from shorah import envp_post +from viloca import envp_post DEFAULT_MOCK_DATA = "default mock data" diff --git a/tests/test_pooled_post.py b/tests/test_pooled_post.py index f491ba5..7baf31c 100644 --- a/tests/test_pooled_post.py +++ b/tests/test_pooled_post.py @@ -1,5 +1,5 @@ from unittest.mock import patch, mock_open -from shorah import pooled_post +from viloca import pooled_post import numpy as np DEFAULT_MOCK_DATA = "default mock data" @@ -48,4 +48,4 @@ def open_side_effect(name): # open("debug/w-HXB2-2938-3138.dbg"), # open("support/w-HXB2-2938-3138.reads-support.fas"), # open("corrected/w-HXB2-2938-3138.reads-cor.fas"), -# "shorah") # TODO \ No newline at end of file +# "shorah") # TODO diff --git a/tests/test_pooled_pre.py b/tests/test_pooled_pre.py index ce36024..dbe59ab 100644 --- a/tests/test_pooled_pre.py +++ b/tests/test_pooled_pre.py @@ -1,6 +1,6 @@ import pysam import os -from shorah import pooled_pre +from viloca import pooled_pre def test__annotate_alignment_file(): out = "out.bam" @@ -48,4 +48,4 @@ def test_pre_process_pooled(): os.remove(out + ".bai") assert a[0] == a[1] != 0 - assert a[2] == 0 \ No newline at end of file + assert a[2] == 0 diff --git a/tests/test_shorah_snv.py b/tests/test_shorah_snv.py index 56b0166..4967b55 100644 --- a/tests/test_shorah_snv.py +++ b/tests/test_shorah_snv.py @@ -1,5 +1,5 @@ import pytest -from shorah.shorah_snv import _compare_ref_to_read, SNP_id, SNV +from viloca.shorah_snv import _compare_ref_to_read, SNP_id, SNV @pytest.mark.parametrize("ref, seq, spec", [ @@ -39,4 +39,4 @@ def test_compare_ref_to_read(ref, seq, spec): assert snp == spec - assert tot_snv == len(snp) \ No newline at end of file + assert tot_snv == len(snp) diff --git a/tests/test_tiling.py b/tests/test_tiling.py index f44d66f..89e38fc 100644 --- a/tests/test_tiling.py +++ b/tests/test_tiling.py @@ -1,4 +1,4 @@ -from shorah import tiling +from viloca import tiling import pytest def test_equispaced():