Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Bara'a Al-Hammad
    Member
    • Feb 2014
    • 16

    #1

    Problem configuering clustalW2 on windows

    Hello ...

    How can I configure clustalW2 on windows , so I can use it via command line and biopython scripts ?

    I tried to use it from within cmd but it gives me this :
    Code:
    'clustalW2' is not recognized as an internal or external , operable program or batch file .
    Any help would be highly appreciated .
  • GenoMax
    Senior Member
    • Feb 2008
    • 7142

    #2
    Sounds like you need to provide full path to where clustelw2 executable is located or modify your PATH so that directory is included.

    Comment

    • maubp
      Peter (Biopython etc)
      • Jul 2009
      • 1544

      #3
      The simplest answer is rather than "clustalw" or "clustalw2", give the full path to the binary. This is covered explicitly in the Biopython Tutorial, http://biopython.org/DIST/docs/tutorial/Tutorial.html e.g.

      Code:
      import os
      from Bio.Align.Applications import ClustalwCommandline
      clustalw_exe = r"C:\Program Files\new clustal\clustalw2.exe"
      clustalw_cline = ClustalwCommandline(clustalw_exe, infile="opuntia.fasta")
      assert os.path.isfile(clustalw_exe), "Clustal W executable missing"
      stdout, stderr = clustalw_cline()
      Alternatively, you could try editing the $PATH environment variable (which is how this is normally solved on Linux).

      Comment

      • GenoMax
        Senior Member
        • Feb 2008
        • 7142

        #4
        To edit PATH variable in windows: http://superuser.com/questions/29794...h-in-windows-7

        Comment

        • Bara'a Al-Hammad
          Member
          • Feb 2014
          • 16

          #5
          Many thanks for your replies : GenoMax and Peter , it really helped a lot .

          But now I'm facing another problem

          I tried to do a very simple alignment task just to test the program , and it gave me this :



          How can I deal with this ?
          Last edited by Bara'a Al-Hammad; 12-12-2014, 10:01 AM.

          Comment

          • GenoMax
            Senior Member
            • Feb 2008
            • 7142

            #6
            Test.fasta is not available in c:\Users\A-Hammad directory and the program can't open it. Provide full path instead.

            Comment

            • Bara'a Al-Hammad
              Member
              • Feb 2014
              • 16

              #7
              Originally posted by maubp View Post
              The simplest answer is rather than "clustalw" or "clustalw2", give the full path to the binary. This is covered explicitly in the Biopython Tutorial, http://biopython.org/DIST/docs/tutorial/Tutorial.html e.g.

              Code:
              import os
              from Bio.Align.Applications import ClustalwCommandline
              clustalw_exe = r"C:\Program Files\new clustal\clustalw2.exe"
              clustalw_cline = ClustalwCommandline(clustalw_exe, infile="opuntia.fasta")
              assert os.path.isfile(clustalw_exe), "Clustal W executable missing"
              stdout, stderr = clustalw_cline()
              Alternatively, you could try editing the $PATH environment variable (which is how this is normally solved on Linux).
              Originally posted by GenoMax View Post
              Can't thank you enough : Peter and GenoMax , I'm so grateful for your help .

              I already knew that I should add some environmental variable to fix this , but it's really weird how it didn't work with me until you guys pointed out to the solution

              That's really confusing ... does the variable name has any effect on configuring things correctly ??
              Last edited by Bara'a Al-Hammad; 12-12-2014, 10:02 AM.

              Comment

              • maubp
                Peter (Biopython etc)
                • Jul 2009
                • 1544

                #8
                Yes, $PATH is a special environment variable used for finding programs by name. If you try to run clustalw, or muscle, or ... then the operating system will look in all the folders listed in the $PATH setting.

                Comment

                • Bara'a Al-Hammad
                  Member
                  • Feb 2014
                  • 16

                  #9
                  Thank you Peter for clarifying this

                  Comment

                  Latest Articles

                  Collapse

                  • kinpict.com
                    Reply to 16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
                    by kinpict.com
                    The part about this topic feels surprisingly grounded, and the details on the page is the bit that made me slow down. I’d keep <a href="https://kinpict.com/">ai family photo generator</a> bookmarked for later.
                    Today, 06:37 PM
                  • SEQadmin2
                    16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
                    by SEQadmin2





                    NGS has revolutionized clinical microbiology by offering new ways to identify and surveil pathogens without prior knowledge of the target. One popular approach is 16S rRNA and ITS amplicon sequencing, which targets specific microbial markers. But studies are increasingly incorporating shotgun metagenomics, a technique that sequences all DNA from a sample without targeting specific microbial markers. This approach allows more detailed taxonomic classification,...
                    10-30-2026, 06:46 AM

                  ad_right_rmr

                  Collapse

                  News

                  Collapse

                  Topics Statistics Last Post
                  Started by SEQadmin2, 11-12-2026, 07:59 AM
                  0 responses
                  27 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 11-05-2026, 09:25 AM
                  0 responses
                  35 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 11-03-2026, 11:54 AM
                  2 responses
                  56 views
                  0 reactions
                  Last Post kinpict.com  
                  Started by SEQadmin2, 10-28-2026, 09:57 AM
                  0 responses
                  175 views
                  0 reactions
                  Last Post SEQadmin2  
                  Working...