Skip to content

Commit

Permalink
fixing another typecasting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
akrinos committed Feb 18, 2023
1 parent 232a378 commit 368986b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/EUKulele/manage_steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,8 @@ def createAlignmentDatabase(ref_fasta, rerun_rules, output_dir,
os.system("mkdir -p " + os.path.join(database_dir, "diamond"))
db = os.path.join(database_dir, "diamond", ref_fasta.strip('.fa'))
rc_2 = os.system("diamond makedb --in " + \
os.path.join(database_dir, ref_fasta) + " --db " + db + " -p " + cpus +\
os.path.join(database_dir, ref_fasta) + \
" --db " + db + " -p " + str(cpus) +\
" 1> " + output_log + " 2> " + error_log)
else:
print("Diamond database file already created; will not re-create database.",
Expand Down Expand Up @@ -477,7 +478,7 @@ def alignToDatabase(alignment_choice, sample_name, filter_metric, output_dir, re
rc_1 = subprocess.Popen(["diamond", alignment_method,
"--db", align_db, "-q", fasta, "-o",
diamond_out, "--outfmt", str(outfmt),
"-p",cpus,
"-p",str(cpus),
"-k", str(k), "-e", str(e), '-b3.0'],
stdout = diamond_log,
stderr = diamond_err).wait()
Expand Down

0 comments on commit 368986b

Please sign in to comment.