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

                  • SEQadmin2
                    Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
                    by SEQadmin2



                    Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

                    Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
                    ...
                    10-14-2026, 09:55 AM
                  • SEQadmin2
                    New Genomics Technologies Take Aim at Long-Standing Limits
                    by SEQadmin2


                    Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

                    We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
                    ...
                    09-28-2026, 10:25 AM

                  ad_right_rmr

                  Collapse

                  News

                  Collapse

                  Topics Statistics Last Post
                  Started by SEQadmin2, 10-22-2026, 11:13 AM
                  0 responses
                  27 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 10-22-2026, 10:48 AM
                  0 responses
                  20 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 10-15-2026, 10:52 AM
                  0 responses
                  36 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 10-14-2026, 05:39 AM
                  0 responses
                  43 views
                  0 reactions
                  Last Post SEQadmin2  
                  Working...