This is worth of trying, thank you!
I have cut the 3`adapters from my RNA-Seq sequences with cutadapt 2.6 and when loading the trimmed sequences for alignment in Rsubread, program is aborted after several lines with the "ERROR: a format issue @ is found on the 393884-th line in input file".
I did not find anything about this issue in any of the manuals for either cutadapt or Rsubread. I am also quiet new to this, so don´t know if I did not just overlooked something obvious...
Would anyone know how to proceed further, please?
2 answers
Kudos to Marcel M (developer of Cutadapt) for addressing this issue after quoting biostars post and same issue raised by another user on github.
https://github.com/marcelm/cutadapt/issues/428
(pardon me for making this as a separate comment to the issue)
Log in to answer this question.
Output of
head -n 393884 your.fastq | tail?Did not work for some reason, so I tried in R:
Read 1 item
[1] "@7001425F:195:CDYHMANXX:3:1102:19436:35854 1:N:0:CACTCA"
Can you show a few lines before and after than. The issue is probably somewhere there.
It seems there is missing line, for some reason:
Read 18 items
Yes, the file is corrupted as for
"@7001425F:195:CDYHMANXX:3:1102:19414:35790 1:N:0:CACTCA"two lines are missing. Consider to use e.g.repair.shfrom BBmap to try and fix the file, discarding the corrupted part.Thank you for your help. But as this is becoming far too "black box" for me and as there is only small fraction of sequences with adapters, I´ll probably try to go for alignment without trimming. Or try different tool to cut the adapter. Is it legitimate?
Filtering all the reads (minimal length was set to 10) solved the issue!
Thank you all for your help!
I moved @cpad0112's comment to an answer. Since it worked in your case you can accept the answer to provide closure to this thread.
If an answer was helpful, you should upvote it; if the answer resolved your question, you should mark it as accepted. You can accept more than one if they work.
