Unconfigured Ad

Collapse
X
 
  • 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
              Beyond CRISPR/Cas9: Understand, Choose, and Use the Right Genome Editing Tool
              by SEQadmin2



              CRISPR/Cas9 sparked the gene editing revolution for both research and therapeutics.1 But this system still showed severe issues that limited its applications. The most prominent were the heavy reliance on PAM sequences, delivery limitations, double-stranded breaks that prompt unintended edits and cell death, and editing inefficiency (both in targeting and in knock-in reliability).

              Despite this, “CRISPR helped turn genome editing from a specialized technique into
              ...
              Yesterday, 11:01 AM
            • 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

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by SEQadmin2, Yesterday, 02:55 AM
            0 responses
            9 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 07-24-2026, 12:17 PM
            0 responses
            12 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 07-23-2026, 11:41 AM
            0 responses
            12 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 07-20-2026, 11:10 AM
            0 responses
            24 views
            0 reactions
            Last Post SEQadmin2  
            Working...