convert DNA FASTA file to RNA FASTA file
2
0
Entering edit mode
3.2 years ago
xiaoleiusc ▴ 140

Hi, All,

Is there a tool to convert a DNA FASTA file to an RNA FASTA file? I know there are online servers that could accept DNA sequences and do the conversion, however, it seems that these servers do not accept DNA FASTA files.

Thanks,

Xiao

RNA-Seq ChIP-Seq sequence • 3.3k views
ADD COMMENT
0
Entering edit mode

There is no such thing as DNA FASTA and RNA FASTA. What operations are referring to here? Is it reverse complement + changing Ts to Us? If so, you'll need to chain those two operations.

Can you show us some online tools that do what you want "but not on files"?

ADD REPLY
0
Entering edit mode

Hi, Ram,

Sorry for the confusion. I mean changing T s to U s (not reverse complement). Basically, I have a DNA file in FASTA format, and I would like to change the T s in the DNA to U s.

Thanks. Xiao

ADD REPLY
1
Entering edit mode
3.2 years ago
Mensur Dlakic ★ 27k

esl-reformat from the easel package - also gets compiled as part of HMMer - will do all kinds of biological sequence conversions, including what you need.

ADD COMMENT
0
Entering edit mode

Hi, Mensur,

Thank you very much for introducing the esl-reformat.

Xiao

ADD REPLY
1
Entering edit mode
3.2 years ago
JC 13k

The servers I am aware can accept DNA/RNA with autodetection, but you can convert it as:

$ cat test.fa
>seq_0
ATGCTTACTGGGTGATC
>seq_1
TTGCCTCACCGNACTGC
>seq_2
ACTGATTCGCCTAATAA
$ perl -pe 'tr/tT/uU/ unless(/>/)' < test.fa
>seq_0
AUGCUUACUGGGUGAUC
>seq_1
UUGCCUCACCGNACUGC
>seq_2
ACUGAUUCGCCUAAUAA
ADD COMMENT
0
Entering edit mode

Hi, JC, Your Perl script works well! Thanks.

Xiao

ADD REPLY

Login before adding your answer.

Traffic: 1995 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