-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* okay import fixed and fixed proteinRecord Test * working on fixing the fetcher not working but fixed al lot of wrong refences * okay fixeed protein record and test * API update * ruff is happy now with the test * API update * all work with simple test * API update * fix circular import * API update * move `ProteinRecord` into functions * move `ProteinRecord` into functions * added test to detect circular imports * API update * enabled tests upon PR * API update * use `psycopg2-binary` to prevent missing bins * API update * API update * API update * tests for alignment * API update * fix circular import * remove literals * API update --------- Co-authored-by: Niklas Abraham <[email protected]> Co-authored-by: sdRDM Bot <[email protected]> Co-authored-by: Jan Range <[email protected]> Co-authored-by: Max Häußler <[email protected]> Co-authored-by: max <[email protected]>
- Loading branch information
1 parent
8390fb4
commit fd8c319
Showing
20 changed files
with
92 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
|
||
# Generated by CodiumAI | ||
from pyeed.align.clustalo import ClustalOmega | ||
from pytest_mock import mocker | ||
|
||
|
||
import pytest | ||
|
||
class TestClustalOmega: | ||
|
||
# ClustalOmega aligns multiple sequences and returns the alignment result. | ||
def test_align_multiple_sequences(self): | ||
# Arrange | ||
sequences = ["ATCG", "GCTA", "TTAA"] | ||
clustal_omega = ClustalOmega() | ||
|
||
# Act | ||
alignment = clustal_omega.align(sequences) | ||
|
||
# Assert | ||
assert isinstance(alignment, MultipleSeqAlignment) | ||
assert len(alignment) == len(sequences) | ||
|
||
# ClustalOmega fails to get the image from Docker Hub. | ||
def test_fail_to_get_image_from_docker_hub(self): | ||
# Arrange | ||
clustal_omega = ClustalOmega() | ||
clustal_omega._client.images.get.side_effect = docker.errors.ImageNotFound | ||
|
||
# Act and Assert | ||
with pytest.raises(Exception): | ||
clustal_omega.run_container(command="", data=[]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
|
||
# Generated by CodiumAI | ||
from pyeed.core.alignment import Alignment | ||
from pyeed.align.hmm import HMM | ||
|
||
|
||
import pytest | ||
|
||
class TestHMM: | ||
|
||
# HMM can be initialized with a name and an Alignment object | ||
def test_initialized_with_name_and_alignment(self): | ||
alignment = Alignment() | ||
alignment.add_to_input_sequences(source_id="seq1", sequence="ATCG") | ||
alignment.add_to_input_sequences(source_id="seq2", sequence="GCTA") | ||
|
||
hmm = HMM(name="test_hmm", alignment=alignment) | ||
|
||
assert hmm.name == "test_hmm" | ||
assert hmm.alignment == alignment | ||
assert hmm.model is None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters