如何用Linux从NCBI批量下载数据

2021-03-24  本文已影响0人  这是李金辉呀

引用自

https://blog.csdn.net/sunwanying123/article/details/80885662

摘要:

esearch -db sra -query PRJNA355614  | efetch -format runinfo > runinfo.csv 
cat runinfo.csv | cut -f 1 -d ',' | grep SRR  > sraids.txt
 cat sraids.txt | awk ' { print "prefetch " $1  "  &"} ' > get-data.sh
 bash get-data.sh 
 cat sraids.txt | awk ' { print "fastq-dump --split-3  -O sra " $1 } ' > split-data.sh
nohup bash split-data.sh &
上一篇下一篇

猜你喜欢

热点阅读