Skip to content

Commit

Permalink
Update Pyrodigal to 3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobnissen committed Sep 18, 2023
1 parent 1c511a9 commit c543d36
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ dependencies = [
"torch == 1.13.1",
"pycoverm == 0.6.0",
"pyhmmer == 0.10.2",
"pyrodigal == 2.3.0"
"pyrodigal == 3.0.0"
]
# Currently pycoverm does not have binaries for Python > 3.11.
# The dependency resolver, will not error on Python 3.11, but attempt
Expand Down
4 changes: 2 additions & 2 deletions vamb/parsemarkers.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def process_chunk(
chunk: list[FastaEntry],
hmms: list[pyhmmer.plan7.HMM],
name_to_id: dict[MarkerName, MarkerID],
finder: pyrodigal.OrfFinder,
finder: pyrodigal.GeneFinder,
) -> list[tuple[ContigID, np.ndarray]]:
# We temporarily store them as sets in order to deduplicate. While single contigs
# may have duplicate markers, it makes no sense to count this as contamination,
Expand Down Expand Up @@ -288,7 +288,7 @@ def work_per_process(
# allowing pyhmmer to scan multiple sequences at once for speed
chunk: list[FastaEntry] = []
result: list[tuple[ContigID, np.ndarray]] = []
finder = pyrodigal.OrfFinder(meta=True)
finder = pyrodigal.GeneFinder(meta=True)
with open(contig_path, "rb") as file:
for record in byte_iterfasta(file):
chunk.append(record)
Expand Down

0 comments on commit c543d36

Please sign in to comment.