Skip to content
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

bracken-build: line 231: syntax error: unexpected end of file error #278

Open
HUANGjiadai opened this issue Aug 29, 2024 · 5 comments
Open

Comments

@HUANGjiadai
Copy link

bracken-build -d ../kraken2_db/

Selected Options:
kmer length = 35
read length = 100
database = ../kraken2_db/
threads = 1
kraken type = kraken2
Checking for Valid Options...
Creating database.kraken [if not found]
~/bin/bracken-build: line 231: syntax error: unexpected end of file

@alsmadin01
Copy link

Hi @HUANGjiadai,
I got the same error - did you manage to solve it?

@HUANGjiadai
Copy link
Author

HUANGjiadai commented Sep 9, 2024 via email

@zxyEmily
Copy link

zxyEmily commented Oct 8, 2024

Hi @HUANGjiadai,
I got the same error - did you manage to solve it?

@HUANGjiadai
Copy link
Author

HUANGjiadai commented Oct 8, 2024 via email

@papanikos
Copy link

The build-kraken needs to be patched with an fi for the if [ $KRAKEN == 'kraken2' ] block to close properly.
Fixing that causes another failure in the next if block, where the exit status is checked . The check should be if [ $? == 0 ].

I see this is already on master, so depending on how you install bracken, you might not get this issue. I installed it through conda and got the error. You could try to find the build-kraken script (e.g. with the command which build-kraken) in your $PATH and replace it with the master version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants