But my "Bio.Align.Applications.ClustalwCommandline" wrapper is not working. There is import error in application, i dont know where i have mistaken.
Question: Clustalw alignment problem |
||
2
|
Hi everyone, I tried these lines ................................................
............................................. But couldn't proceed with these errors .............................................
................................................. test.aln is not generated too .................................................. Thanks |
|
4
|
looks like you're using a deprecated function. have a look at the docstring. specifically:
|
|
3
|
Although as Brent has pointed out the Bio.Clustalw.do_alignment function is considered to be obsolete, the example does run fine for me using Mac and Windows (once the missing line "from Bio import Clustalw" is added). Could you try updating to your Python installation, and/or running this at the python prompt at the windows command line (a "DOS" shell)? I think you are seeing an old Windows non-command line specific bug in Python's subprocess module: http://bugs.python.org/issue1124861 |
|
|
| ||
0
|
Got new configuration: --Python26 --Biopython 1.54 --Clustalw2
According to the code i think it should generate (opuntia.aln and opuntia.dnd) files automatically after run. But, i am not getting these output files. I tried to figure out from [1]: http://www.biopython.org/DIST/docs/tutorial/Tutorial.html#htoc75 but not working :( I get -1 while printing return_code instead of 0 Any suggestions? |
|
|
You can see the command line used with: print str(cline) Check this works by trying it manually (copy and paste to the Windows command prompt). My guess is you don't have clustalw.exe on the path (and you are not giving a full path), or you don't have opuntia.fasta in the current directory. | ||
-1
|
I think now it will be more clear with these images linked below to deliver my problem Even when i tried with full path couldn't generate output (.aln or .dnd). Doesn't it mean that successful run should generate output in the same directory? |
|
|
| ||
Can you add this question as a followup of your last question, or provide a link to your last question ? Thanks.
looks like you're using a deprecated function. have a look at the docstring: http://github.com/biopython/biopython/blob/master/Bio/Clustalw/init.py#L108
specifically: """ This function (and the associated command line object) are now obsolete. Please use the Bio.Align.Applications.ClustalwCommandline wrapper with the Python subprocess module (and Bio.AlignIO for parsing) as described in the tutorial."""
maybe this would also be a good answer not just a comment
@Istvan, yep. done.
please don't "community wiki" unless you know what does it mean.