in reply to Re^5: Can't run Clustalw through Bioperl
in thread Can't run Clustalw through Bioperl

---->System couldn't file Clustalw

But I can double click on it and use it. Please excuse me for all this confusion, but it makes no sense to me.

  • Comment on Re^6: Can't run Clustalw through Bioperl

Replies are listed 'Best First'.
Re^7: Can't run Clustalw through Bioperl
by Marshall (Canon) on Mar 14, 2016 at 05:25 UTC
    $ENV{CLUSTALDIR} = 'C:\Program Files (x86)\ClustalW2';

    Please look very carefully at the path. On my current machine, I have both /Program Files (x86)/ and just /Program Files/ directories. Almost all my Program Files are in the "plain" directory. Just one program lives in /Program Files (x86)/.

    I can't say for sure whether this will help or not, but it is an anomaly that I noticed on this particular machine.

      The (x86) variant is where 32 bit applications live. The "plain" directory contains 64 bit apps. It's a pretty good bet that the OP's application is 32 bit.

      Premature optimization is the root of all job security
        Well the machine that I saw this on is a Win XP laptop! No 64 bit here! By definition, all apps are 32 bit. I was just wondering if there is some path mismatch between a newer version that installs to the (x86) directory and an older installation that installed into the "plain" directory. I am quite sure that you are correct about 64 bit installations on a 64 bit machine. But I am also sure that in the pre-64 bit era the same thing happened. This (x86) thing is new.
Re^7: Can't run Clustalw through Bioperl
by 1nickt (Canon) on Mar 14, 2016 at 05:05 UTC

    --->System couldn't file Clustalw

    Isn't the file supposed to be called clustalw.exe? Does the error message really mention a file with a capital letter in the name?

    I fear you have some basic file path/permission problem, with which I could scarcely help from afar, even if I knew Windows.

    The way forward always starts with a minimal test.
Re^7: Can't run Clustalw through Bioperl
by poj (Abbot) on Mar 14, 2016 at 17:13 UTC

    What is the name of the file you double click on. Is it clustalw2.exe ?

    poj

      yeap the file is clastalw2.exe and NOT clustalw.exe as written on perl error.I was cleary searching for wrong file.

      If I C:\> where clustalw2.exe I get eventually: C:\Program Files (x86)\ClustalW2\clustalw2.exeSo I can find the executable by command line. But

       'C:\Program Files (x86)\ClustalW2' is the same i use from the beggining, and even though I ve put ENV{CLUSTALDIR} on the script and add it to Windows Path variable i have this error..

        Try creating a shortcut clustalw.exe to C:\Program Files (x86)\ClustalW2\clustalw2.exe

        or add this line to your code

        $Bio::Tools::Run::Alignment::Clustalw::PROGRAM_NAME = 'clustalw2';
        poj