Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Commit

Permalink
fix bug that prepends sequence id to the sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
EnricoZeilmaker committed Dec 14, 2023
1 parent b3ca9f8 commit c2a37e2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tui/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,8 @@ def send_to_server(query_files, target_files, server_url, match_score, mismatch_
sequences = query_files + target_files
sequence_files = []
for seq_name, seq_content in sequences:
seq_file = io.BytesIO(str.encode(f">{seq_name}\n{seq_content}\n"))

seq_file_name = f"{seq_name}"
sequence_files.append(("sequences", (seq_file_name, seq_file, "application/octet-stream")))
seq_file = io.BytesIO(seq_content.encode())
sequence_files.append(("sequences", (seq_name, seq_file, "application/octet-stream")))

multipart_data = {
"body": body_content,
Expand Down

0 comments on commit c2a37e2

Please sign in to comment.