This is a test version of Biostars. For the public version, visit https://www.biostars.org.
FASTA file contains an unknown character error by rsem

RSEM produces "FASTA file contains an unknown character contains an unknown character, (ASCII code 13), at line XXX, position XXX" but not STAR during the indexing step. The problem has been mentioned elsewhere like https://groups.google.com/g/trinityrnaseq-users/c/BBvbInEQmLU/m/RqAM6k3MCgAJ?pli=1]

I solved my problem by:

  1. sed -n "l" XX.fa to check the fa file
  2. if you see \r in the file, you can use notepad++ to replace the \r with blank
fasta

f you see \r in the file, you can use notepad++ to replace the \r with blank

tr -d '\r' < xx.fa

dos2unix will edit in place such files

0 answers

No answers yet.

Log in to answer this question.