Entering edit mode
3.9 years ago
pt.taklifi
▴
60
Hi everyone.
I am trying to download a list of sra files from SRA sever. I stored all SRA accession codes in a file named accList.txt
so that each line is one accession code.
I want to use nohup
to download all of the files automatically . I run the code below but it seems that it does not work properly.
nohup bash -c "while read -r line; do prefetch --ngc prj_26719_D29472.ngc $line ; done < accList.txt " 2>error.out
and in the out put file nohup.out
I get the follwing message.
Usage:
prefetch [options] <SRA accession> [...]
Download SRA files and their dependencies
prefetch [options] --cart <kart file>
Download cart file
prefetch [options] <URL> --output-file <FILE>
Download URL to FILE
prefetch [options] <URL> [...] --output-directory <DIRECTORY>
Download URL or URL-s to DIRECTORY
prefetch [options] <SRA file> [...]
Check SRA file for missed dependencies and download them
can anyone please help me with this issue? thank you
Somewhat related comment, but not an answer to the specific question: consider using
tmux
orscreen
instead ofnohup
, its much more user-friendly and powerful once you get used to it.tmux
onmosh
is computer heaven