You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#! /usr/bin/env python importsysimportsourmashdefextract_hashes_and_abunds(minhash):
assertminhash.track_abundance, "track abundance must be set"# will return list of (hash, abund) returnlist(minhash.hashes.items())
KSIZE=31MOLTYPE='DNA'db=sourmash.load_file_as_index(sys.argv[1])
db=db.select(ksize=KSIZE, moltype=MOLTYPE)
assertlen(db) ==1sig=list(db.signatures())[0]
print(extract_hashes_and_abunds(sig.minhash))
rough procedure would be:
build the intersection you're interested in, using sig intersect ... -A <abundances-from> to make sure you're borrowing the abundances from the sketch (usually the reads or the WGS data set), and/or use sig merg to merge your sketches;
@ctb @bettafische
Place holder to find a time to meet to make this script.
The text was updated successfully, but these errors were encountered: