Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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 .

  • #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


    • #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


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

        Comment


        • #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


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

            Comment


            • #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


              • #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


                • #9
                  Thank you Peter for clarifying this

                  Comment

                  Latest Articles

                  Collapse

                  • seqadmin
                    Non-Coding RNA Research and Technologies
                    by seqadmin




                    Non-coding RNAs (ncRNAs) do not code for proteins but play important roles in numerous cellular processes including gene silencing, developmental pathways, and more. There are numerous types including microRNA (miRNA), long ncRNA (lncRNA), circular RNA (circRNA), and more. In this article, we discuss innovative ncRNA research and explore recent technological advancements that improve the study of ncRNAs.

                    Nobel Prize for MicroRNA Discovery
                    This week,...
                    10-07-2024, 08:07 AM
                  • seqadmin
                    Recent Developments in Metagenomics
                    by seqadmin





                    Metagenomics has improved the way researchers study microorganisms across diverse environments. Historically, studying microorganisms relied on culturing them in the lab, a method that limits the investigation of many species since most are unculturable1. Metagenomics overcomes these issues by allowing the study of microorganisms regardless of their ability to be cultured or the environments they inhabit. Over time, the field has evolved, especially with the advent...
                    09-23-2024, 06:35 AM

                  ad_right_rmr

                  Collapse

                  News

                  Collapse

                  Topics Statistics Last Post
                  Started by seqadmin, 10-11-2024, 06:55 AM
                  0 responses
                  11 views
                  0 likes
                  Last Post seqadmin  
                  Started by seqadmin, 10-02-2024, 04:51 AM
                  0 responses
                  110 views
                  0 likes
                  Last Post seqadmin  
                  Started by seqadmin, 10-01-2024, 07:10 AM
                  0 responses
                  114 views
                  0 likes
                  Last Post seqadmin  
                  Started by seqadmin, 09-30-2024, 08:33 AM
                  1 response
                  119 views
                  0 likes
                  Last Post EmiTom
                  by EmiTom
                   
                  Working...
                  X