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

Update cas12lstmvcf.py

Browse files
Files changed (1) hide show
  1. cas12lstmvcf.py +6 -2
cas12lstmvcf.py CHANGED
@@ -278,9 +278,13 @@ def process_gene(gene_symbol, vcf_reader, model_path):
278
  print(f"Failed to retrieve gene sequence for exon {exon_id}.")
279
  else:
280
  print("Failed to retrieve transcripts.")
281
-
 
 
 
 
282
  # Sort results based on prediction score (assuming score is at the 8th index)
283
- sorted_results = sorted(results, key=lambda x: x[8], reverse=True)
284
 
285
  # Return the sorted output, combined gene sequences, and all exons
286
  return sorted_results, all_gene_sequences, all_exons
 
278
  print(f"Failed to retrieve gene sequence for exon {exon_id}.")
279
  else:
280
  print("Failed to retrieve transcripts.")
281
+
282
+ output = []
283
+ for result in results:
284
+ for item in result:
285
+ output.append(item)
286
  # Sort results based on prediction score (assuming score is at the 8th index)
287
+ sorted_results = sorted(output, key=lambda x: x[8], reverse=True)
288
 
289
  # Return the sorted output, combined gene sequences, and all exons
290
  return sorted_results, all_gene_sequences, all_exons