Unconfigured Ad

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

    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
                    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, 07-13-2026, 10:26 AM
                  0 responses
                  26 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 07-09-2026, 10:04 AM
                  0 responses
                  37 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 07-08-2026, 10:08 AM
                  0 responses
                  23 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 07-07-2026, 11:05 AM
                  0 responses
                  34 views
                  0 reactions
                  Last Post SEQadmin2  
                  Working...