安装软件
conda activate rna
conda install sra-tools
fastq-dump --help
第一种方法:
时间较长,比如半小时
fastq-dump --gzip --split-3 -O ~/ /teach/project/1.rna/1.sra_data/SRR1039510.sra
# 循环方法:
cat SRR_Acc_List.txt | while read id; do (fastq-dump --gzip --split-3 -O ~/ ${id}.sra);done 结果示例:/teach/project/1.rna/2.raw_fq
推荐第二种方法!!!
时间:一般几分钟-十几分钟
1. 帮助文档
(rna) qmcui 10:35:58 /teach/project/3.scRNA-seq/1.TNBC-CNA
$ fasterq-dump --help
Usage:
fasterq-dump <path> [options]
Options:
-o|--outfile output-file
-O|--outdir output-dir
-b|--bufsize size of file-buffer dflt=1MB
-c|--curcache size of cursor-cache dflt=10MB
-m|--mem memory limit for sorting dflt=100MB
-t|--temp where to put temp. files dflt=curr dir
-e|--threads how many thread dflt=6
-p|--progress show progress
-x|--details print details
-s|--split-spot split spots into reads
-S|--split-files write reads into different files
-3|--split-3 writes single reads in special file
--concatenate-reads writes whole spots into one file
-f|--force force to overwrite existing file(s)
-N|--rowid-as-name use row-id as name
--skip-technical skip technical reads
--include-technical include technical reads
-P|--print-read-nr print read-numbers
-M|--min-read-len filter by sequence-len
--table which seq-table to use in case of pacbio
--strict terminate on invalid read
-B|--bases filter by bases
-h|--help Output brief explanation for the program.
-V|--version Display the version of the program then
quit.
-L|--log-level <level> Logging level as number or enum string. One
of (fatal|sys|int|err|warn|info|debug) or
(0-6) Current/default is warn
-v|--verbose Increase the verbosity of the program
status messages. Use multiple times for more
verbosity. Negates quiet.
-q|--quiet Turn off all status messages for the
program. Negated by verbose.
--option-file <file> Read more options and parameters from the
file.
fasterq-dump : 2.9.6
2.SE数据循环运行
ls /teach/project/3.scRNA-seq/1.TNBC-CNA/1.sra-data/omit/*sra|while read ids;do id=`basename $ids .sra`;echo $id;fasterq-dump -e 5 -S -p -o $id.fastq $ids 1>$id.fq.log 2>&1;done
# -e 线程是5的时候
3.SE数据运行示例
image.png image.png4.测试时间
2.6G下载到的sra,线程为5,转化成fq并压缩的时间一共用了6min左右
网友评论