Question: How to Convert Fasta format or .aln format to PIR format ??
gravatar for rajkishore.ouatbi
6.1 years ago by
rajkishore.ouatbi10 wrote:

I have fasta format. Can anyone say how to convert the fasta format to pir format.

Also, I have clustalw alignment format, then how to convert clustalw alignment format to PIR or .ali format.

ADD COMMENTlink modified 6.1 years ago by _r_am31k • written 6.1 years ago by rajkishore.ouatbi10

Jalview allows saving in PIR-format. You could try saving the alignment as PIR in Jalview ( )? 

ADD REPLYlink modified 5.3 years ago by _r_am31k • written 5.3 years ago by Rlille0
gravatar for _r_am
6.1 years ago by
Baylor College of Medicine, Houston, TX
_r_am31k wrote:


There are plenty of biological format converters out there. A simple Google search would reveal quite a few. Off the top of my head, the EMBOSS suite of tools (web version here, stand-alone here) should help you get going.

ADD COMMENTlink modified 13 months ago • written 6.1 years ago by _r_am31k

Sorry, this is not giving the better O/P, is provided by python script in Modeller for converting to FASTA to PIR.

If there is plenty of servers don't mind, I have gone through 2hrs, please share em some of them.

ADD REPLYlink written 6.1 years ago by rajkishore.ouatbi10

I could help you out with specific problems, but I'm not sure I can do your search for you. Another option off the top of my head is readseq.

If you were to elaborate your first statement, specifically on how you think the output provided by EMBOSS does not conform to your requirement, perhaps it can be tweaked. If sequence conversion has been unsuccessful for so long, then either the approach or the requirement should be given a deeper look, IMO.

ADD REPLYlink modified 13 months ago • written 6.1 years ago by _r_am31k

Here the link, says - 404 not found.

Actually, I need the O/P like this,

sequence::     : :     : :::-1.00:-1.00
ADD REPLYlink modified 13 months ago by _r_am31k • written 6.1 years ago by rajkishore.ouatbi10

Ah, that's because the URL added my parentheses to itself. A mere formatting issue, I apologize. The URL:

EDIT on 14-Oct-2019: The URL issue has been corrected in the original comment.

Your requirement looks like aligned FASTA to me. Source on various alignment formats:

If you supply the right destination format specifier, EMBOSS should work. If you could paste a head of your input, your actual command and the head of your output, that would help.

ADD REPLYlink modified 13 months ago • written 6.1 years ago by _r_am31k


I'm suffering from the same problem as well, basically I'm using modeller and its functionality in my python scripts. Biopython deals with FASTA format, whereas to build a comparative model MODELLER uses PIR file to make use of structural information. I'm having a hard time to deal with this two formats. what I tried to do is first I obtain two sequences in FASTA format and then do aln.append(file = 'file.fasta', align_codes='all', alignment_format='FASTA')

then after that I did:

aln.write(file='5fd1_1fdx_output.fasta', alignment_format='FASTA')
aln.write(file='5fd1_1fdx_ouput.pir', alignment_format = 'PIR')

and used the latter (5fd1_1fdx_ouput.pir) to build the model. but it's not working since I'm loosing information whenever I convert from FASTA to PIR.

so the input FASTA format file is(5fd1_1fdx_sequence.fasta):



and the output file (5fd1_1fdx_ouput.pir):


P1;1fdx sequence:: : : : :::-1.00:-1.00 AYVINDSCIACG--ACKPECPVN-IIQG-SIYAIDADSCIDCGSCASVCPVGA---------------------- -------------PNPED-------------* ```

Does anyone know how to convert it without loosing information?

ADD REPLYlink modified 13 months ago by _r_am31k • written 5.8 years ago by Moses120

I just answered your question in the post you created. HTH

ADD REPLYlink written 5.8 years ago by _r_am31k
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1433 users visited in the last hour