NiniCat LfOreVEr commited on
Commit
9ad0b46
1 Parent(s): 77b771b

Update cas12lstmvcf.py (#14)

Browse files

- Update cas12lstmvcf.py (5930d024e63d185f721ec4106dc2e4a8a85076bd)


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

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