Stand-Alone Clustalw Generating No Results!!
1
0
Entering edit mode
12.7 years ago
Nikita ▴ 10

here is my php code:

$input_filename = "C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\seq.txt";
$output_filename = "C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\result.aln";
$command = "C:\Program Files\ClustalW2>clustalw2 -INFILE=".$input_filename." -OUTFILE=".$output_filename;
exec($command);

However this does not generate an alignment file as required! However it generates sum file named clustalw2 but writes nothin to this file as well.. Any help will be appreciated

Also i tried the same code in cmd bt it generates an error which states "Error: parameter required for /outfile"

clustalw multiple • 2.5k views
ADD COMMENT
0
Entering edit mode

From the command line, try to set the -TYPE of molecule and the -OUTPUT format and see if that helps. Also, I don't code with php but it looks like there may be an issue with the quoting in the command. Maybe it looks strange because I don't code in php or use a PC ;)

ADD REPLY
0
Entering edit mode

@SES: After adding the -type of molecule it gives output in the cmd and also generates a result.aln file.. however it still fails to generate a file via the php script

ADD REPLY
0
Entering edit mode
12.7 years ago
Nikita ▴ 10

Finally got it working.. Here is the code..

$res = exec('C:\\clustalw2 -INFILE=seq.fasta -ALIGN -TYPE=Protein -OUTFILE=res.aln',$out);
print_r($out);

the problem was > before the executable. Also i found that clustalw has a bug which does not read files on windows desktop.. So shifted my files to C drive... and got the code running!!!

ADD COMMENT

Login before adding your answer.

Traffic: 2320 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6