Spaces:
Running
Running
Update mtdna_classifier.py
Browse files- mtdna_classifier.py +1 -4
mtdna_classifier.py
CHANGED
|
@@ -256,7 +256,6 @@ def classify_sample_location(accession):
|
|
| 256 |
keyword, context, location, qa_result, haplo_result = "", "", "", "", ""
|
| 257 |
# Step 1: get pubmed id and isolate
|
| 258 |
pubmedID, isolate = get_info_from_accession(accession)
|
| 259 |
-
print(pubmedID, isolate)
|
| 260 |
if not pubmedID:
|
| 261 |
return {"error": f"Could not retrieve PubMed ID for accession {accession}"}
|
| 262 |
if not isolate:
|
|
@@ -320,6 +319,4 @@ def classify_sample_location(accession):
|
|
| 320 |
# 4.2.1: Infer from haplogroup
|
| 321 |
haplo_result = classify_mtDNA_sample_from_haplo(context)
|
| 322 |
outputs[keyword][key]["haplogroup"] = haplo_result
|
| 323 |
-
return outputs
|
| 324 |
-
accession = "KU131308"
|
| 325 |
-
classify_sample_location(accession)
|
|
|
|
| 256 |
keyword, context, location, qa_result, haplo_result = "", "", "", "", ""
|
| 257 |
# Step 1: get pubmed id and isolate
|
| 258 |
pubmedID, isolate = get_info_from_accession(accession)
|
|
|
|
| 259 |
if not pubmedID:
|
| 260 |
return {"error": f"Could not retrieve PubMed ID for accession {accession}"}
|
| 261 |
if not isolate:
|
|
|
|
| 319 |
# 4.2.1: Infer from haplogroup
|
| 320 |
haplo_result = classify_mtDNA_sample_from_haplo(context)
|
| 321 |
outputs[keyword][key]["haplogroup"] = haplo_result
|
| 322 |
+
return outputs
|
|
|
|
|
|