Skip to content

Commit

Permalink
remove 'dump' command (#1157)
Browse files Browse the repository at this point in the history
  • Loading branch information
ctb committed Aug 17, 2020
1 parent eb35860 commit 7b261f5
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 31 deletions.
3 changes: 1 addition & 2 deletions sourmash/cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
from . import categorize
from . import compare
from . import compute
from . import dump
from . import gather
from . import import_csv
from . import info
Expand Down Expand Up @@ -100,7 +99,7 @@ def get_parser():
alias = {
"sig": "signature"
}
expert = set(['categorize', 'dump', 'import_csv', 'migrate', 'multigather', 'sbt_combine', 'watch'])
expert = set(['categorize', 'import_csv', 'migrate', 'multigather', 'sbt_combine', 'watch'])

clidir = os.path.dirname(__file__)
basic_ops = utils.command_list(clidir)
Expand Down
14 changes: 0 additions & 14 deletions sourmash/cli/dump.py

This file was deleted.

15 changes: 0 additions & 15 deletions sourmash/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,21 +306,6 @@ def import_csv(args):
sig.save_signatures(siglist, outfp)


def dump(args):
"Dump hashes for each input signature into a {name}.dump.txt file."
for filename in args.filenames:
notify('loading {}', filename)
siglist = sig.load_signatures(filename, ksize=args.ksize)
siglist = list(siglist)
assert len(siglist) == 1

s = siglist[0]

fp = open(filename + '.dump.txt', 'w')
fp.write(" ".join((map(str, s.minhash.get_hashes()))))
fp.close()


def sbt_combine(args):
inp_files = list(args.sbts)
notify('combining {} SBTs', len(inp_files))
Expand Down

0 comments on commit 7b261f5

Please sign in to comment.