Entering edit mode
22 months ago
Yoosef
▴
60
Hello Biostars community
I wanted to use split-3 function of sratoolkit to split my pair-ended RNA-seq files to two fastq files. However, after inserting the code, I get the following error. What is the problem?
./fastq-dump --split-3
2023-01-29T12:54:14 fastq-dump.3.0.2 err: param empty while validating argument list - expected accession
Thanks for your help. Actually I was trying to use following loop to split my SRA files. However, I think the problem relates to my file extensions as they don't have .sra. How can I add that to the end of all my files?
Did you download the files from SRA using
prefetch
?No. I downloaded them by clicking on download link in NCBI website.
Try processing one file and see it works before you try the loop. In case your files are corrupt this is not going to work.
Sure. Thanks for your help.
If you are sure the files are in
.sra
format then you could rename one file and try. Something likeI suggest you try instead
Thanks. Yes files are in sra format. I could solve this by adding a .sra to each file. I was just wondering, is there a way to add .sra to all files by using a code in linux?
If all commands look correct then remove
echo
to actually do the renaming.If you want to be super careful the you could
cp ${i} ${i}.sra
(instead ofmv
command) leaving a copy of original files intact.