VyLala commited on
Commit
08cf612
·
verified ·
1 Parent(s): 1923a67

Update smart_fallback.py

Browse files
Files changed (1) hide show
  1. smart_fallback.py +3 -0
smart_fallback.py CHANGED
@@ -132,9 +132,12 @@ def smart_google_queries(accession_id, metadata: dict):
132
  organism = None
133
  print("this is definition: ", definition)
134
  if definition and definition != "unknown":
 
135
  match = re.match(r"([A-Z][a-z]+ [a-z]+)", definition)
 
136
  if match:
137
  organism = match.group(1)
 
138
  queries.append(f'"{accession_id}" "{organism}" mitochondrial')
139
  print("done definition")
140
  if author and author!="unknown" and author!="Unpublished":
 
132
  organism = None
133
  print("this is definition: ", definition)
134
  if definition and definition != "unknown":
135
+ print("inside definition")
136
  match = re.match(r"([A-Z][a-z]+ [a-z]+)", definition)
137
+ print("match: ", match)
138
  if match:
139
  organism = match.group(1)
140
+ print("organism: ", organism)
141
  queries.append(f'"{accession_id}" "{organism}" mitochondrial')
142
  print("done definition")
143
  if author and author!="unknown" and author!="Unpublished":