Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lwhitmore
    Member
    • Aug 2013
    • 70

    #1

    Methratio.py ERROR

    I am trying to use methratio to analyze methylation sequencing data. Currently I am getting the following error when I run

    $ python methratio.py ref=/home/yelab/leanne/Genomes/Human/hg19.fa --out=methratio.txt $HOME/Projects/MethylStudy/BisulfSeq/lung/SRR1045636.sam

    Error
    Traceback (most recent call last):
    File "methratio.py", line 25, in ?
    if any(options.chroms): options.chroms = options.chroms.split(',')
    NameError: name 'any' is not defined



    When i try this command
    $ python methratio.py ref=/home/yelab/leanne/Genomes/Human/hg19.fa --out=methratio.txt -s $HOME/Projects/MethylStudy/BisulfSeq/lung/SRR1045636.sam

    I get the following error error: Require at least one BSMAP_MAPPING_FILE.
    even though I have provided a mapping file

    Any help would be greatly appreciated!!

    Thanks Leanne
  • dpryan
    Devon Ryan
    • Jul 2011
    • 3478

    #2
    "-s" is the path to samtools (if it's not already in your path). Just remove that, since your alignment file is not going to be the that (and if it were, you wouldn't have input an alignment file, which is why you got that error).

    Comment

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

      #3
      Which version of Python do you have? The 'any' function was added back in Python 2.5, http://docs.python.org/2.7/library/functions.html#any

      Comment

      • lwhitmore
        Member
        • Aug 2013
        • 70

        #4
        So i figured out that the python version was not up to date and so I updated to python 2.6.6 which seemed to fix the initial error

        I then ran it and got the following error
        @ Thu Mar 20 19:36:43 2014: reading reference /home/yelab/leanne/Genomes/Human/hg19.fa ...
        @ Fri Mar 21 01:02:40 2014: reading bsmap_SRR1045636.sam ...
        Traceback (most recent call last):
        File "/home/yelab/leanne/bin/methratio.py", line 120, in <module>
        if infile[-4:].upper() == '.SAM': sam_format, fin = True, os.popen('%ssamtools view -XS %s' % (options.sam_path, infile))
        OSError: [Errno 12] Cannot allocate memory

        Any Ideas?

        Thanks so much
        Leanne

        Comment

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

          #5
          It ran out of memory (RAM). How much RAM does this machine have?

          Comment

          • lwhitmore
            Member
            • Aug 2013
            • 70

            #6
            24Gbs of RAM

            Comment

            • dpryan
              Devon Ryan
              • Jul 2011
              • 3478

              #7
              It takes almost 24 gigs to read in the genome itself (using that script, at least) and that's before the methylation calls, so you'll need a bigger machine or a different tool. The authors should have implemented it differently...

              Comment

              • lwhitmore
                Member
                • Aug 2013
                • 70

                #8
                ahh ok that makes sense. Does any one know of any good tools for getting the calls? I know of Bis-SNP other than that I am unaware of any others.

                Thanks
                Leanne

                Comment

                • dpryan
                  Devon Ryan
                  • Jul 2011
                  • 3478

                  #9
                  The only standalone application I've ever heard of is Bis-SNP. Since most of us who have written aligners include something with them (often making the calls as we go), there probably aren't a lot of options there.

                  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
                    ...
                    10-14-2026, 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, Yesterday, 11:13 AM
                  0 responses
                  16 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, Yesterday, 10:48 AM
                  0 responses
                  17 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 10-15-2026, 10:52 AM
                  0 responses
                  35 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 10-14-2026, 05:39 AM
                  0 responses
                  42 views
                  0 reactions
                  Last Post SEQadmin2  
                  Working...