Skip to content

Commit 5a82b23

Browse files
tanghaibaoclaude
andauthored
Deprecate console db (#841)
* Remove deprecated jcvi.utils.console and jcvi.utils.db modules Remove the console module (thin wrapper around rich.Console) and the db module (legacy JCVI database connectors for Sybase/MySQL/PostgreSQL/Oracle). Replace console imports with direct rich.console.Console usage in aws.py, fetch.py, and formats/base.py. Remove the now-unused set_db_opts method from OptionParser. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Remove deprecated modules: formats.cdt, formats.contig, formats.coords, variation.deconvolute, assembly.syntenypath, annotation.ahrd, apps.emboss, apps.gbsubmit Relocate reusable code to consuming modules: - CoordsLine, Coords, Overlap_types, get_coords_stats -> formats.blast - CDT class -> compara.pad - ContigFile/ContigLine/ReadLine -> assembly.postprocess - read_interpro -> projects.pineapple - needle/NeedleHeader -> annotation.reformat Also fix remaining utils.console references in formats.fasta and algorithms.ec from prior deprecation. * Remove deprecated modules: apps.blastplus, apps.bowtie, apps.lastz, utils.ez_setup Relocate reusable code to consuming modules: - Bowtie2 wrappers (BowtieLogFile, check_index, align) -> apps.align - Download utilities (ALL_DOWNLOADERS, get_best_downloader) -> apps.base - LASTZ score conversion functions -> formats.maf * Style fixes by Black * Update src/jcvi/formats/blast.py * Update src/jcvi/projects/pineapple.py Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 5e48c50 commit 5a82b23

33 files changed

Lines changed: 860 additions & 4402 deletions

src/jcvi/algorithms/ec.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
from deap.algorithms import varAnd
1616

1717
from ..apps.base import logger
18-
from ..utils.console import printf
18+
from rich.console import Console
19+
20+
printf = Console().print
1921
from .lis import longest_monotonic_subseq_length
2022

2123
# This has to be in global space, otherwise runs into error "creator.Individual

src/jcvi/algorithms/supermap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
from ..apps.base import OptionParser, logger
1919
from ..formats.blast import BlastLine
20-
from ..formats.coords import CoordsLine
20+
from ..formats.blast import CoordsLine
2121
from ..utils.range import Range, range_chain
2222

2323

0 commit comments

Comments
 (0)