Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • GenoMax
    Senior Member
    • Feb 2008
    • 7142

    #31
    Put your reference sequence in a new directory and then make the index.

    Code:
    G:\>java -Xmx4g -ea -cp G:\bbmap\current\ align2.BBMap ref=G:\MAKE_NEW\indexreads.fq build=1 genScaffoldInfo=true
    Last edited by GenoMax; 03-05-2015, 10:41 AM.

    Comment

    • everestial
      Member
      • Feb 2015
      • 31

      #32
      Originally posted by GenoMax View Post
      You appear to be running out of memory. Increase -Xmx1g to -Xmx4g in the first command. Until this completes without errors do not run the second command.

      How big is your reference?
      The reference is 200 mb file.

      Comment

      • everestial
        Member
        • Feb 2015
        • 31

        #33
        Originally posted by GenoMax View Post
        Put your reference sequence in a new directory and then make the index.

        Code:
        G:\>java -Xmx4g -ea -cp G:\bbmap\current\ align2.BBMap ref=G:\MAKE_NEW\indexreads.fq build=1 genScaffoldInfo=true
        My ram is 4gb so I am going to use 3gb instead and if it fails I will run with 4gb. I will let you know what happens.

        Thanks,

        Comment

        • Brian Bushnell
          Super Moderator
          • Jan 2014
          • 2709

          #34
          Originally posted by everestial View Post
          Also, to allow splice junction (which I would expect for RNAseq reads) what should I do. I have been reading the readme file. I understand the concept but for some reason whole coding process still doesn't make very good sense to me.

          I was able to do fastqc quality check on iplant. Is there any parameter in BBMap equivalent to this quality check app.

          Thanks,
          The default settings of BBMap work fine for plant introns. As for quality... the bhist, qhist, qahist, aqhist, mhist, and ehist flags will allow you to print histograms indicating read quality. You can plot them in Excel or whatever; but BBMap does not directly provide graphical output like Fastqc.

          As for your error messages, as GenoMax noted, you are running out of memory. You can determine how to set the -Xmx flag by running AssemblyStats like this:

          Code:
          java -Xmx1g -ea -cp G:\bbmap\current\ jgi.AssemblyStats2 in=reference.fa k=13
          At the bottom, it will tell you how much memory is needed.

          Also, neither BBMap nor AssemblyStats support a reference in fastq format (.fq), it has to be in fasta (.fa) format. I'm not entirely sure what "indexreads.fq" is, but the "ref=" argument needs to point to the fasta file of the genome.

          Edit:

          A 200Mbp genome should run fine with 2g, but not with 1g.
          Last edited by Brian Bushnell; 03-05-2015, 10:52 AM.

          Comment

          • everestial
            Member
            • Feb 2015
            • 31

            #35
            Originally posted by everestial View Post
            My ram is 4gb so I am going to use 3gb instead and if it fails I will run with 4gb. I will let you know what happens.

            Thanks,
            on Xmx3g and 4g
            I get the message that the space could not be reserved.
            Then I se it to Xmx1500m
            still same message.

            Comment

            • GenoMax
              Senior Member
              • Feb 2008
              • 7142

              #36
              Are you using 32-bit windows on this machine (and 32-bit java)?

              Comment

              • everestial
                Member
                • Feb 2015
                • 31

                #37
                Originally posted by Brian Bushnell View Post
                The default settings of BBMap work fine for plant introns. As for quality... the bhist, qhist, qahist, aqhist, mhist, and ehist flags will allow you to print histograms indicating read quality. You can plot them in Excel or whatever; but BBMap does not directly provide graphical output like Fastqc.

                As for your error messages, as GenoMax noted, you are running out of memory. You can determine how to set the -Xmx flag by running AssemblyStats like this:

                Code:
                java -Xmx1g -ea -cp G:\bbmap\current\ jgi.AssemblyStats2 in=reference.fa k=13
                At the bottom, it will tell you how much memory is needed.

                Also, neither BBMap nor AssemblyStats support a reference in fastq format (.fq), it has to be in fasta (.fa) format. I'm not entirely sure what "indexreads.fq" is, but the "ref=" argument needs to point to the fasta file of the genome.

                Edit:

                A 200Mbp genome should run fine with 2g, but not with 1g.
                I am going to run the command incorporating all you advise. Hope it will work.
                Thanks,

                Comment

                • everestial
                  Member
                  • Feb 2015
                  • 31

                  #38
                  Originally posted by everestial View Post
                  I am going to run the command incorporating all you advise. Hope it will work.
                  Thanks,
                  Alrite, overall it seems like a memory issue. I corrected the files to fa (fasta) format by new concatenation. RAM of my computer is 4gb but I cannot allocate above 1400mb of the available memorey. I get the erorr message: could not reserve enough space for 1536000KB object heap.

                  Asseblystats isn't helping either.
                  Last edited by everestial; 03-05-2015, 11:33 AM.

                  Comment

                  • Brian Bushnell
                    Super Moderator
                    • Jan 2014
                    • 2709

                    #39
                    Sounds like you have a 32-bit version of Windows and/or Java, which may be enough in this case, we'll see. What was the output of AssemblyStats?

                    Comment

                    • everestial
                      Member
                      • Feb 2015
                      • 31

                      #40
                      Originally posted by everestial View Post
                      Alrite, overall it seems like a memory issue. I corrected the files to fa (fasta) format by new concatenation. RAM of my computer is 4gb but I cannot allocate above 1400mb of the available memorey. I get the erorr message: could not reserve enough space for 1536000KB object heap.

                      Asseblystats isn't helping either.
                      Well, AssemblyStats worked now:
                      BBMap minimum memory estimate at k=13: -Xmx2770m <at least 3080 MB physical RAM>

                      My RAM is 4gb. What would you suggest in this case? Is there a way to boost up the memory usage?

                      Comment

                      • Brian Bushnell
                        Super Moderator
                        • Jan 2014
                        • 2709

                        #41
                        Do you know whether your OS is 32-bit or not? Right-click on Computer (should be on the desktop) and you should get a description of the operating system, indicating whether it is 32-bit or 64-bit. At least, it works that way in Windows 7.

                        Comment

                        • everestial
                          Member
                          • Feb 2015
                          • 31

                          #42
                          Originally posted by Brian Bushnell View Post
                          Sounds like you have a 32-bit version of Windows and/or Java, which may be enough in this case, we'll see. What was the output of AssemblyStats?
                          My windows is 8.1 64 bit. And, I install java 64 bit too (recent release). AssemblyStats finally worked.
                          The memory required is 3080 mb. My computer is 4 gb.

                          Comment

                          • Brian Bushnell
                            Super Moderator
                            • Jan 2014
                            • 2709

                            #43
                            You can decrease the amount of memory needed with the flags "usemodulo" and "k=12". What is the largest amount of memory Java will let you use?

                            Comment

                            • everestial
                              Member
                              • Feb 2015
                              • 31

                              #44
                              I check and my computer is 64 bit.

                              Comment

                              • Brian Bushnell
                                Super Moderator
                                • Jan 2014
                                • 2709

                                #45
                                OK, try this:

                                java -Xmx1400m -ea -cp G:\bbmap\current\ align2.BBMap ref=G:\bbmap\genome.fasta k=12 usemodulo

                                ...and see if that works.

                                Comment

                                Latest Articles

                                Collapse

                                • mylaser
                                  Reply to Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
                                  by mylaser
                                  Kheloyar – Everything You Need to Know About Kheloyaar Login and Kheoyar Id
                                  If you are looking for an online gaming platform that offers a user-friendly experience, Kheloyar has become a name that many users search for. Whether you're interested in creating a new account, accessing your dashboard through Kheloyaar Login, or learning how to obtain a Kheoyar Id, understanding the platform's features and account process is essential.
                                  This guide explains everything you need to know about...
                                  Today, 01:13 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
                                • 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

                                ad_right_rmr

                                Collapse

                                News

                                Collapse

                                Topics Statistics Last Post
                                Started by SEQadmin2, 07-09-2026, 10:04 AM
                                0 responses
                                14 views
                                0 reactions
                                Last Post SEQadmin2  
                                Started by SEQadmin2, 07-08-2026, 10:08 AM
                                0 responses
                                10 views
                                0 reactions
                                Last Post SEQadmin2  
                                Started by SEQadmin2, 07-07-2026, 11:05 AM
                                0 responses
                                19 views
                                0 reactions
                                Last Post SEQadmin2  
                                Started by SEQadmin2, 07-02-2026, 11:08 AM
                                0 responses
                                31 views
                                0 reactions
                                Last Post SEQadmin2  
                                Working...