Skip to content

Commit

Permalink
remove unused json reference
Browse files Browse the repository at this point in the history
  • Loading branch information
erikwolfsohn committed Sep 3, 2024
1 parent fe82b9b commit b569638
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions gisaid_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
from Bio.Seq import Seq
from Bio.SeqRecord import SeqRecord
import re
import json

import upload_log
import tools
Expand Down Expand Up @@ -76,7 +75,6 @@ def process_gisaid_log(log_file: str, submission_dir: str) -> pd.DataFrame:
with open(log_file, "r") as file:
line = file.readline().strip()
while line:
line2 = json.loads(line)
# If accession generated record it
# Pattern options: "msg:": "<Sample Name>; <EPI_ISL/EPI_ID>_<Accession Numbers>" OR <epi_isl_id/epi_id>: <Sample Name>; <EPI_ISL/EPI_ID>_<Accession Numbers>
# Changed re.match to re.search to return tokens that aren't at the beginning. Changed the regex to capture an arbitrary amount of numbers after EPI_
Expand Down

0 comments on commit b569638

Please sign in to comment.