VyLala commited on
Commit
aa04066
·
verified ·
1 Parent(s): 6110a0d

Update mtdna_classifier.py

Browse files
Files changed (1) hide show
  1. mtdna_classifier.py +1 -1
mtdna_classifier.py CHANGED
@@ -43,7 +43,6 @@ def get_info_from_accession(accession):
43
 
44
  # Return the values, even if they are empty strings
45
  return pubmedID, isolate
46
- print(get_info_from_accession("KU131308"))
47
  # Step 2: Get doi link to access the paper
48
  def get_doi_from_pubmed_id(pubmed_id):
49
  cmd = f'{os.environ["HOME"]}/edirect/esummary -db pubmed -id {pubmed_id} -format medline | grep -i "AID"'
@@ -208,6 +207,7 @@ def classify_sample_location(accession):
208
  keyword, context, location, qa_result, haplo_result = "", "", "", "", ""
209
  # Step 1: get pubmed id and isolate
210
  pubmedID, isolate = get_info_from_accession(accession)
 
211
  if not pubmedID:
212
  return {"error": f"Could not retrieve PubMed ID for accession {accession}"}
213
  if not isolate:
 
43
 
44
  # Return the values, even if they are empty strings
45
  return pubmedID, isolate
 
46
  # Step 2: Get doi link to access the paper
47
  def get_doi_from_pubmed_id(pubmed_id):
48
  cmd = f'{os.environ["HOME"]}/edirect/esummary -db pubmed -id {pubmed_id} -format medline | grep -i "AID"'
 
207
  keyword, context, location, qa_result, haplo_result = "", "", "", "", ""
208
  # Step 1: get pubmed id and isolate
209
  pubmedID, isolate = get_info_from_accession(accession)
210
+ print(pubmedID, isolate)
211
  if not pubmedID:
212
  return {"error": f"Could not retrieve PubMed ID for accession {accession}"}
213
  if not isolate: