Skip to content
Snippets Groups Projects
Commit 3dfc55e8 authored by Mika Cankosyan's avatar Mika Cankosyan
Browse files

output in sorted order of number of times occured

parent 61028b6b
No related branches found
No related tags found
No related merge requests found
'''
notes
maybe output them in order by how many times occured or make some kind of graph
also maybe run loop to give option to try multiple diff things w/ same rna sequence w/o rerunning
also maybe give option for them to choose the scores_to_weights
'''
......@@ -276,7 +275,8 @@ if (probabilistic):
coded_list_strs = [result[0] for result in results]
coded_list_strs_and_counts = Counter(coded_list_strs)
for coded_list_str, count in coded_list_strs_and_counts.items():
sorted_coded_list_strs_and_counts = sorted(coded_list_strs_and_counts.items(), key = lambda x: x[1], reverse = True)
for coded_list_str, count in sorted_coded_list_strs_and_counts:
print(coded_list_str)
print(results[coded_list_strs.index(coded_list_str)][1])
......
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