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

/path error when running ncbi-genome-download in a shell script #216

Open
KinSimon96 opened this issue Sep 19, 2023 · 1 comment
Open

/path error when running ncbi-genome-download in a shell script #216

KinSimon96 opened this issue Sep 19, 2023 · 1 comment
Labels
need info Needs more info from the issue reporter

Comments

@KinSimon96
Copy link

Hello,

I need to download genome of multiple bacteria species, and to make it faster, I want to use a bash script:

`#!/bin/bash

species=(
"Bacillus anthracis"
"Bordetella bronchiseptica"
"Bordetella parapertussis"
"Bordetella pertussis"
"Candida albicans"
"Chlamydia pneumoniae"
"Chlamydia psittaci"
"Chlamydia trachomatis"
"Corynebacterium sp."
)

for s in "${species[@]}"; do
ncbi-genome-download --formats fasta,assembly-report bacteria --genera "$s"
done`

running ./dl_bacteria_genomes.sh, I have this following error:
File "/usr/lib/python3.8/os.py", line 213, in makedirs
makedirs(head, exist_ok=exist_ok)
[Previous line repeated 4 more times]
File "/usr/lib/python3.8/os.py", line 223, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/path'

If I download in the same linux pwd each species separately: ncbi-genome-download --formats fasta,assembly-report bacteria --genera "Bacillus anthracis", it's working correctly.

Any ideas of why this does not work using bash script ?

Thanks,
Simon

@kblin kblin added the need info Needs more info from the issue reporter label Jul 3, 2024
@kblin
Copy link
Owner

kblin commented Jul 3, 2024

I can't reproduce this on my end copying your exact script. The downloads run as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need info Needs more info from the issue reporter
Projects
None yet
Development

No branches or pull requests

2 participants