Open ctb opened 4 years ago
(we could also just deprecate it, but it's cool demo functionality even if no one is using it 🤔 )
I think this ends up being reasonably straightforward now?
watch(...)
function in commands.py
, replace tree = load_sbt_index(args.sbt_name)
with db = load_file_as_index
; note that other than the code in the if ksize is None
branch that figures out ksize to use, tree.search(...)
is now generic to all Index
subclasses so should Just Work with any db;There may be reasons this won't work easily, but reading through the code it's worth a try!
similar to #829
probably should use new
sourmash_args.load_file_as_signatures
function re #1059