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

rsync_from_ncbi.pl: unexpected FTP path (new server?) #653

Open
apn83 opened this issue Nov 13, 2022 · 4 comments
Open

rsync_from_ncbi.pl: unexpected FTP path (new server?) #653

apn83 opened this issue Nov 13, 2022 · 4 comments

Comments

@apn83
Copy link

apn83 commented Nov 13, 2022

Hi,
I am trying to build the database. But there is this constant issue
rsync_from_ncbi.pl: unexpected FTP path (new server?) for https://ftp.ncbi.nlm.nih.gov/genomes/all/GCF/000/762/265/GCF_000762265.1_ASM76226v1

I used both default and --use-ftp option. But still this issue arises.
I installed using

conda install -c bioconda kraken2

The folder so far, has only 2 items:
taxonomy - 37.1gb
library/archea - 449 kb

Kindly help in resolving this. I guess the expected database size is approx. 100 Gb

Thanks.

@mkazanov
Copy link

mkazanov commented Nov 15, 2022

The same is here:

$kraken2-build --download-library bacteria --db /data3/SOFT/kraken2/krakendb
rsync_from_ncbi.pl: unexpected FTP path (new server?) for https://ftp.ncbi.nlm.nih.gov/genomes/all/GCF/900/128/725/GCF_900128725.1_BCifornacula_v1.0

How is possible to resolve this problem?

@ffontani
Copy link

A solution that worked for me can be found in another issue posted here: #292 (comment)

@MaryoHg
Copy link

MaryoHg commented Nov 27, 2022

Dear all,

I was having the same issue, however, the answer in #292 didn't help me.
You must modify two scripts. I followed the instructions by #525, given by @aeu79 here

Is it solved?

Yes, but there is no new release (I just tested it in a fresh install). After installing with install_kraken2.sh, go to the "KRAKEN2_DIR" and modify these two files:

download_genomic_library.sh (line 17) FTP_SERVER="**ftp**://$NCBI_SERVER" to FTP_SERVER="**https**://$NCBI_SERVER"

rsync_from_ncbi.pl (line 46) if (! ($full_path =~ s#^**ftp**://${qm_server}${qm_server_path}/##)) { to if (! ($full_path =~ s#^**https**://${qm_server}${qm_server_path}/##)) {

Source: Commit 1 Commit 2

Then I ran the two following codes to be able to download both libraries needed: bacteria and archaea, even fungi.
$ kraken2-build --download-library bacteria --db dbprok --threads 56 2>&1 | tee log.bact

Note: 2>&1 | tee log.bact send the stderr and stdout to a file called log.bact and at the same time print into the console itself.

Hope it helps.

@tzaquin
Copy link

tzaquin commented Dec 11, 2022

Dear all,

I was having the same issue, however, the answer in #292 didn't help me. You must modify two scripts. I followed the instructions by #525, given by @aeu79 here

Thank you, still running it but it skipped the ftp error

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

5 participants