NiniCat LfOreVEr commited on
Commit
c84ccaf
1 Parent(s): 0ee028c

Update cas9attvcf.py (#12)

Browse files

- Update cas9attvcf.py (afc5040a7d049b347c178c6695dbe252b0833f5b)


Co-authored-by: Qingyang Liu <LfOreVEr@users.noreply.huggingface.co>

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