Skip to content

Commit 3ccf861

Browse files
Jonathan PalmerJonathan Palmer
Jonathan Palmer
authored and
Jonathan Palmer
committed
updates and version bump
1 parent 98683d1 commit 3ccf861

22 files changed

+11
-9
lines changed

.github/workflows/python-publish.yml

100644100755
File mode changed.

.gitignore

100644100755
File mode changed.

LICENSE.md

100644100755
File mode changed.

MANIFEST.in

100644100755
File mode changed.

README.md

100644100755
File mode changed.

buscolite/.github/workflows/python-publish.yml

100644100755
File mode changed.

buscolite/__init__.py

100644100755
File mode changed.

buscolite/__main__.py

100644100755
File mode changed.

buscolite/__version__.py

100644100755
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
VERSION = (23, 10, 26)
1+
VERSION = (24, 7, 29)
22

33
__version__ = ".".join(map(str, VERSION))

buscolite/augustus.py

100644100755
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import sys
22
import os
33
import subprocess
4-
from .utilities import execute, execute_timeout
4+
from .utilities import execute_timeout
55

66

77
def augustus_version():

buscolite/busco.py

100644100755
+9-7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import sys
1+
22
import os
33
import tempfile
44
import concurrent.futures
@@ -40,7 +40,7 @@ def load_cutoffs(lineage):
4040
with open(os.path.join(lineage, "scores_cutoff"), "r") as infile:
4141
for line in infile:
4242
busco, score = line.rstrip().split("\t")
43-
if not busco in cutoffs:
43+
if busco not in cutoffs:
4444
cutoffs[busco] = {"score": float(score)}
4545
else:
4646
cutoffs[busco]["score"] = float(score)
@@ -49,7 +49,7 @@ def load_cutoffs(lineage):
4949
busco, _, sigma, length = line.rstrip().split("\t")
5050
if float(sigma) == 0.0:
5151
sigma = 1
52-
if not busco in cutoffs:
52+
if busco not in cutoffs:
5353
cutoffs[busco] = {"sigma": float(sigma), "length": int(float(length))}
5454
else:
5555
cutoffs[busco]["sigma"] = float(sigma)
@@ -94,6 +94,7 @@ def predict_and_validate(
9494
t_fasta = tempfile.NamedTemporaryFile(suffix=".fasta")
9595
with open(t_fasta.name, "w") as f:
9696
f.write(">{}\n{}\n".format(contig, fadict[contig][start:end]))
97+
9798
# run augustus on the regions
9899
aug_preds = proteinprofile(
99100
t_fasta.name,
@@ -249,6 +250,7 @@ def runbusco(
249250
i["score"],
250251
)
251252
)
253+
252254
# process mt results
253255
if len(complete) > 0:
254256
b_results = complete
@@ -257,7 +259,7 @@ def runbusco(
257259
for r in results:
258260
if isinstance(r.result(), tuple):
259261
b, res = r.result()
260-
if not b in b_results:
262+
if b not in b_results:
261263
b_results[b] = [res]
262264
else:
263265
b_results[b].append(res)
@@ -313,7 +315,7 @@ def runbusco(
313315

314316
if len(complete2) > 0:
315317
for k, v in complete2.items():
316-
if not k in b_results:
318+
if k not in b_results:
317319
b_results[k] = v
318320
else:
319321
b_results[k] += v
@@ -357,7 +359,7 @@ def runbusco(
357359
for r in results:
358360
if isinstance(r.result(), tuple):
359361
b, res = r.result()
360-
if not b in b_results:
362+
if b not in b_results:
361363
b_results[b] = [res]
362364
else:
363365
b_results[b].append(res)
@@ -368,7 +370,7 @@ def runbusco(
368370
for b in CutOffs.keys():
369371
if b not in b_results:
370372
missing.append(b)
371-
stats = {"total": 0, "single-copy": 0, "fragmented": 0, "duplicated": 0}
373+
stats = {"total": 0, "single-copy": 0, "fragmented": 0, "duplicated": 0, "missing": len(missing)}
372374
for k, v in natsorted(b_results.items()):
373375
stats["total"] += 1
374376
if (

buscolite/data/EOG092C0B3U.prfl

100644100755
File mode changed.

buscolite/data/HsDHC.prfl

100644100755
File mode changed.

buscolite/data/busco_test.fa

100644100755
File mode changed.

buscolite/data/example.fa

100644100755
File mode changed.

buscolite/fasta.py

100644100755
File mode changed.

buscolite/fastx.py

100644100755
File mode changed.

buscolite/gff.py

100644100755
File mode changed.

buscolite/help_formatter.py

100644100755
File mode changed.

buscolite/log.py

100644100755
File mode changed.

buscolite/search.py

100644100755
File mode changed.

buscolite/utilities.py

100644100755
File mode changed.

0 commit comments

Comments
 (0)