【发布时间】:2022-12-28 04:40:22
【问题描述】:
I posted yesterday about a problem with my code that I found out today is oddly not a problem with my code?
I've been trying to download genomic data from NCBI databases using the biomartr package:
install.packages("devtools")
library(devtools)
devtools::install_github("hadley/devtools")
devtools::install_github("HajkD/biomartr", build_vignettes = TRUE, dependencies = TRUE)
library(biomartr)
options(timeout = 300000)
is.genome.available(db = "refseq", organism = "Homo sapiens")
MtbCDC1551 <- getGenome(db = "refseq",
organism = "GCF_000008585.1",
path = "~/Rdir/_ncbi_downloads/genomes",
reference = FALSE)
What I'm trying to download in this case is kind of irrelevant, as the plan is to just specify whatever I want and run this using that, but right now I'm running into a problem:
>MtbCDC1551 <- getGenome(db = "refseq",
+ organism = "GCF_000008585.1",
+ path = "~/Rdir/_ncbi_downloads/genomes",
+ reference = FALSE)
Starting genome retrieval of 'GCF_000008585.1' from refseq ...
The download session seems to have timed out at the FTP site 'https://ftp.ncbi.nlm.nih.gov/genomes/all/GCF/000/008/585/GCF_000008585.1_ASM858v1/GCF_000008585.1_ASM858v1_genomic.fna.gz'. This could be due to an overload of queries to the databases. Please restart this function to continue the data retrieval process or wait for a while before restarting this function in case your IP address was logged due to an query overload on the server side.
Error: Please provide a valid file path to your genome assembly file.
I've tried this on a Mac, and it works. I own a windows PC running windows 10, and this error persists. On the mac I was running 4.2.0 but literally just pasted this from the manual on the windows laptop trying both versions to no avail. What do I need to do settings wise on Windows to allow this? I've given all the firewall permissions to the R executable and Rstudio that I can think of, what am I missing
【问题讨论】:
标签: r ftp windows-10 bioinformatics firewall