How to update nr database for commandline BLAST?
0
0
Entering edit mode
6.3 years ago
tcf.hcdg ▴ 70

I downloaded the nr databaselast year (nr00.tar.gz-nr61.tar.gz) and now would like to update the ne database as now they are up to nr90.tar.gz.

I tried to use the updatae script but encounter the following error:

tb44227@lido-gw02:~/nobackup/ncbi-blast-2.6.0+/db/nrdb>perl update_blastdb.pl nr --passive
Can't locate Archive/Tar.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at update_blastdb.pl line 42.
BEGIN failed--compilation aborted at update_blastdb.pl line 42.

Does anyone have idea how to fix this?

Another thing I would like to ask: Is it also possible to doenload only the files which were not avaialable previously like the files from nr62.tar.gz to nr90.tar.gz rather than updating?

update BLAST database • 5.4k views
ADD COMMENT
0
Entering edit mode

For now I would say, just remove everything and execute the update script. I thought it already was that it downloads new files and also update. You always need to update everything.

you may need to update your perl. https://stackoverflow.com/questions/47801223/how-to-fix-cant-locate-archive-tar-pm

ADD REPLY
0
Entering edit mode

I believe the update_blastdb.pl script should do what you want, and only download files that are missing/need updating.

It looks like a problem with your perl install as @gb said.

ADD REPLY
0
Entering edit mode

Yes I did same but the same error:

tb44227@lido-gw01:~/nobackup/ncbi-blast-2.6.0+/db/nrdb>update_blastdb.pl

Can't locate Archive/Tar.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at ./update_blastdb.pl line 42. BEGIN failed--compilation aborted at ./update_blastdb.pl line 42.s

ADD REPLY
1
Entering edit mode

In the terminal:

cpan -i Archive::Tar

Also check your perl version:

perl -v
ADD REPLY
1
Entering edit mode

That might fix it. Tar has been included as standard in Perl for a while now though, so this would suggest that the version of perl in use is just very out of date.

The more 'robust' solution, would probably be the latest version of perl installed from scratch.

Unless of course there are compatibility issues that would break a load of things if it was upgraded, which is very possible in the world of bioinformatics!

ADD REPLY
0
Entering edit mode

Yes that's the same error. Perl is telling you what the problem is:

Can't locate Archive/Tar.pm in @INC

Perl is missing a library in its include path for dealing with tar-ed files. You need to reinstall or update perl. Googling your error finds the exact same stackoverflow thread that @gb found.

Just follow that thread through.

ADD REPLY

Login before adding your answer.

Traffic: 2973 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6