LfOreVEr commited on
Commit
afc5040
1 Parent(s): 56b7c8f

Update cas9attvcf.py

Browse files
Files changed (1) hide show
  1. cas9attvcf.py +6 -1
cas9attvcf.py CHANGED
@@ -325,8 +325,13 @@ def process_gene(gene_symbol, vcf_reader, model_path):
325
  else:
326
  print("Failed to retrieve transcripts.")
327
 
 
 
 
 
 
328
  # Sort results based on prediction score (assuming score is at the 8th index)
329
- sorted_results = sorted(results, key=lambda x: x[8], reverse=True)
330
 
331
  # Return the sorted output, combined gene sequences, and all exons
332
  return sorted_results, all_gene_sequences, all_exons
 
325
  else:
326
  print("Failed to retrieve transcripts.")
327
 
328
+ output = []
329
+ for result in results:
330
+ for item in result:
331
+ output.append(item)
332
+
333
  # Sort results based on prediction score (assuming score is at the 8th index)
334
+ sorted_results = sorted(output, key=lambda x: x[8], reverse=True)
335
 
336
  # Return the sorted output, combined gene sequences, and all exons
337
  return sorted_results, all_gene_sequences, all_exons