diff --git a/gget/gget_diamond.py b/gget/gget_diamond.py index e7a53461..5c99a4e8 100644 --- a/gget/gget_diamond.py +++ b/gget/gget_diamond.py @@ -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")