Entering edit mode
6.2 years ago
saadleeshehreen
▴
140
I am trying to quantify the expression of my genes by using salmon. The command is following
salmon quant -p 10 -i ensembl_index/ -l A -1 SRR1056045_2.fastq.gz -2 SRR1056045_1.fastq.gz -o ensembl_quant
But got the following error message:
Error reading from the FASTA/Q stream. Minimum return code for left and right read was (-2). Make sure the file is valid.
I was trying to analyse 5 .sra files which were downloaded from ncbi. Two of my files were OK, but enter-count problems with rest three. Same error message for them. Is it the problem with those .sra files?
Thanks
If you are worried about sra files, you can directly download your fastq.gz files here:
https://www.ebi.ac.uk/ena/data/view/SRR1056045
Dear Biostars Community
salmon throws me the exact same error message "Error reading from the FASTA/Q stream. Minimum return code for left and right read was (-2)". However I have my own files, and I get this error only for one file out of 20.
This is the code I use:
All my files are named *-read1concat.fastq and *-read2concat.fastq. For 19 it's fine, for one is not. What could be wrong with my file? I already used this file before, and had no problems. Thank you for any hint!
Plese do not ask questions in old threads. Open a new one. Go manually through your code for one representative iteration and see if
$i
and$j
give the necessary output. Probably something is flawed parsing the two files in your script.Salmon's parser uses kseq under the hood, and it simply propagates the kseq error code if it encounters one. This one seems to suggest that one of the files had a truncated quality string (i.e. the quality string was shorter than the corresponding read).