Skip to content
Snippets Groups Projects
Commit 2b605d34 authored by Ashrith Sagar Yedlapalli's avatar Ashrith Sagar Yedlapalli :speech_balloon:
Browse files

c0.15.22

parent b2778c11
No related branches found
No related tags found
No related merge requests found
......@@ -168,8 +168,10 @@ class mutater:
"""P&C of new_mutations. nCr approach.
Choose r mutation positions at a time, out of n mutations.
Implemented using the Cartesian product."""
sequences = itertools.product(*self.sequential_mutations)
# sequences = [x for x in itertools.product(*self.sequential_mutations)]
try:
sequences = [x for x in itertools.product(*self.sequential_mutations)]
except:
sequences = itertools.product(*self.sequential_mutations)
print("S| Converted mutations to sequences format")
self.sequences = sequences
......@@ -399,7 +401,6 @@ def main():
muts = mutations_obj.by_groups()
seqs = mutations_obj.to_sequences()
mutations_obj.show_sequences()
mutations_obj.save_sequences(output_file.replace(".txt", "_BAlsAllSeqs.txt"))
if args.dipeptide:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment