[Biopython-dev] 5/23 Stack Overflow - Biopython questions

Feed My Inbox updates at feedmyinbox.com
Sun May 23 06:10:29 UTC 2010


==================================================
1. 50 sequences in one line
==================================================
May 22, 2010 at 9:27 AM

I have Multiple sequence alignment (clustal) file and I want to read this file and arrange sequences in such a way that it looks more clear and precise in order. 

I am doing this from biopython using AlignIO object. My codes goes like this:

alignment = AlignIO.read("opuntia.aln", "clustal")

print "Number of rows: %i" % len(align)

for record in alignment:
    print "%s - %s" % (record.id, record.seq)


My Output -- http://i48.tinypic.com/ae48ew.jpg , it looks messy and long scrolling. What i want to do is print only 50 sequences in each line and continue till the end of alignment file. 

I wish to have output like this http://i45.tinypic.com/4vh5rc.jpg from http://www.ebi.ac.uk/Tools/clustalw2/.

Any suggestions, algorithm and sample code is appreciated

Thanks in advance

Br,

http://stackoverflow.com/questions/2888257/50-sequences-in-one-line

--------------------------------------------------

===========================================================
Source: http://stackoverflow.com/questions/tagged/?tagnames=biopython&sort=active
This email was sent to biopython-dev at lists.open-bio.org.

Account Login: 
https://www.feedmyinbox.com/members/login/
Don't want to receive this feed any longer? Unsubscribe here: http://www.feedmyinbox.com/feeds/unsubscribe/311789/3e0b2a02a42e76a71e4f14abbbfad2f294f545ce/
-----------------------------------------------------------
This email was carefully delivered by FeedMyInbox.com. 
230 Franklin Road Suite 814 Franklin, TN 37064




More information about the Biopython-dev mailing list