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

No preliminary seqid/taxid mapping files found, aborting. #291

Open
fjptwenger opened this issue Aug 14, 2020 · 16 comments
Open

No preliminary seqid/taxid mapping files found, aborting. #291

fjptwenger opened this issue Aug 14, 2020 · 16 comments

Comments

@fjptwenger
Copy link

fjptwenger commented Aug 14, 2020

when I build nr database ,the error:

$ kraken2-build --build  --db ~/software/metadb 
Creating sequence ID to taxonomy ID map (step 1)...
No preliminary seqid/taxid mapping files found, aborting.

I don't know how to solve this problem。

@jenniferlu717
Copy link
Collaborator

How did you download/build the database?

@fjptwenger
Copy link
Author

that command: kraken2-build --download-taxonomy --threads 8 --protein --db ~/software/metadb/ --use-ftp

@fjptwenger
Copy link
Author

fjptwenger commented Sep 4, 2020

I deleted the original directory and re-downloaded and now encountered this error:

Untarring taxonomy tree data...
gzip: stdin: invalid compressed data--format violated
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now

and I download taxdump.tar.gz from NCBI instead of the kraken2 download taxdump.tar.gz file,and run**kraken2-build --download-taxonomy --threads 8 --protein --db ~/software/metadb/ --use-ftp ** again .it show below:

Untarring taxonomy tree data... done.

then the nr database download before and move in library/nr,now the Directory Structure:

├── library
│   └── nr
│       └── nr.gz
└── taxonomy
    ├── accmap.dlflag
    ├── citations.dmp
    ├── delnodes.dmp
    ├── division.dmp
    ├── gc.prt
    ├── gencode.dmp
    ├── merged.dmp
    ├── names.dmp
    ├── nodes.dmp
    ├── prelim_map.txt
    ├── prot.accession2taxid
    ├── readme.txt
    ├── taxdump.dlflag
    ├── taxdump.tar.gz
    ├── taxdump.untarflag

but error still exist:

$ kraken2-build --build  --db ~/software/metadb 
Creating sequence ID to taxonomy ID map (step 1)...
No preliminary seqid/taxid mapping files found, aborting.

@jenniferlu717
Copy link
Collaborator

How did you download the nr.gz library file?

@freixas84
Copy link

Hi, I am stuck in the same error, but with the nt database. Both the nt and taxonomy files were downloaded as per below:

kraken2-build --use-ftp --download-taxonomy --db nt
kraken2-build --use-ftp --download-library nt --db nt --threads 12

The error I get after attempting to build the libraries is as follows:
Creating sequence ID to taxonomy ID map (step 1)...
No preliminary seqid/taxid mapping files found, aborting.

Any help will be very appreciated!

@Sevgi-k
Copy link

Sevgi-k commented Jul 22, 2022

Hi, I am stuck in the same error as well... Did anybody find a solution?

@Solenyalyl
Copy link

I'm stucked too. anyone can help?

@LiZhihua1982
Copy link

@fjptwenger Hi would you solve this problem?

@dannyionescu
Copy link

dannyionescu commented Jan 12, 2023

Same problem today with the nt DB.
I downloaded the files manually again and they look the same.

accession accession.version taxid gi
A00001 A00001.1 10641 58418
A00002 A00002.1 9913 2
A00003 A00003.1 9913 3
A00004 A00004.1 32630 57971
A00005 A00005.1 32630 57972
A00006 A00006.1 32630 57973
A00008 A00008.1 32630 57974
A00009 A00009.1 32630 57975
A00010 A00010.1 32630 57976
A00011 A00011.1 32630 57977
A00012 A00012.1 32630 57978
A00013 A00013.1 32630 57979
A00014 A00014.1 32630 57980
A00015 A00015.1 32630 57981
A00016 A00016.1 32630 57982

If there is a solution, please let me know.
Thanks

@tpellegrinetti
Copy link

Any solution? I need to solve this problem

@dannyionescu
Copy link

Not from my side, I am still waiting for answers.
I tried to treat the nt fasta file as new data and add it to the db but it complained about something else.

@sapuizait
Copy link

same here when trying to build the NT - it has downloaded the nt.gz and the taxonomy in a separate folder and gives the same error!

  • is there no solution?

@jsalas0798
Copy link

Hi is there any solution to this problem, when i run this command line kraken2-build --build --db database it prompts:

Creating sequence ID to taxonomy ID map (step 1)...
No preliminary seqid/taxid mapping files found, aborting.

For the download of taxonomy i used: kraken2-build --download-taxonomy --db database
and for the download of the library: kraken2-build --download-library bacteria --db database

@tpellegrinetti
Copy link

I solved this problem using kaiju instead kraken2

@rturba
Copy link

rturba commented Aug 15, 2023

Damn, just encountered the same issue. I guess this is a dead end :/

@diogopaes1
Copy link

I also stopped at this problem. It seems that you need to convert the assembly_summary.txt files to the .fna format within the db/library folder. Or download manually.

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