Skip to content

Commit

Permalink
Instantiate empty sequence from FASTA file
Browse files Browse the repository at this point in the history
  • Loading branch information
rvosa committed Aug 29, 2024
1 parent d3b9256 commit d9cc428
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/test_taxonomy.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import requests
import tempfile
from pathlib import Path
from Bio import SeqRecord
from barcode_validator.alignment import parse_fasta
from barcode_validator.config import Config
from barcode_validator.taxonomy import read_bold_taxonomy, read_ncbi_taxonomy, get_tip_by_processid, run_localblast

Expand Down Expand Up @@ -40,7 +40,10 @@ def test_get_tip_by_processid(bold_tree):


def test_none_sequence_blast():
seq = SeqRecord.SeqRecord('')
current_dir = Path(__file__).parent
example_fasta = current_dir.parent / 'examples' / 'empty_seq.fa'
result = list(parse_fasta(example_fasta))
seq = result[0][1]
con = Config()
con.initialized = True
con.config_data = {"constrain": "family"}
Expand Down

0 comments on commit d9cc428

Please sign in to comment.