-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--outprefix option and cmp subcommand are invaild #68
Comments
Hi Xiaoming - Thank you for this issue! I'm looking into it. I really appreciate the feedback and I'll let you know when it's fixed up. Best wishes, Daniel |
Checking back in on this - I seem to have fixed this issue on my machine and have updated the main branch accordingly. (See the linked PR.) You could build from source now; I'm also working on updating binaries, but that won't be done until tomorrow. Please let me know how this works for you. Thanks again! Daniel |
Thanks for your update. I build the latest source and found that the "--cache" and "--prefix" options are valid. The cached sketch files are no longer adjacent to the genome files. However, there are new problems when computing the distance. Don't have permission to map.
: Invalid argument
terminate called after throwing an instance of 'std::runtime_error'
what(): Invalid argument
Aborted (core dumped) And the So, it generates two new questions:
Thank you very much! |
Hi Xiaoming, You found another bug. Thank you! There's a large feature-set (lots of ways to run computation), and we were erasing the sketched data because I was opening the file in the wrong mode to load the data for analysis. The code path that I've used this concatenated sketch file with primarily was directly calling Your command is correct! I'm able to run that command exactly after fixing this bug.
So:
For point (2), we don't have a command for it, but I just added a python function which does this. In You call it like: from python.parse import python.parse.convert_sketches_to_packed_sketch
import glob
paths = list(glob.iglob("bacteria_sketch/*ss"))
individual_sketches = convert_sketches_to_packed_sketch(paths, "packed_bacteria.sketch") Now, it might be faster to just re-sketch, but that's an option. Here's the PR: #70. Thanks again! I really appreciate it. Again, I've updated the main branch, but new binaries will be available tonight or tomorrow now. Best, Daniel |
Hi daniel, Best, |
Hi Xiaoming, Thanks again! I can reproduce it, but only with some builds, which is confusing to me. The version I've built of I've made changes in this PR: I'm adding some new binaries; could you please give it another shot? Here are the OSX, and I'll get the linux later today. (https://github.com/dnbaker/dashing2-binaries/tree/main/osx/v2.1.14) I think I'll wait until you confirm that it's fixed to merge it in in case there are more issues. Thanks! Daniel |
Hi Daniel, I can get the human-readable result by compiling without Besides, I have tested the binaries v2.1.14 Thank you for your work again! |
Hi Daniel,
I run the dashing2 with "./dashing2_savx2 sketch -F bacteria.list -S 1024 --threads 48 -o bacteria.sketch" to get the sketches, and the bacteria.sketch and the bacteria.sketch.name.txt are generated.
The cached sketch files are saved adjacent to the input file, and I try to specify the directory for the cached files by the option "--outprefix or --prefix", but it does not work. This makes the directory of the original input genome file directory chaotic.
Without the option of "--cache", the cached file will be in the input genome directory as well. How can I cancel the cached file?
In addition, I want to use the cmp or dist subcommand to compute the all-vs-all pairwise distances by the bacteria.sketch, but I cannot get the help information of this subcommand by "./dashing2_savx2 dist --help" and do not know how to use it.
Best,
Xiaoming
The text was updated successfully, but these errors were encountered: