Unconfigured Ad

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

    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
                    Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
                    by SEQadmin2


                    Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

                    The systematic characterization of the human proteome has
                    ...
                    07-20-2026, 11:48 AM
                  • SEQadmin2
                    Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
                    by SEQadmin2



                    Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
                    ...
                    07-09-2026, 11:10 AM
                  • SEQadmin2
                    Cancer Drug Resistance: The Lingering Barrier to Rising Survival
                    by SEQadmin2



                    Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

                    There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
                    07-08-2026, 05:17 AM

                  ad_right_rmr

                  Collapse

                  News

                  Collapse

                  Topics Statistics Last Post
                  Started by SEQadmin2, 07-24-2026, 12:17 PM
                  0 responses
                  16 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 07-23-2026, 11:41 AM
                  0 responses
                  18 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 07-20-2026, 11:10 AM
                  0 responses
                  24 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 07-13-2026, 10:26 AM
                  0 responses
                  37 views
                  0 reactions
                  Last Post SEQadmin2  
                  Working...