Commit 78ecfc64 authored by Dingquan Yu's avatar Dingquan Yu
Browse files

remove unnecessary imports and statements

parent 08bfb1ff
import os, multiprocessing, argparse, pickle, tempfile, concurrent
import multiprocessing.pool # Need to import multiprocessing.pool first otherwise multiprocessing.pool.Pool cannot be called
import os, argparse, pickle, tempfile, concurrent
from openfold.data import parsers
from concurrent.futures import ProcessPoolExecutor
......@@ -9,7 +8,6 @@ def parse_stockholm_file(alignment_dir: str, stockholm_file: str):
with open(path, "r") as infile:
msa = parsers.parse_stockholm(infile.read())
infile.close()
# queue.put()
return {file_name: msa}
def parse_a3m_file(alignment_dir: str, a3m_file: str):
......@@ -18,7 +16,6 @@ def parse_a3m_file(alignment_dir: str, a3m_file: str):
with open(path, "r") as infile:
msa = parsers.parse_a3m(infile.read())
infile.close()
# queue.put({file_name: msa})
return {file_name: msa}
def run_parse_all_msa_files_multiprocessing(stockholm_files: list, a3m_files: list, alignment_dir:str):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment