Package Bio :: Package AlignAce :: Module AlignAceStandalone
[hide private]
[frames] | no frames]

Source Code for Module Bio.AlignAce.AlignAceStandalone

 1  # Copyright 2003 by Bartek Wilczynski.  All rights reserved. 
 2  # This code is part of the Biopython distribution and governed by its 
 3  # license.  Please see the LICENSE file that should have been included 
 4  # as part of this package. 
 5   
 6  """ 
 7   
 8  This module provides code to work with the standalone version of AlignACE,  
 9  for motif search in DNA sequences. 
10   
11  AlignACE homepage: 
12   
13  http://atlas.med.harvard.edu/ 
14   
15  AlignACE Citations: 
16   
17  Computational identification of cis-regulatory elements associated with  
18  groups of functionally related genes in Saccharomyces cerevisiae,  
19  Hughes, JD, Estep, PW, Tavazoie S, & GM Church, Journal of Molecular  
20  Biology 2000 Mar 10;296(5):1205-14. 
21   
22  Finding DNA Regulatory Motifs within Unaligned Non-Coding Sequences  
23  Clustered by Whole-Genome mRNA Quantitation,  
24  Roth, FR, Hughes, JD, Estep, PE & GM Church, Nature Biotechnology  
25  1998 Oct;16(10):939-45.  
26   
27  functions: 
28  AlignAce - runs the AlignACE standalone prgram and returns the  
29  ApplicationResult object 
30  """ 
31   
32  import os 
33   
34  from Applications import AlignAceCommandline 
35   
36   
37   
38 -def AlignAce(infile, cmd="AlignACE", **keywds):
39 """Runs AlignACE and returns data. 40 41 cmd == AlignACE executable 42 infile == sequence file to process 43 44 You may pass more parameters to **keywds to change the behavior of 45 the search. Otherwise, optional values will be chosen by blastall. 46 47 numcols number of columns to align (10) 48 expect number of sites expected in model (10) 49 gcback background fractional GC content of input sequence (0.38) 50 minpass minimum number of non-improved passes in phase 1 (200) 51 seed set seed for random number generator (time) 52 undersample possible sites / (expect * numcols * seedings) (1) 53 oversample 1/undersample (1) 54 """ 55 56 if not os.path.exists(cmd): 57 raise IOError("Executable does not exist at %s" % cmd) 58 59 if not os.path.exists(infile): 60 raise IOError("Input file does not exist at %s" % infile) 61 62 AlignCmd = AlignAceCommandline(cmd) 63 64 AlignCmd.set_parameter("input",infile) 65 66 for (par,val) in keywds.iteritems(): 67 AlignCmd.set_parameter(par,val) 68 69 return AlignCmd.run()
70