"...src/git@developer.sourcefind.cn:OpenDAS/dynamo.git" did not exist on "b495cd839e6f24f0acdf8be4609c4bf43c9571d6"
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 os, argparse, pickle, tempfile, concurrent
import multiprocessing.pool # Need to import multiprocessing.pool first otherwise multiprocessing.pool.Pool cannot be called
from openfold.data import parsers from openfold.data import parsers
from concurrent.futures import ProcessPoolExecutor from concurrent.futures import ProcessPoolExecutor
...@@ -9,7 +8,6 @@ def parse_stockholm_file(alignment_dir: str, stockholm_file: str): ...@@ -9,7 +8,6 @@ def parse_stockholm_file(alignment_dir: str, stockholm_file: str):
with open(path, "r") as infile: with open(path, "r") as infile:
msa = parsers.parse_stockholm(infile.read()) msa = parsers.parse_stockholm(infile.read())
infile.close() infile.close()
# queue.put()
return {file_name: msa} return {file_name: msa}
def parse_a3m_file(alignment_dir: str, a3m_file: str): def parse_a3m_file(alignment_dir: str, a3m_file: str):
...@@ -18,7 +16,6 @@ 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: with open(path, "r") as infile:
msa = parsers.parse_a3m(infile.read()) msa = parsers.parse_a3m(infile.read())
infile.close() infile.close()
# queue.put({file_name: msa})
return {file_name: msa} return {file_name: msa}
def run_parse_all_msa_files_multiprocessing(stockholm_files: list, a3m_files: list, alignment_dir:str): 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