Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ssb
    Junior Member
    • Mar 2016
    • 4

    #1

    HTSeq - NameError: name 're' is not defined

    I'm trying to use HTSeq but getting "NameError: name 're' is not defined" after import HTSeq command. As I'm a novice, I don't know how to resolve the issue. It would be nice if someone could help me in getting through.
    >>> import HTSeq

    Traceback (most recent call last):
    File "<pyshell#11>", line 1, in <module>
    import HTSeq
    File "C:\Python27\lib\site-packages\HTSeq\__init__.py", line 144, in <module>
    _re_attr_main = re.compile( "\s*([^\s\=]+)[\s=]+(.*)" )
    NameError: name 're' is not defined
  • fanli
    Senior Member
    • Jul 2014
    • 197

    #2
    Does this work for you?

    Code:
    import re
    Did you follow the installation instructions for Windows?

    Comment

    • ssb
      Junior Member
      • Mar 2016
      • 4

      #3
      Yes, I followed all instructions.
      No, "import re" doesn't work. See below,


      >>> import re
      >>> import HTSeq

      Traceback (most recent call last):
      File "<pyshell#1>", line 1, in <module>
      import HTSeq
      File "C:\Python27\lib\site-packages\HTSeq\__init__.py", line 9, in <module>
      from _HTSeq import *
      File "numpy.pxd", line 155, in init HTSeq._HTSeq (src/_HTSeq.c:34392)
      ValueError: numpy.dtype has the wrong size, try recompiling
      >>> import HTSeq

      Traceback (most recent call last):
      File "<pyshell#2>", line 1, in <module>
      import HTSeq
      File "C:\Python27\lib\site-packages\HTSeq\__init__.py", line 144, in <module>
      _re_attr_main = re.compile( "\s*([^\s\=]+)[\s=]+(.*)" )
      NameError: name 're' is not defined

      Comment

      • fanli
        Senior Member
        • Jul 2014
        • 197

        #4
        Probably should try recompiling numpy:

        http://stackoverflow.com/questions/1...ry-recompiling

        Comment

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

          #5
          How did you install HTSeq and NumPy?

          My guess is you have a mis-match between the version of NumPy installed, and the version that HTSeq expects (i.e. what it was compiled against).

          Comment

          • ssb
            Junior Member
            • Mar 2016
            • 4

            #6
            Thanks fanli!
            I'll recompile and check whether the same error comes again or not.
            Is R / Bioconductor useful in high throughput sequence analysis?

            Comment

            • fanli
              Senior Member
              • Jul 2014
              • 197

              #7
              Yes, R is pretty handy for all sorts of statistical things. For example, differential expression testing using edgeR, DESeq2, etc.

              Comment

              • ssb
                Junior Member
                • Mar 2016
                • 4

                #8
                Thanks fanli!

                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
                  ...
                  Today, 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, Today, 05:39 AM
                0 responses
                9 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, Yesterday, 09:56 AM
                0 responses
                11 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 10-09-2026, 11:14 AM
                0 responses
                25 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 09-29-2026, 09:51 AM
                0 responses
                76 views
                0 reactions
                Last Post SEQadmin2  
                Working...