Tested annotation alignment system
This commit is contained in:
0
tests/mlstmyfasta/engine/external/databases/institutpasteur/test_access.py
vendored
Normal file
0
tests/mlstmyfasta/engine/external/databases/institutpasteur/test_access.py
vendored
Normal file
@@ -6,7 +6,10 @@ from mlstmyfasta.engine.data.genomics import AnnotatedString
|
||||
async def test_fetch_ncbi_genbank_with_id_works():
|
||||
assert len((await fetch_ncbi_genbank("CP011448.1")).sequence) > 0
|
||||
|
||||
async def test_annotate_from_genbank_results_in_annotations():
|
||||
async def test_annotate_from_genbank_for_adk_annotation():
|
||||
sequence = SeqIO.read("tests/resources/tohama_I_bpertussis.fasta", "fasta").seq
|
||||
annotated_sequence = await annotate_from_genbank("CP011448.1", "bpertussis_tohamaI", str(sequence))
|
||||
assert annotated_sequence is AnnotatedString
|
||||
annotated_sequence = await annotate_from_genbank("CP011448.1", "bpertussis_tohamaI", str(sequence), max_annotation_length=750, gene_targets=set(["adk"]))
|
||||
assert isinstance(annotated_sequence, AnnotatedString)
|
||||
assert len(annotated_sequence.annotations) >= 1
|
||||
assert annotated_sequence.annotations[0].type == "gene"
|
||||
assert "adk" in annotated_sequence.annotations[0].feature_properties["gene"]
|
||||
|
Reference in New Issue
Block a user