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
Error during db build: "find: -printf: unknown primary or operator" #48
Comments
|
Ok, found the fix for the above problem in the Pull request section. However, changing the line in question to "KRAKEN_HASH_SIZE=$(find library/ -name '*.fna' -ls | awk '{print $7}' | perl -nle '$sum += $_; END {print int(1.15 * $sum)}')" results now in the following error: karsten$ kraken-build --build --threads 24 --work-on-disk --db kraken_20160720 So, what's next? ;-) Cheers, Karsten |
|
Interestingly, trying to build the library under Linux (Ubuntu 16.04.1 LTS) results in pretty much the same error. |
|
having the same issue, but I'm not getting a broken pipe Did you ever find a fix? |
|
@kliere I see you are using Brew - I am still trying to get the builder working, as it depends on Jellyfish 1.1 not 2.0 as is installed. See https://github.com/Homebrew/homebrew-science/pull/2161 |
|
its the --jellyfish-hash-size that's causing it to exit, not sure what the max should be but probably need to add a cap. |
|
The issue seems to be due macOS version of
|
|
@getopt nice 'find' on the lack of |
|
@kliere @getopt @andrewdavis3 the bigger problem is that @DerrickWood has moved to industry and is no longer maintaining this software. |
|
@tseemann, yep indeed - though Kraken is still a great tool, one should look for alternatives such as CLARK... |
|
We are currently working on updates/fixes to the Kraken software. We haven't abandoned it, promise. |
I'm building a custom db following the instructions on the kraken website using the scripts provided by Mick Watson (http://www.opiniomics.org/building-a-kraken-database-with-new-ftp-structure-and-no-gi-numbers/). Everything works fine up to the moment when I try to build the db using the following command:
karsten$ kraken-build --build --threads 24 --work-on-disk --db kraken_20160720
Kraken build set to minimize RAM usage.
Creating k-mer set (step 1 of 6)...
Found jellyfish v1.1.11
find: -printf: unknown primary or operator
Copied from the script, the line in question looks like:
"KRAKEN_HASH_SIZE=$(find library/ '(' -name '.fna' -o -name '.fa' -o -name '*.ffn' ')' -printf '%s\n' | perl -nle '$sum += $_; END {print int(1.15 * $sum)}')"
I'm using Mac OS X 10.11.6 with Perl v5.18.2.
So, what is wrong with the printf command?
Cheers,
Karsten
The text was updated successfully, but these errors were encountered: