FASTA file contains an unknown character error by rsem
0
1
Entering edit mode
22 months ago
LC ▴ 10

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 • 740 views
ADD COMMENT
1
Entering edit mode

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

tr -d '\r' < xx.fa
ADD REPLY
1
Entering edit mode

dos2unix will edit in place such files

ADD REPLY

Login before adding your answer.

Traffic: 1957 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6