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
7f3a48ee
Commit
7f3a48ee
authored
Feb 04, 2022
by
Gustaf Ahdritz
Browse files
Un-comment lines in alignment script
parent
84f45ee1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
+10
-11
scripts/precompute_alignments.py
scripts/precompute_alignments.py
+10
-11
No files found.
scripts/precompute_alignments.py
View file @
7f3a48ee
...
@@ -25,12 +25,11 @@ def run_seq_group_alignments(seq_groups, alignment_runner, args):
...
@@ -25,12 +25,11 @@ def run_seq_group_alignments(seq_groups, alignment_runner, args):
first_name
=
names
[
0
]
first_name
=
names
[
0
]
alignment_dir
=
os
.
path
.
join
(
args
.
output_dir
,
first_name
)
alignment_dir
=
os
.
path
.
join
(
args
.
output_dir
,
first_name
)
os
.
makedirs
(
alignment_dir
,
exist_ok
=
True
)
try
:
# try:
os
.
makedirs
(
alignment_dir
)
# os.makedirs(alignment_dir)
except
Exception
as
e
:
# except Exception as e:
logging
.
warning
(
f
"Failed to create directory for
{
first_name
}
with exception
{
e
}
..."
)
# logging.warning(f"Failed to create directory for {first_name} with exception {e}...")
continue
# continue
fd
,
fasta_path
=
tempfile
.
mkstemp
(
suffix
=
".fasta"
)
fd
,
fasta_path
=
tempfile
.
mkstemp
(
suffix
=
".fasta"
)
with
os
.
fdopen
(
fd
,
'w'
)
as
fp
:
with
os
.
fdopen
(
fd
,
'w'
)
as
fp
:
...
@@ -49,11 +48,11 @@ def run_seq_group_alignments(seq_groups, alignment_runner, args):
...
@@ -49,11 +48,11 @@ def run_seq_group_alignments(seq_groups, alignment_runner, args):
os
.
remove
(
fasta_path
)
os
.
remove
(
fasta_path
)
for
name
in
names
[
1
:]:
for
name
in
names
[
1
:]:
#
if(name in dirs):
if
(
name
in
dirs
):
#
logging.warning(
logging
.
warning
(
#
f'{name} has already been processed. Skipping...'
f
'
{
name
}
has already been processed. Skipping...'
#
)
)
#
continue
continue
cp_dir
=
os
.
path
.
join
(
args
.
output_dir
,
name
)
cp_dir
=
os
.
path
.
join
(
args
.
output_dir
,
name
)
os
.
makedirs
(
cp_dir
,
exist_ok
=
True
)
os
.
makedirs
(
cp_dir
,
exist_ok
=
True
)
...
...
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