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

Kraken-translate error #42

Open
Sanrrone opened this issue Mar 22, 2016 · 9 comments
Open

Kraken-translate error #42

Sanrrone opened this issue Mar 22, 2016 · 9 comments
Assignees

Comments

@Sanrrone
Copy link

Hi, I did a custom databate, search with kraken, but when i try to translate kraken.sequence (kraken-translate --db myKrakenDB --mpa-format sequences.kraken
), i get the following output:

Use of uninitialized value $_ in string eq at /Users/castrolab01/programs/kraken/kraken-translate line 116, <> line 1.
Use of uninitialized value $_ in string eq at /Users/castrolab01/programs/kraken/kraken-translate line 117, <> line 1.
Use of uninitialized value $_ in string eq at /Users/castrolab01/programs/kraken/kraken-translate line 118, <> line 1.
Use of uninitialized value $_ in string eq at /Users/castrolab01/programs/kraken/kraken-translate line 119, <> line 1.
Use of uninitialized value $_ in string eq at /Users/castrolab01/programs/kraken/kraken-translate line 120, <> line 1.
Use of uninitialized value $_ in string eq at /Users/castrolab01/programs/kraken/kraken-translate line 121, <> line 1.
Use of uninitialized value $_ in string eq at /Users/castrolab01/programs/kraken/kraken-translate line 122, <> line 1.
Use of uninitialized value $_ in string eq at /Users/castrolab01/programs/kraken/kraken-translate line 123, <> line 1.
Use of uninitialized value in transliteration (tr///) at /Users/castrolab01/programs/kraken/kraken-translate line 95, <> line 1.
Use of uninitialized value $taxid in numeric gt (>) at /Users/castrolab01/programs/kraken/kraken-translate line 101, <> line 1.
Use of uninitialized value $taxid in hash element at /Users/castrolab01/programs/kraken/kraken-translate line 104, <> line 1.
Use of uninitialized value $taxid in hash element at /Users/castrolab01/programs/kraken/kraken-translate line 110, <> line 1.
r1 root

@pjtorres
Copy link

Hey @Sanrrone I am having the same issue, did you ever figure out how to fix this problem?

@Sanrrone
Copy link
Author

Sanrrone commented May 26, 2017

No, I don't, just I change kraken for pathoscope2, kraken looks like have no more support

@jenniferlu717 jenniferlu717 self-assigned this Oct 23, 2017
@jenniferlu717
Copy link
Collaborator

ill take a look at this this week. Apologies for the late updates. I only recently started working on maintaining Kraken.

@rfm-targa
Copy link

Good night,

I don't know if this issue has been resolved and I know it has been some time since the original comments. But I've had similar errors and think I've managed to solve them. The type of output initially presented in the first comment has appeared in following situations:

  • The taxid being searched during kraken-translate script does not exist in names.dmp &/or nodes.dmp (output translation for the given sequence/s with that taxid will only consist of the sequence header).
  • The names.dmp &/or nodes.dmp are not well formatted. The files must have perfect formatting like the original NCBI ftp files. If the files are altered or new files are created, the formatting must be perfect concerning spacing with tabs and '|' characters.
  • The relation between the information in names.dmp and nodes.dmp isn't correct. The names.dmp file has to have all the names with correct identifiers and so on. The nodes.dmp file has to have the same identifiers as present in the names.dmp file and the relation between children and parent taxids has to be spot on. If there aren't any missing levels it shoulf be just fine.

Hope this helps since it applies to several situations, mainly when altering or creating new files :)

@peterjc
Copy link

peterjc commented Feb 9, 2018

I've just hit this bug myself using Kraken v1.0, while trying to put together a minimal test case for a larger pipeline.

In this case, names.dmp and nodes.dmp existed as empty files (zero bytes) - which ought to make this easy to reproduce for testing any fix.

@emrahkirdok
Copy link

Hi. I have the exact same issue. Do you know if this issue solved or not?

@jenniferlu717
Copy link
Collaborator

I'm unsure about a fix but based on previous comments, it looks like the best suggestion is just to redownload the kraken taxonomy files. Are you having this issue with the most updated files?

@your-highness
Copy link

For me, the wget-based download process of the taxonomy failed randomly. The rsync-based download of the reference sequences does work correctly if your proxy supports rsync connections (see #114 )

@vappiah
Copy link

vappiah commented Jan 28, 2021

I have a similar issue. It happened a day after downloading and settup of the kraken database. I used the script giving here https://github.com/sejmodha/MiscScripts/blob/master/UpdateKrakenDatabases.py

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

8 participants