Skip to content

Commit

Permalink
Add convert seq if one string is passed to one elem in list input
Browse files Browse the repository at this point in the history
  • Loading branch information
choang committed Oct 6, 2023
1 parent d23cce0 commit f9c496d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gget/gget_diamond.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ def create_input_file(sequences):
Returns: input file absolute path
"""
# print(f"sequences for input file{sequences}")
if type(sequences) == str:
sequences = [sequences]

with open(f"tmp_{RANDOM_ID}.fa", "w") as f:
for idx, seq in enumerate(sequences):
f.write(f">Seq {idx}\n{seq}\n")
Expand Down

0 comments on commit f9c496d

Please sign in to comment.