Harvard:Biophysics 101/2007/Notebook:Michael Wang/2007-2-13

From OpenWetWare

(Difference between revisions)
Jump to: navigation, search
(New page: I've managed to figure out how to get clustal working (or at least executing on a windows machine). These steps are from Shawn. I've just pasted them here for convenience. Code will fol...)
Line 1: Line 1:
I've managed to figure out how to get clustal working (or at least executing on a windows machine).  These steps are from Shawn.  I've just pasted them here for convenience.  Code will follow shortly.   
I've managed to figure out how to get clustal working (or at least executing on a windows machine).  These steps are from Shawn.  I've just pasted them here for convenience.  Code will follow shortly.   
-
 
+
<pre>
From the desktop, right click My Computer and click properties.
From the desktop, right click My Computer and click properties.
In the System Properties window, click on the Advanced tab.
In the System Properties window, click on the Advanced tab.
Line 16: Line 16:
C:\Program Files;C:\Winnt;C:\Winnt\System32; C:\Documents and Settings\Mike\Desktop\clustalw
C:\Program Files;C:\Winnt;C:\Winnt\System32; C:\Documents and Settings\Mike\Desktop\clustalw
 +
 +
In your actual program, you can call clustalw with the following code (also from Shawn)
 +
 +
#!/usr/bin/env python
 +
 +
import os
 +
from Bio import Clustalw
 +
 +
cline = Clustalw.MultipleAlignCL(os.path.join(os.curdir, 'apoe.fasta'))
 +
cline.set_output('test.aln')
 +
alignment = Clustalw.do_alignment(cline)
I hope this helps
I hope this helps
 +
</pre>

Revision as of 20:41, 19 February 2007

I've managed to figure out how to get clustal working (or at least executing on a windows machine). These steps are from Shawn. I've just pasted them here for convenience. Code will follow shortly.

From the desktop, right click My Computer and click properties.
In the System Properties window, click on the Advanced tab.
In the Advanced section, click the Environment Variables button.
Finally, in the Environment Variables window, highlight the path variable
in the Systems Variable section and click edit. Add or modify the path
lines with the paths you wish the computer to access. Each different
directory is separated with a semicolon as shown below.

C:\Program Files;C:\Winnt;C:\Winnt\System32

Add the directory containing clustalw to your path.

In other words, if you unzipped the clustalw zip file into C:\Documents and Settings\Mike\Desktop\clustalw, your final path variable should look like:

C:\Program Files;C:\Winnt;C:\Winnt\System32; C:\Documents and Settings\Mike\Desktop\clustalw

In your actual program, you can call clustalw with the following code (also from Shawn)

#!/usr/bin/env python

import os
from Bio import Clustalw

cline = Clustalw.MultipleAlignCL(os.path.join(os.curdir, 'apoe.fasta'))
cline.set_output('test.aln')
alignment = Clustalw.do_alignment(cline)

I hope this helps
Personal tools