Article View: comp.lang.python
Article #6Python Module for sequence alignments.
From: Alex
Date: Wed, 05 Jul 2000 00:00
Date: Wed, 05 Jul 2000 00:00
42 lines
2493 bytes
2493 bytes
Hi. I made a python module that does simple sequence alignments. If
there is enough interest, I may make it a little more elaborate. You
can get it from
http://puffin.lcs.mit.edu:8080/align.tgz
To use it on linux
tar zxf align.tgz
cd align
make
and make the align directory accessible to python, with a command like
setenv PYTHONPATH `pwd`:${PYTHONPATH}
It needs the Numeric extension.
Here's an example of how it works from the command line:
>>> import align
>>> align.align ('aneotuhaneot', 'asneouhoteuh')[0][0][:3]
('neotuhane', 'sneouhote', '----uh--e')
The second element of the tuple it returns is the matrices used to
calculate the optimal alignments.
I don't really care how you use or change this, nor will I assume any
legal culpability for problems arising from its use. For instance, if a
bug in this code tricks you into genetically engineering Giant
Super-Intelligent Man-Eating Lizards, I may cackle evilly, but I won't
explicitly own up. I may take on the care and feeding of one or two of
them if you can prove they will co-exist peacefully with my cat, but
that's definitely as far as it goes.
But please do let me know of any problems with it, or any suggestions
you have about how I could improve it. If you make any use or
improvements to it yourself, I would love to hear about them.
Alex.
Technical Details
Message-ID:
<etdg0pppszv.fsf@w20-575-32.mit.edu>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa6b6,1f4f992f10c939a1,start X-Google-Attributes: gidfa6b6,public X-Google-Thread: 10dd18,1f4f992f10c939a1,start X-Google-Attributes: gid10dd18,public X-Google-Thread: 10e2ff,1f4f992f10c939a1,start X-Google-Attributes: gid10e2ff,public From: Alex <cut_me_out@hotmail.com> Subject: Python Module for sequence alignments. Date: 2000/07/05 Message-ID: <etdg0pppszv.fsf@w20-575-32.mit.edu> X-Deja-AN: 642823840 Approved: BIOSCI Approval Key <biosci-approval-key@net.bio.net> X-Trace: niobium.hgmp.mrc.ac.uk 962833134 13740 193.62.192.80 (5 Jul 2000 21:38:54 GMT) Organization: None X-Auth: PGPMoose V1.1 PGP bionet.biology.computational iQCVAwUAOWOq7KCIqsWvyF5FAQE96wP+O5SYy4OoXvaGtQQe6UjATWfLnWp/qLip GJ46UY/yoJZ2UMeXxin/g8SMXNFaHtJ33WDN4FBeU135dHDn7TBFZlLiJpZTzKi8 u96dPIZByIcClL7vIWrHJJTAr3PUM70njV1LQKqCg9NqDjX+F0qzjTdYmQL5ZnnI d4ObDISj0mw= =X0TA NNTP-Posting-Date: 5 Jul 2000 21:38:54 GMT Newsgroups: comp.lang.python,bionet.biology.computational,bionet.software X-Complaints-To: news@net.bio.net