VyLala commited on
Commit
9c76afd
·
verified ·
1 Parent(s): 8e09413

Update mtdna_backend.py

Browse files
Files changed (1) hide show
  1. mtdna_backend.py +13 -13
mtdna_backend.py CHANGED
@@ -249,20 +249,20 @@ async def summarize_results(accession, stop_flag=None, niche_cases=None):
249
  if niche_cases:
250
  niche_cases = ", ".join(niche_cases)
251
  print("this is niche case inside summarize result: ", niche_cases)
252
- #outputs = await pipeline_classify_sample_location_cached(accession, stop_flag, save_df, niche_cases)
253
  print("do the dummy output")
254
- outputs = {"KY680825":{'isolate': 'NAT107',
255
- 'country':
256
- {'ecuador': ['ncbi',
257
- 'rag_llm-The geographic location "Ecuador" is explicitly listed under "geo_loc_name" for the isolate NAT107. The text mentions "217 novel modern mitogenomes", indicating the sample is from a living individual.']},
258
- 'sample_type':
259
- {'modern': ['rag_llm-The geographic location "Ecuador" is explicitly listed under "geo_loc_name" for the isolate NAT107. The text mentions "217 novel modern mitogenomes", indicating the sample is from a living individual.']},
260
- 'query_cost': '0.000941', 'time_cost': '9.246 seconds',
261
- 'source': ['https://doi.org/10.1093/molbev/msx267', 'https://pubmed.ncbi.nlm.nih.gov/29099937/'],
262
- 'file_chunk': 'The_Paleo-Indian_Entry_into_South_America_Accordin_merged_document.docx',
263
- 'file_all_output': 'The_Paleo-Indian_Entry_into_South_America_Accordin_all_merged_document.docx',
264
- 'signals': {'has_geo_loc_name': True, 'has_pubmed': True, 'accession_found_in_text': True, 'predicted_country': 'ecuador', 'genbank_country': 'ecuador', 'num_publications': 3, 'missing_key_fields': False, 'known_failure_pattern': False}}
265
- }
266
  if stop_flag is not None and stop_flag.value:
267
  print(f"🛑 Skipped {accession} mid-pipeline.")
268
  return []
 
249
  if niche_cases:
250
  niche_cases = ", ".join(niche_cases)
251
  print("this is niche case inside summarize result: ", niche_cases)
252
+ outputs = await pipeline_classify_sample_location_cached(accession, stop_flag, save_df, niche_cases)
253
  print("do the dummy output")
254
+ # outputs = {"KY680825":{'isolate': 'NAT107',
255
+ # 'country':
256
+ # {'ecuador': ['ncbi',
257
+ # 'rag_llm-The geographic location "Ecuador" is explicitly listed under "geo_loc_name" for the isolate NAT107. The text mentions "217 novel modern mitogenomes", indicating the sample is from a living individual.']},
258
+ # 'sample_type':
259
+ # {'modern': ['rag_llm-The geographic location "Ecuador" is explicitly listed under "geo_loc_name" for the isolate NAT107. The text mentions "217 novel modern mitogenomes", indicating the sample is from a living individual.']},
260
+ # 'query_cost': '0.000941', 'time_cost': '9.246 seconds',
261
+ # 'source': ['https://doi.org/10.1093/molbev/msx267', 'https://pubmed.ncbi.nlm.nih.gov/29099937/'],
262
+ # 'file_chunk': 'The_Paleo-Indian_Entry_into_South_America_Accordin_merged_document.docx',
263
+ # 'file_all_output': 'The_Paleo-Indian_Entry_into_South_America_Accordin_all_merged_document.docx',
264
+ # 'signals': {'has_geo_loc_name': True, 'has_pubmed': True, 'accession_found_in_text': True, 'predicted_country': 'ecuador', 'genbank_country': 'ecuador', 'num_publications': 3, 'missing_key_fields': False, 'known_failure_pattern': False}}
265
+ # }
266
  if stop_flag is not None and stop_flag.value:
267
  print(f"🛑 Skipped {accession} mid-pipeline.")
268
  return []