Skip to content

Commit

Permalink
Enable MUMi only mode again
Browse files Browse the repository at this point in the history
  • Loading branch information
bkille committed Jan 5, 2024
1 parent 01d1052 commit 96a0635
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions parsnp
Original file line number Diff line number Diff line change
Expand Up @@ -1319,7 +1319,7 @@ SETTINGS:
ref = auto_ref
lowest_mumi = mumi_dict[idx]
mumi_f = ""
if mumi_only and not curated:
if mumi_only:
mumi_f = open(os.path.join(outputDir, "config", "recruited_genomes.lst"),'w')


Expand Down Expand Up @@ -1349,6 +1349,9 @@ SETTINGS:
mumi_f.write(os.path.abspath(fnafiles[idx])+",%f"%(mumi_dict[idx])+"\n")
finalfiles.append(fnafiles[idx])
allfiles.append(fnafiles[idx])
if mumi_only:
mumi_f.close()
exit(0)

else:
try:
Expand Down Expand Up @@ -1413,10 +1416,6 @@ SETTINGS:
if f not in allfiles:
allfiles.append(f)

if mumi_only:
mumi_f.close()
sys.exit(1)

# More stuff to autopick the reference if needed:
orig_auto_ref = auto_ref
if os.path.exists(auto_ref) and autopick_ref:
Expand Down

0 comments on commit 96a0635

Please sign in to comment.