Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
OpenFold
Commits
78ecfc64
Commit
78ecfc64
authored
Dec 05, 2023
by
Dingquan Yu
Browse files
remove unnecessary imports and statements
parent
08bfb1ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
openfold/data/tools/parse_msa_files.py
openfold/data/tools/parse_msa_files.py
+1
-4
No files found.
openfold/data/tools/parse_msa_files.py
View file @
78ecfc64
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
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment