Skip to content

Commit

Permalink
clean some more bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Palmer committed Nov 4, 2024
1 parent 86296c4 commit 0a3a741
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 12 deletions.
4 changes: 3 additions & 1 deletion buscolite/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
from .__version__ import __version__
import importlib.metadata

__version__ = importlib.metadata.version("buscolite")
2 changes: 1 addition & 1 deletion buscolite/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import os
import argparse
import json
from .__version__ import __version__
from .__init__ import __version__
from .help_formatter import MyParser, MyHelpFormatter
from .busco import runbusco
from .utilities import summary_writer
Expand Down
3 changes: 0 additions & 3 deletions buscolite/__version__.py

This file was deleted.

11 changes: 8 additions & 3 deletions buscolite/busco.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@

import os
import tempfile
import concurrent.futures
from natsort import natsorted
import pyhmmer
import pyfastx
from .__version__ import __version__
from .__init__ import __version__
from .log import startLogging
from .search import (
hmmer_search_single,
Expand Down Expand Up @@ -408,7 +407,13 @@ def runbusco(
for b in CutOffs.keys():
if b not in b_results:
missing.append(b)
stats = {"total": 0, "single-copy": 0, "fragmented": 0, "duplicated": 0, "missing": len(missing)}
stats = {
"total": 0,
"single-copy": 0,
"fragmented": 0,
"duplicated": 0,
"missing": len(missing),
}
for k, v in natsorted(b_results.items()):
stats["total"] += 1
if (
Expand Down
2 changes: 1 addition & 1 deletion buscolite/help_formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import os
import argparse
import shutil
from .__version__ import __version__
from .__init__ import __version__
import textwrap as _textwrap


Expand Down
11 changes: 9 additions & 2 deletions buscolite/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import os
import errno
from natsort import natsorted
from .__version__ import __version__
from .__init__ import __version__


def summary_writer(result, missing, cmd, cfg, handle, mode="genome"):
Expand Down Expand Up @@ -33,7 +33,14 @@ def summary_writer(result, missing, cmd, cfg, handle, mode="genome"):
if v["status"] == "missing":
handle.write(
"{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\n".format(
busco, v["status"], "", "", "", "", "", "", ""
busco,
v["status"],
"",
"",
"",
"",
"",
"",
)
)
else:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "buscolite"
version = "24.7.29"
version = "24.11.03"
description = "busco analysis for gene predictions"
readme = {file = "README.md", content-type = "text/markdown"}
authors = [
Expand Down

0 comments on commit 0a3a741

Please sign in to comment.