How can I convert .ali file to FASTA format?
0
0
Entering edit mode
2.9 years ago

I found .ali file with alignment in this article but I can't open it properly, can you please suggest some programs or web applications to convert it to a more convenient format?

fasta ali • 1.2k views
ADD COMMENT
1
Entering edit mode

You can open it with a text editor (vi, nano, gedit, geany, textpad etc on GNU-linux, notepad++ on windows). However, the file seems to be in non-standard .ali format. There are many ali files and I looked at 13062_2009_161_MOESM2_ESM.ali.

Try this script: tr -s $'\t' < 13062_2009_161_MOESM2_ESM.ali | awk -v OFS="\n" '{print ">"$1,$2}' > 13062_2009_161_MOESM2_ESM.fa

ADD REPLY
0
Entering edit mode

Thanks a lot!!! Your script has solved my problem)

ADD REPLY

Login before adding your answer.

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