Commit 7f3a48ee authored by Gustaf Ahdritz's avatar Gustaf Ahdritz
Browse files

Un-comment lines in alignment script

parent 84f45ee1
...@@ -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)
......
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