Wrote simple annotation test

This commit is contained in:
2025-01-02 21:28:45 +00:00
parent a9ae193cdc
commit aa2d494bee
4 changed files with 58410 additions and 20 deletions

View File

@@ -1,6 +1,11 @@
from mlstmyfasta.engine.annotations import fetch_ncbi_genbank
from mlstmyfasta.engine.annotations import annotate_from_genbank, fetch_ncbi_genbank
from Bio import SeqIO
from mlstmyfasta.engine.data.genomics import AnnotatedString
async def test_fetch_ncbi_genbank_with_id_works():
assert len((await fetch_ncbi_genbank("CP011448.1")).coding) > 0
assert len((await fetch_ncbi_genbank("CP011448.1")).sequence) > 0
async def test_annotate_from_genbank_results_in_annotations():
sequence = SeqIO.read("tests/resources/tohama_I_bpertussis.fasta", "fasta").seq
assert (await annotate_from_genbank("CP011448.1", str(sequence))) is AnnotatedString

File diff suppressed because it is too large Load Diff