Skip to content

Commit

Permalink
MIN Use utils.open_output
Browse files Browse the repository at this point in the history
atomicwrites had some issues in MacOS
  • Loading branch information
luispedro committed Nov 10, 2024
1 parent e2873a7 commit f9535a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions macrel/ORFs_prediction.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ def predict_genes(infile, ofile):
import random
import pandas as pd
from .fasta import fasta_iter
from atomicwrites import atomic_write
from .utils import open_output

clen = []
gorf, morf_finder = create_pyrodigal_orffinders()

# predict genes
with atomic_write(ofile, overwrite=True) as odb:
with open_output(ofile) as odb:
for idx, (h, s) in enumerate(fasta_iter(infile)):
orfs, smorfs = [0, 0]
if len(s) <= 100_000:
Expand Down

0 comments on commit f9535a4

Please sign in to comment.