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
                    Essential Discoveries and Tools in Epitranscriptomics
                    by seqadmin




                    The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist...
                    04-22-2024, 07:01 AM
                  • seqadmin
                    Current Approaches to Protein Sequencing
                    by seqadmin


                    Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
                    04-04-2024, 04:25 PM

                  ad_right_rmr

                  Collapse

                  News

                  Collapse

                  Topics Statistics Last Post
                  Started by seqadmin, Yesterday, 11:49 AM
                  0 responses
                  13 views
                  0 likes
                  Last Post seqadmin  
                  Started by seqadmin, 04-24-2024, 08:47 AM
                  0 responses
                  16 views
                  0 likes
                  Last Post seqadmin  
                  Started by seqadmin, 04-11-2024, 12:08 PM
                  0 responses
                  61 views
                  0 likes
                  Last Post seqadmin  
                  Started by seqadmin, 04-10-2024, 10:19 PM
                  0 responses
                  60 views
                  0 likes
                  Last Post seqadmin  
                  Working...
                  X