Closed aryakaul closed 3 years ago
Hi there!
I wonder if it might be related to the flags. If I put -o
before the input arguments, it works (in single-threaded mode) as expected, but if I put it after, it crashes:
./dashing union -p1 `cat fns.txt | tr '\n' ' ' | head -n4` -ofile.txt
Dashing version: v0.5.5-4-gb11d
terminate called after throwing an instance of 'std::runtime_error'
what(): Could not open file at '-ofile.txt' for reading
Abort trap: 6
So changing the order of these might help.
However, in the process, I found another error in the union command with using more than one thread, which I've now corrected in source code, and I'll have new statically-linked binaries for OSX and Linux tomorrow sometime.
Thanks for reporting the issue, and feel free to ask more!
Daniel
Thanks Daniel! I tried it again with the correct order of flags and adding a -p1 but am still receiving the above error. I can try testing the new version when it's merged to main.
Also, just a question on usage.
Is it true that when the help message for a subcommand is condensed i.e. dashing union -h
that some of the flags from the more in-depth subcommand help messages i.e. dashing dist -h
are also included for that subcommand?
I've just merged it with this pull request. Would you give it a try, maybe with the new binaries here?
For the union subcommand, there are a lot fewer options than dist, so it should be simpler. Are there some options you're interested in?
Just tested and it's working!
I meant when running the dashing union -h
option, the message doesn't specify that the -p
option is available for this subcommand. I thought that meant multithreading wasn't implemented for union
yet. Is there some way to know which flags are available for a given subcommand?
Hi again!
Sorry it took a while to get back to you on this. I had removed the feature quickly to get it patched, but I've since (https://github.com/dnbaker/dashing/releases/tag/v0.5.6) added a release which re-introduces the parallel reduction, and added the flag back in.
There are some undocumented features, but I wouldn't recommend using them as they're probably experimental.
Thanks!
Daniel
Hello! I'm trying to use the tool and was interested in the
union
subcommand.I first create sketches of 2 read files using
-k31 -S10
. Then, I runAnd I receive the following error
If I keep rerunning the same command I receive different strings for
@r
and sometimes receive the following backtrace:This occurs when using the most recent precompiled release version of dashing or when I compile from source.
Any help would be appreciated!