Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • mdb@wistar
    Junior Member
    • Jan 2013
    • 9

    #16
    Originally posted by liguow View Post
    Surprisingly to find that this problem is still not well resolved.

    I write a python program "bam2wig.py" that is specially designed for RNA-seq, so it works fine for spliced read, for both single-end and pair-end, for both strand-specific and non-strand specific RNA-seq data.

    The input BAM file should be sorted and indexed using SamTools before hand.



    Best,
    Unfortunately, the bam2wig.py always gives error and quits:
    DeprecationWarning: the sets module is deprecated
    import sets

    and it is not possble to modify the bam2wig.py downloaded from RseqC since it is read only.

    Comment

    • liguow
      Member
      • Apr 2009
      • 12

      #17
      Originally posted by mdb@wistar View Post
      Unfortunately, the bam2wig.py always gives error and quits:
      DeprecationWarning: the sets module is deprecated
      import sets

      and it is not possble to modify the bam2wig.py downloaded from RseqC since it is read only.
      Interesting. I used it without any problem (I am using python2.7). And, if you can download it, you can do whatever you want.

      Comment

      • mdb@wistar
        Junior Member
        • Jan 2013
        • 9

        #18
        Originally posted by liguow View Post
        Interesting. I used it without any problem (I am using python2.7). And, if you can download it, you can do whatever you want.
        funny, I too have python 2.7. I read somewhere that the 'sets' problem began with python 2.4 and using python2.3 or earlier versions may solve the problem. but sam2wig is not supported by older python versions, so I am stuck now
        all other packages from RSeQC have worked except bam2wig.

        Comment

        • ESiPS
          Junior Member
          • Oct 2012
          • 2

          #19
          Originally posted by mdb@wistar View Post
          funny, I too have python 2.7. I read somewhere that the 'sets' problem began with python 2.4 and using python2.3 or earlier versions may solve the problem. but sam2wig is not supported by older python versions, so I am stuck now
          all other packages from RSeQC have worked except bam2wig.
          Me too.

          Code:
          $ bam2wig.py -i 3Aligned.out.sorted.bam -s Drosophila_melanogaster.BDGP6.dna.toplevel.fa.fai.chrom.sizes -o 3Aligned.out.sorted.bam --skip-multi-hits -d --strand='1+-,1-+,2++,2--'
          Skip multi-hits:True
          Processing 211000022279100 ...
          Processing 211000022279101 ...
          Processing 211000022279102 ...
          Processing 211000022279103 ...
          Processing 211000022279104 ...
          Traceback (most recent call last):
            File "/usr/local/bin/bam2wig.py", line 5, in <module>
              pkg_resources.run_script('RSeQC==2.6.1', 'bam2wig.py')
            File "build/bdist.macosx-10.10-x86_64/egg/pkg_resources/__init__.py", line 696, in run_script
            File "build/bdist.macosx-10.10-x86_64/egg/pkg_resources/__init__.py", line 1614, in run_script
            File "/usr/local/lib/python2.7/site-packages/RSeQC-2.6.1-py2.7-macosx-10.10-x86_64.egg/EGG-INFO/scripts/bam2wig.py", line 103, in <module>
              main()
            File "/usr/local/lib/python2.7/site-packages/RSeQC-2.6.1-py2.7-macosx-10.10-x86_64.egg/EGG-INFO/scripts/bam2wig.py", line 100, in main
              obj.bamTowig(outfile = options.output_prefix, chrom_sizes = chromSizes, chrom_file = options.chromSize, q_cut = options.map_qual, skip_multi=options.skip_multi,strand_rule = options.strand_rule, WigSumFactor=norm_factor)
            File "/usr/local/lib/python2.7/site-packages/RSeQC-2.6.1-py2.7-macosx-10.10-x86_64.egg/qcmodule/SAM.py", line 2597, in bamTowig
              if strandRule[key] == '+':Fwig[pos] +=1.0
          KeyError: '1+'

          Comment

          • ESiPS
            Junior Member
            • Oct 2012
            • 2

            #20
            The bam2wig.py worked well after I change the genome version into a new one. Still do not know the reason.

            Comment

            Latest Articles

            Collapse

            • 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
            • GATTACAT
              Reply to Nine Things a Sample Prep Scientist Thinks About Before Sequencing
              by GATTACAT
              Love this - good data definitely starts from good input, and poor input can only give relatively poor data. I particularly like the mention of Nanodrop/absorbance based methods for quantification. It's such a toss up if you'll get an accurate reading or what amounts to a randomly generated number, and a lot of library/sequencing related issues can be traced back to poor quant.
              07-01-2026, 11:43 AM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by SEQadmin2, Yesterday, 10:26 AM
            0 responses
            13 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 07-09-2026, 10:04 AM
            0 responses
            26 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 07-08-2026, 10:08 AM
            0 responses
            16 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 07-07-2026, 11:05 AM
            0 responses
            33 views
            0 reactions
            Last Post SEQadmin2  
            Working...